xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 4 years ago

Last modified 9 months ago

#1616 closed defect

Domain users can not start a session — at Version 1

Reported by: Alexander Owned by: Alexander
Priority: major Milestone: 2.2
Component: server Version: 2.1.x
Keywords: Cc:

Description (last modified by Antoine Martin)

Good afternoon. CentOS 7.3 64 bit.
Xpra any version, including v2.1-r16525. Local users of Linux without any problems start the session both via ssh and tcp.
Domain users can not start the session. You receive an error when starting:

[user@srvusi06 ~]$ xpra start --start-child=firefox --bind-tcp=0.0.0.0:10001    2017-08-08 09:23:10,657 server failure: disconnected before the session could be established
2017-08-08 09:23:10,657 server requested disconnect: server error (failed to start a new session)
Warning: cannot use the system proxy for 'start' subcommand,
 FAILURE
[user@srvusi06 ~]$ Entering daemon mode; any further errors will be reported to:
  /run/user/16777219/xpra/S23948.log
Actual display used: :13
Actual log file name is now: /run/user/16777219/xpra/:13.log

--

[user@srvusi06 xpra]$ cat /run/user/16777219/xpra/:13.log
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System:  2.6.32-573.18.1.el6.x86_64
Current Operating System: Linux srvusi06 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue J                                                                                                                                                             ul 4 15:04:05 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-514.26.2.el7.x86_64 root=/dev/ma                                                                                                                                                             pper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet                                                                                                                                                              LANG=ru_RU.UTF-8
Build Date: 06 November 2016  12:43:39AM
Build ID: xorg-x11-server 1.17.2-22.el7
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/run/user/16777219/xpra/Xorg.S23948.log", Time: Tue Aug  8 09:23                                                                                                                                                             :10 2017
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
2017-08-08 09:23:13,560 created unix domain socket: /run/user/16777219/xpra/srvu                                                                                                                                                             si06-13
2017-08-08 09:23:13,561 created unix domain socket: /home/ABC/user/.xpra/srvusi0                                                                                                                                                             6-13
2017-08-08 09:23:13,562 created unix domain socket: /run/xpra/srvusi06-13
2017-08-08 09:23:13,972 html server unavailable, cannot find websockify module
2017-08-08 09:23:13,981 Warning: webcam forwarding is disabled
2017-08-08 09:23:13,981  the virtual video directory '/sys/devices/virtual/video                                                                                                                                                             4linux' was not found
2017-08-08 09:23:13,981  make sure that the 'v4l2loopback' kernel module is inst                                                                                                                                                             alled and loaded
2017-08-08 09:23:13,982 found 0 virtual video devices for webcam forwarding
2017-08-08 09:23:13,989 pulseaudio server started with pid 24108
2017-08-08 09:23:14,123 GStreamer version 1.4.5 for Python 2.7.5 64-bit
2017-08-08 09:23:14,139 D-Bus notification forwarding is available
2017-08-08 09:23:14,147 started command 'firefox' with pid 24137
2017-08-08 09:23:14,147 xpra X11 version 2.1-r16525 64-bit
2017-08-08 09:23:14,148  uid=16777219 (user), gid=16777216 (пользователи домена)
2017-08-08 09:23:14,148  running with pid 24064 on Linux CentOS Linux 7.3.1611 C                                                                                                                                                             ore
2017-08-08 09:23:14,148  connected to X11 display :13 with 24 bit colors
E: [pulseaudio] pid.c: Daemon already running.
2017-08-08 09:23:14,456 printer forwarding enabled using postscript and pdf
2017-08-08 09:23:14,456 3.7GB of system memory
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_core.py", line 565                                                                                                                                                             , in add_listen_socket
    sock.listen(5)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 22] Недопустимый аргумент
2017-08-08 09:23:14,645 xpra is ready.
2017-08-08 09:23:15,650 Warning: pulseaudio has terminated shortly after startup                                                                                                                                                             .
2017-08-08 09:23:15,650  pulseaudio is limited to a single instance per user acc                                                                                                                                                             ount,
2017-08-08 09:23:15,658  and one may be running already for user 'user'
2017-08-08 09:23:15,658  to avoid this warning, either fix the pulseaudio comman                                                                                                                                                             d line
2017-08-08 09:23:15,658  or use the 'pulseaudio=no' option
[Parent 24137] WARNING: pipe error: Обрыв канала: file /builddir/build/BUILD/fir                                                                                                                                                             efox-52.2.0/firefox-52.2.0esr/ipc/chromium/src/chrome/common/ipc_channel_posix.c                                                                                                                                                             c, line 685

---

[root@srvusi06 ~]# groups user
user : пользователи домена wheel xpra user linuxusers BUILTIN\users

Help me plz

Change History (1)

comment:1 Changed 4 years ago by Antoine Martin

Description: modified (diff)
Owner: changed from Antoine Martin to Alexander

I don't know what this says: socket.error: [Errno 22] Недопустимый аргумент
Google says "invalid argument".
I'm not sure why 5 would be an invalid argument.
Socket errors are normally detected when we create them, not when we start listening to them.

Since you are creating the 3 standard socket locations:

created unix domain socket: /run/user/16777219/xpra/srvu si06-13
created unix domain socket: /home/ABC/user/.xpra/srvusi0 6-13
created unix domain socket: /run/xpra/srvusi06-13

It is fair to assume that error comes from the last one of those, which requires "xpra" group membership. (maybe you didn't logout and login again after adding the group?)
You should be able to workaround this by removing socket-dirs = /run/xpra from /etc/xpra/conf.d/10_network.conf.

Note: See TracTickets for help on using tickets.