Xpra: Ticket #862: Error with xpra commands...

hi; im new in linux and i used xpra in my older server then i changed my provider and instal new server.

whenever i use exit stop info etc commands i take see this error :

root@oynadi:~# xpra stop :1
Warning: running as root
connection failed: [Errno 2] No such file or directory

start atached is works.

thanks in advance

ubuntu 14.04 x64
xpra v0.12.3


Sat, 16 May 2015 05:08:34 GMT - Antoine Martin: owner, component, description changed

1) don't run as root 2) use an up-to-date version, 0.12.3 is too old 3) please provide more information, as per wiki/ReportingBugs - for example, why you expect "stop" to work on display ":1", the server log file, etc..


Sat, 16 May 2015 12:11:28 GMT - sezing:

Replying to antoine:

1) don't run as root 2) use an up-to-date version, 0.12.3 is too old 3) please provide more information, as per wiki/ReportingBugs - for example, why you expect "stop" to work on display ":1", the server log file, etc..

1) ok i wont 2) how can i update ? what is the ppa: ? 3) i will

thanks a lot


Sat, 16 May 2015 12:52:41 GMT - Antoine Martin:

2) how can i update ? what is the ppa: ?


See "Download" on the home page: http://xpra.org/


Sat, 16 May 2015 15:11:13 GMT - sezing:

Replying to antoine:

2) how can i update ? what is the ppa: ?


See "Download" on the home page: http://xpra.org/

i saw that page3 but didnt understand anythig which was for ubuntu and how can i find link for it ?


Sat, 16 May 2015 15:12:38 GMT - Antoine Martin:

Really? I quote: you can install the RPM and Debian repositories by following the repository installation instructions for winswitch. That's the link right there.


Sat, 16 May 2015 15:13:47 GMT - Antoine Martin:

For trusty, you will land here: http://winswitch.org/downloads/debian-repository.html?dist_select=trusty


Sat, 16 May 2015 15:24:38 GMT - sezing:

Replying to antoine:

For trusty, you will land here: http://winswitch.org/downloads/debian-repository.html?dist_select=trusty

xpra = trusty ?

and should i delete xpra and all packages with it ?

i m new in linux sorry for trouble. i m learning :)


Sat, 16 May 2015 17:14:58 GMT - sezing:

i updated to xpra v0.14.23

thanks :)

this is my rust1.sh file :

#!/bin/bash
xpra start :100
export DISPLAY=:100
cd /home/steam/rust/
screen -A -m -d -S "rust-server" \
wine ./RustDedicated.exe -batchmode

i run this file with my oynadi user

and get this error :

oynadi@oynadi:/home/steam/rust$ ./rust1.sh
xpra main error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/main.py", line 103, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/main.py", line 760, in run_mode
    return run_server(error_cb, options, mode, script_file, args)
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/server.py", line 834, in run_server
    logfd = open_log_file(log_filename0)
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/server.py", line 417, in open_log_file
    return os.open(logpath, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, o0666)
OSError: [Errno 13] Permission denied: '/home/oynadi/.xpra/:100.log'

when i run with sudo :

oynadi@oynadi:/home/steam/rust$ sudo ./rust1.sh
Warning: running as root
oynadi@oynadi:/home/steam/rust$ Entering daemon mode; any further errors will be reported to:
  /home/oynadi/.xpra/:100.log

i see the process

oynadi@oynadi:/home/steam/rust$ ps 11636
  PID TTY      STAT   TIME COMMAND
11636 ?        Ssl    0:00 Xvfb-for-Xpra-:100 +extension Composite -screen 0 384

when i write for stoping it :

oynadi@oynadi:/home/steam/rust$ sudo xpra stop :100
Warning: running as root
xpra initialization error: connection failed: [Errno 2] No such file or directory
oynadi@oynadi:/home/steam/rust$

i goal is use xpra for my game server console and stop it when i need or restart it

thans a lot for your guiedness :)


Sun, 17 May 2015 04:26:46 GMT - Antoine Martin:

Personally, I wouldn't start xpra from that script file, I would do: xpra start :100 --start-child=rust1.sh And just put your rust stuff in that script file.

You are getting permissions errors because you run things as root. Nuke the .xpra directory: rm -fr ~/.xpra and start again. Don't use sudo, don't use root.


Fri, 29 May 2015 03:58:05 GMT - Antoine Martin: status changed; resolution set

not a bug: don't use root, don't mix users.


Sat, 23 Jan 2021 05:08:10 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/862