You are not logged in.

#1 2015-09-10 06:37:47

antony
Member
Registered: 2011-07-14
Posts: 43

[solved] xpra fails to start

I am trying to run xpra for the first time.

$ xpra start ssh:antony@maxwell:100 --start-child xterm

This fails with the following message:

2015-09-09 23:36:56,493 cannot use pycups for printing: No module named cups
2015-09-09 23:36:56,513 unknown logging category: x265
2015-09-09 23:36:56,543  cannot import csc_opencl (OpenCL colorspace conversion): No module named pyopencl
2015-09-09 23:36:56,564 Warning: zlib is the only compressor enabled
2015-09-09 23:36:56,564  install and enable lzo or lz4 support for better performance
2015-09-09 23:36:56,565 xpra gtk2 client version 0.15.5 (r10506)
2015-09-09 23:36:56,566 csc module csc_opencl could not be loaded: No module named pyopencl
2015-09-09 23:36:56,567 OpenGL support could not be enabled:
2015-09-09 23:36:56,567  cannot import name gdkgl
2015-09-09 23:36:56,697 detected keyboard: rules=evdev, model=pc101, layout=fr
2015-09-09 23:36:56,698 desktop size is 1600x900 with 1 screen(s):
2015-09-09 23:36:56,699   ':0.0' (423x238 mm - DPI: 96x96) workarea: 1600x873
2015-09-09 23:36:56,699     eDP1 (309x174 mm - DPI: 131x131)
Entering daemon mode; any further errors will be reported to:
  /home/antony/.xpra/:100.log
server failed to start after 15.0 seconds - sorry!
2015-09-09 23:37:13,242 failed to receive anything, not an xpra server?
2015-09-09 23:37:13,242   could also be the wrong username, password or port
2015-09-09 23:37:13,242 Connection lost

On the server side, the log is as follows:

(EE)
Fatal server error:
(EE) The '-logfile' option cannot be used with elevated privileges.
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
(EE)
2015-09-09 23:33:47,743 failed to load the mdns avahi publisher: No module named dbus
2015-09-09 23:33:47,743 either fix your installation or use the '--no-mdns' flag
2015-09-09 23:33:47,743
2015-09-09 23:33:47,743 Xvfb command has terminated! xpra cannot continue
2015-09-09 23:33:47,743
2015-09-09 23:33:47,744 removing socket /home/antony/.xpra/maxwell-arch-100

Both sides use the AUR xpra-winswitch package.

Any help would be welcome.

(crossposted to the xpra mailing list)

Last edited by antony (2015-11-30 03:43:51)

Offline

#2 2015-09-10 10:04:07

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [solved] xpra fails to start

xpra-winswitch needs python2 versions of those modules, you probably haven't installed them.

install python2-pycups , python2-pyopencl and python2-dbus, then try again.
Once you figured out all needed python2 modules, ask the aur maintainer of xpra-winswitch to add them as dependencies.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2015-09-10 18:27:54

antony
Member
Registered: 2011-07-14
Posts: 43

Re: [solved] xpra fails to start

Even with all these dependencies installed on both sides I get the same error -- with the addition of an import error on pyopencl on the client side (clGetPlatformIDs failed: platform not found khr).
Given than opencl seems optional (https://www.xpra.org/trac/wiki/CSC/OpenCL), I then removed it, but this didn't change anything.

Offline

#4 2015-09-11 14:55:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [solved] xpra fails to start

please post the actual output you get now, so it becomes clear what errors remain.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2015-09-14 05:35:59

antony
Member
Registered: 2011-07-14
Posts: 43

Re: [solved] xpra fails to start

Client side:

$ xpra start ssh:antony@maxwell:100 --start-child xterm
2015-09-13 22:34:29,603 unknown logging category: x265
2015-09-13 22:34:29,772  cannot load csc_opencl (OpenCL colorspace conversion): ColorspaceConverter missing from xpra.codecs.csc_opencl.colorspace_converter: clGetPlatformIDs failed: platform not found khr
2015-09-13 22:34:29,772 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/xpra/codecs/loader.py", line 36, in codec_import_check
    ic =  __import__(class_module, {}, {}, classname)
  File "/usr/lib/python2.7/site-packages/xpra/codecs/csc_opencl/colorspace_converter.py", line 26, in <module>
    opencl_platforms = pyopencl.get_platforms()
LogicError: clGetPlatformIDs failed: platform not found khr
2015-09-13 22:34:29,774 error during codec import: clGetPlatformIDs failed: platform not found khr
2015-09-13 22:34:29,864 Warning: zlib is the only compressor enabled
2015-09-13 22:34:29,864  install and enable lzo or lz4 support for better performance
2015-09-13 22:34:29,865 xpra gtk2 client version 0.15.5 (r10506)
2015-09-13 22:34:29,868 csc module csc_opencl could not be loaded: clGetPlatformIDs failed: platform not found khr
2015-09-13 22:34:29,870 OpenGL support could not be enabled:
2015-09-13 22:34:29,870  cannot import name gdkgl
2015-09-13 22:34:30,057 detected keyboard: rules=evdev, model=pc101, layout=fr
2015-09-13 22:34:30,058 desktop size is 1600x900 with 1 screen(s):
2015-09-13 22:34:30,058   ':0.0' (423x238 mm - DPI: 96x96) workarea: 1600x873
2015-09-13 22:34:30,058     eDP1 (309x174 mm - DPI: 131x131)
Entering daemon mode; any further errors will be reported to:
  /home/antony/.xpra/:100.log
server failed to start after 15.0 seconds - sorry!
2015-09-13 22:34:45,758 failed to receive anything, not an xpra server?
2015-09-13 22:34:45,758   could also be the wrong username, password or port
2015-09-13 22:34:45,758 Connection lost

after removal of python2-pyopencl:

$ xpra start ssh:antony@maxwell:100 --start-child xterm
2015-09-13 22:37:47,969 unknown logging category: x265
2015-09-13 22:37:47,999  cannot import csc_opencl (OpenCL colorspace conversion): No module named pyopencl
2015-09-13 22:37:48,019 Warning: zlib is the only compressor enabled
2015-09-13 22:37:48,020  install and enable lzo or lz4 support for better performance
2015-09-13 22:37:48,020 xpra gtk2 client version 0.15.5 (r10506)
2015-09-13 22:37:48,021 csc module csc_opencl could not be loaded: No module named pyopencl
2015-09-13 22:37:48,022 OpenGL support could not be enabled:
2015-09-13 22:37:48,023  cannot import name gdkgl
2015-09-13 22:37:48,148 detected keyboard: rules=evdev, model=pc101, layout=fr
2015-09-13 22:37:48,149 desktop size is 1600x900 with 1 screen(s):
2015-09-13 22:37:48,149   ':0.0' (423x238 mm - DPI: 96x96) workarea: 1600x873
2015-09-13 22:37:48,149     eDP1 (309x174 mm - DPI: 131x131)
Entering daemon mode; any further errors will be reported to:
  /home/antony/.xpra/:100.log
server failed to start after 15.0 seconds - sorry!
2015-09-13 22:38:04,630 failed to receive anything, not an xpra server?
2015-09-13 22:38:04,630   could also be the wrong username, password or port
2015-09-13 22:38:04,630   or maybe this server does not support 'unknown' compression or 'bencode' packet encoding?
2015-09-13 22:38:04,630 Connection lost

The server side complains about netifaces missing, after installing it the error log becomes

(EE) 
Fatal server error:
(EE) The '-logfile' option cannot be used with elevated privileges.
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) 
2015-09-13 22:33:48,931 
2015-09-13 22:33:48,931 Xvfb command has terminated! xpra cannot continue
2015-09-13 22:33:48,931 
2015-09-13 22:33:48,931 removing socket /home/antony/.xpra/maxwell-arch-100

