[winswitch] Connection lost when connecting to xpra server

dan l akadanitan at yahoo.com
Fri Aug 26 05:41:43 BST 2016



>This is unreadable for me. If you cannot get yahoo to not mess up the
log output, please consider using another email provider. (we also have
endless spam and mailing list problems because of yahoo)


Apologize for that. I just switched to text only mode, so hopefully that resolves the issue. As you suggest, though, it sounds like the the server may not be getting anything in this case so instead of pasting the server output again, let's look further at information from the client.



> Have you tried connecting over SSH using a FreeBSD client?

I have only tried with a Windows client. If the info below from the Windows client doesn't reveal what is going on, I will setup a FreeBSD VM and try that.
> Try using the Xpra_cmd.exe command instead of the GUI, it may show more
useful debug messages.


Ok, that seems useful. Below is what I see what I try to make a connection. I have removed some of the lines to save space and because it seems like it is just dumping out a data structure. I have attached the full log in case that is helpful.


> Xpra_cmd.exe
Xpra gtk2 client version 1.0-r13453 32-bit
running on Microsoft Windows 10
GStreamer version 1.8.2 for Python 3.4.4 32-bit
OpenGL_accelerate module loaded
OpenGL enabled with GeForce GTX 970/PCIe/SSE2
keyboard layouts: us
keyboard settings: layout=us
desktop size is 4480x1440 with 1 screen:
Default (1185x381 mm - DPI: 96x96) workarea: 4480x1400
DISPLAY1 2560x1440 at 1920x0 (597x336 mm - DPI: 108x108) workarea: 2560x1400
DISPLAY2 1920x1080 (521x293 mm - DPI: 93x93) workarea: 1920x1080
upscaled by 150%, virtual screen size: 2987x960
Default (1185x381 mm - DPI: 64x64) workarea: 2987x933
DISPLAY1 1707x960 at 1280x0 (597x336 mm - DPI: 72x72) workarea: 1707x933
DISPLAY2 1280x720 (521x293 mm - DPI: 62x62) workarea: 1280x720
Traceback (most recent call last):
File "xpra\net\bencode\cython_bencode.pyx", line 201, in xpra.net.bencode.cython_bencode.bencode (xpra/net/bencode/cython_bencode.c:4580)
File "xpra\net\bencode\cython_bencode.pyx", line 186, in xpra.net.bencode.cython_bencode.encode (xpra/net/bencode/cython_bencode.c:4139)
File "xpra\net\bencode\cython_bencode.pyx", line 161, in xpra.net.bencode.cython_bencode.encode_list (xpra/net/bencode/cython_bencode.c:3713)
File "xpra\net\bencode\cython_bencode.pyx", line 190, in xpra.net.bencode.cython_bencode.encode (xpra/net/bencode/cython_bencode.c:4209)
File "xpra\net\bencode\cython_bencode.pyx", line 170, in xpra.net.bencode.cython_bencode.encode_dict (xpra/net/bencode/cython_bencode.c:3889)
File "xpra\net\bencode\cython_bencode.pyx", line 186, in xpra.net.bencode.cython_bencode.encode (xpra/net/bencode/cython_bencode.c:4139)
File "xpra\net\bencode\cython_bencode.pyx", line 161, in xpra.net.bencode.cython_bencode.encode_list (xpra/net/bencode/cython_bencode.c:3713)
File "xpra\net\bencode\cython_bencode.pyx", line 194, in xpra.net.bencode.cython_bencode.encode (xpra/net/bencode/cython_bencode.c:4289)
ValueError: found None value!
failed to encode packet: ['hello', {'named_cursors': True, 'desktops': 1, 'lzo': True, 'sound.codec-full-names': True, 'pango.version': '1.29.4', 'python-lz4': True, 'glib.version': (2, 28, 8), 'double_click.distance': (4, 4), 'encoding.vpx.version': u'v1.5.0', 'encoding.opencv.version': '3.1.0', 'double_click.time': 760, 'encoding.video_b_frames': ['h264'], 'python-cryptography.version': '1.3.2', 'sound.receive': True, 


<SNIP>

'vorbisenc', 'vorbisparse', 'vorbistag', 'wavenc', 'wavpackdec', 'wavpackenc', 'wavpackparse', 'wavparse', 'webmmux'], 'sound.sources': ['directsoundsrc', 'audiotestsrc'], 'encoding.min-quality': 30, 'pyglib.version': (2, 28, 3), 'compression_level': 1, 'sound.muxers': ['ogg', 'mka', 'mpeg4'], 'build.local_modifications': 0, 'clipboard.selections': ['CLIPBOARD'], 'sound.gst.version': ['1', '8', '2', '0'], 'encoding.swscale.version': (4, 1, 100), 'encoding.csc_atoms': True}]
Traceback (most recent call last):
File "xpra\net\protocol.pyc", line 531, in encode
File "xpra\net\packet_encoding.pyc", line 86, in do_bencode
File "xpra\net\bencode\cython_bencode.pyx", line 206, in xpra.net.bencode.cython_bencode.bencode (xpra/net/bencode/cython_bencode.c:4702)
ValueError: cannot encode '['hello', {'named_cursors': True, 'desktops': 1, 'lzo': True, 'sound.codec-full-names': True, 'pango.version': '1.29.4', 'python-lz4': True, 'glib.version': (2, 28, 8), 'double_click.distance': (4, 4), 'encoding.vpx.version': u'v1.5.0', 'encoding.opencv.version': '3.1.0', 'double_click.time': 760, 'encoding.video_b_frames': ['h264'], 'python-cryptography.version': '1.3.2', 'sound.receive': True,

<SNIP>

.version': (2, 28, 3), 'compression_level': 1, 'sound.muxers': ['ogg', 'mka', 'mpeg4'], 'build.local_modifications': 0, 'clipboard.selections': ['CLIPBOARD'], 'sound.gst.version': ['1', '8', '2', '0'], 'encoding.swscale.version': (4, 1, 100), 'encoding.csc_atoms': True}]': found None value!
None value in 'hello' packet->[1]->value for key='xkbmap_variants'->[0]
Error: error in network packet write/format
cannot encode '['hello', {'named_cursors': True, 'desktops': 1, 'lzo': True, 'sound.codec-full-names': True, 'pango.version': '1.29.4', 'python-lz4': True, 'glib.version': (2, 28, 8), 'double_click.distance': (4, 4), 'encoding.vpx.version': u'v1.5.0', 'encoding.opencv.version': '3.1.0', 'double_click.time': 760, 'encoding.video_b_frames': ['h264'], 'python-cryptography.version': '1.3.2', 'sound.receive': True,

<SNIP>

'vorbisparse', 'vorbistag', 'wavenc', 'wavpackdec', 'wavpackenc', 'wavpackparse', 'wavparse', 'webmmux'], 'sound.sources': ['directsoundsrc', 'audiotestsrc'], 'encoding.min-quality': 30, 'pyglib.version': (2, 28, 3), 'compression_level': 1, 'sound.muxers': ['ogg', 'mka', 'mpeg4'], 'build.local_modifications': 0, 'clipboard.selections': ['CLIPBOARD'], 'sound.gst.version': ['1', '8', '2', '0'], 'encoding.swscale.version': (4, 1, 100), 'encoding.csc_atoms': True}]': found None value!
Traceback (most recent call last):
File "xpra\net\protocol.pyc", line 302, in _write_format_thread_loop
File "xpra\net\protocol.pyc", line 314, in _add_packet_to_queue
File "xpra\net\protocol.pyc", line 531, in encode
File "xpra\net\packet_encoding.pyc", line 86, in do_bencode
File "xpra\net\bencode\cython_bencode.pyx", line 206, in xpra.net.bencode.cython_bencode.bencode (xpra/net/bencode/cython_bencode.c:4702)
ValueError: cannot encode '['hello', {'named_cursors': True, 'desktops': 1, 'lzo': True, 'sound.codec-full-names': True, 'pango.version': '1.29.4', 'python-lz4': True, 'glib.version': (2, 28, 8), 'double_click.distance': (4, 4), 'encoding.vpx.version': u'v1.5.0', 'encoding.opencv.version': '3.1.0', 'double_click.time': 760, 'encoding.video_b_frames': ['h264'], 'python-cryptography.version': '1.3.2', 'sound.receive': True,

<SNIP>

'vorbisenc', 'vorbisparse', 'vorbistag', 'wavenc', 'wavpackdec', 'wavpackenc', 'wavpackparse', 'wavparse', 'webmmux'], 'sound.sources': ['directsoundsrc', 'audiotestsrc'], 'encoding.min-quality': 30, 'pyglib.version': (2, 28, 3), 'compression_level': 1, 'sound.muxers': ['ogg', 'mka', 'mpeg4'], 'build.local_modifications': 0, 'clipboard.selections': ['CLIPBOARD'], 'sound.gst.version': ['1', '8', '2', '0'], 'encoding.swscale.version': (4, 1, 100), 'encoding.csc_atoms': True}]': found None value!
Error: failed to receive anything, not an xpra server?
could also be the wrong protocol, username, password or port
Xpra gtk2 client version 1.0-r13453 32-bit
running on Microsoft Windows 10
GStreamer version 1.8.2 for Python 3.4.4 32-bit


> Check your SSH server log to see if the login was successful.


The following is what I see on the server auth.log when a connection is attempted:

Aug 26 04:30:07 js2 sshd[65216]: Connection reset by 192.168.3.131 port 54232 [preauth]

In this case, the 192.168.3.131 is the IP of my client.


More information about the shifter-users mailing list