Offline

#6 2015-09-14 06:51:33

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [solved] xpra fails to start

2015-09-13 22:37:48,022 OpenGL support could not be enabled:
2015-09-13 22:37:48,023  cannot import name gdkgl

looks like we found another missing dependency .

xpra FAQ wrote:

    No module named gdkgl

Install gtkglext and its Python bindings to enable support for OpenGL.

install gtkglext from repos and try again.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2015-11-29 23:04:41

mrman
Member
Registered: 2010-02-05
Posts: 26

Re: [solved] xpra fails to start

with gtkglext installed:

2015-11-29 15:03:16,739  cannot load csc_opencl (OpenCL colorspace conversion): ColorspaceConverter missing from xpra.codecs.csc_opencl.colorspace_converter: clgetplatformids failed: PLATFORM_NOT_FOUND_KHR
2015-11-29 15:03:16,740 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/xpra/codecs/loader.py", line 41, in codec_import_check
    ic =  __import__(class_module, {}, {}, classname)
  File "/usr/lib/python2.7/site-packages/xpra/codecs/csc_opencl/colorspace_converter.py", line 26, in <module>
    opencl_platforms = pyopencl.get_platforms()
  File "/usr/lib/python2.7/site-packages/pyopencl/cffi_cl.py", line 573, in get_platforms
    _handle_error(_lib.get_platforms(platforms.ptr, platforms.size))
  File "/usr/lib/python2.7/site-packages/pyopencl/cffi_cl.py", line 549, in _handle_error
    raise e
LogicError: clgetplatformids failed: PLATFORM_NOT_FOUND_KHR
2015-11-29 15:03:16,741 error during codec import: clgetplatformids failed: PLATFORM_NOT_FOUND_KHR
2015-11-29 15:03:16,801 xpra gtk2 client version 0.15.8 (r11211)
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
2015-11-29 15:03:16,891 csc module csc_opencl could not be loaded: clgetplatformids failed: PLATFORM_NOT_FOUND_KHR
libGL error: failed to authenticate magic 2
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
The program 'Xpra' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContext'.
  (Details: serial 250 error_code 172 request_code 155 minor_code 6)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Offline

#8 2015-11-30 03:45:08

antony
Member
Registered: 2011-07-14
Posts: 43

Re: [solved] xpra fails to start

In my case the issue was solved following a short discussion on the xpra mailing list (starting from http://lists.devloop.org.uk/pipermail/s … 1374.html) and a few patches (http://xpra.org/trac/changeset/11012/xpra and http://xpra.org/trac/changeset/11013/xpra) which may or may not have been merged yet.

Offline

#9 2015-11-30 05:44:54

mrman
Member
Registered: 2010-02-05
Posts: 26

Re: [solved] xpra fails to start

I can workaround the issue with

xpra --opengl=no attach

Offline

#10 2016-07-09 22:51:19

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [solved] xpra fails to start

I seemed to only be able to use a svn version of xpra-winswitch from around this time last year.  I can run the latest version of xpra-winswitch, but it won't attach to the session.  It has the error of timeout of more than 15 seconds, and that it thinks that it is not connecting to an xpra session.  The only way I seem to be able to get xpra-winswitch to work is by going back to the xpra-winswitch-svn version from last year.  The latest version might work one time, but even after rebooting, still cannot get the session to ever be revived after one time.  I have installed many of the missing dependencies on both machines and nothing??  I have even run xpra using FreeBSDs repo.  FreeBSD seems to work ok with a later version yet than what I'm currently using on Arch.  But yet not with the newer versions, only the older versions.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB