xpra icon
Bug tracker and wiki

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


Changes between Initial Version and Version 2 of Ticket #1767


Ignore:
Timestamp:
02/14/18 04:11:02 (3 years ago)
Author:
Antoine Martin
Comment:

(moving information where it can be found)

Your server log is full of stacktraces pointing straight to the issue:

Exception in thread new-tcp-connection:
Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  File "C:/msys64/mingw64/lib/python2.7/threading.py", line 754, in run
  File "./xpra/server/server_core.py", line 847, in handle_new_connection
  File "./xpra/server/server_core.py", line 948, in may_wrap_socket
NameError: global name 'endpoint' is not defined

This error was fixed in the 2.2 branch in r18018 and this fix was included in the 2.2.4 release.

So my guess is that you're not running the server version you think you are. Maybe you started the shadow server when an older version was installed?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1767

    • Property Owner changed from Antoine Martin to Luis Mendes
    • Property Component changed from android to server
    • Property Milestone changed from to 2.3
  • Ticket #1767 – Description

    initial v2  
    1 Please see attached file:
     1The problem, described below is that I cannot connect using SSL.
     2With TCP it works fine.
     3One thing I remember is that VoidLinux seems to be using LibreSSL,
     4not OpenSSL.  [https://www.voidlinux.eu/]
     5
     6
     7* 1.a. operating system on client
     8{{{
     9$ uname -a
     10Linux leao 4.9.80_1 #1 SMP PREEMPT Thu Feb 8 18:53:51 UTC 2018 x86_64 GNU/Linux
     11}}}
     12I've tried with kernel 4.14.xx and
     13
     14* 1.b. operating system on server
     15{{{
     16Windows 10 Pro version 1709 (OS Build 16299.192)
     17}}}
     18Pristine and legit installation, no other software installed by me.
     19 
     20* 2. xpra showconfig (see attachment)
     21I haven't done changes, but the distribution packager might have.
     22
     23* 3. desktop environment {{{xfce4-4.12.0}}}
     24
     25* 4. unusual setup
     26client desktop is running in 4K
     27
     28* 5. network setup
     29Windows server is running in a KVM virtual machine in the same computer.
     30Tried  with NAT only, now also with bridge only setup.  Same behaviour.
     31
     32* 6. full command lines used both on the server and client
     33The windows server is running the xpra shadow service.  No modifications.
     34The client works with TCP only:
     35{{{
     36XPRA_ALLOW_UNENCRYPTED_PASSWORDS=1 xpra attach --bind-tcp=0.0.0.0:10000  tcp://luispedro@192.168.1.60
     37}}}
     38
     39The problem is that it doesn't work with SSL:
     40{{{
     41xpra attach --ssl-server-verify=none ssl://luispedro@192.168.1.60
     422018-02-13 16:56:50,436 Xpra gtk2 client version 2.2.4-r18312 64-bit
     432018-02-13 16:56:50,436  running on Linux VoidLinux rolling void
     442018-02-13 16:56:50,436 Warning: failed to import opencv:
     452018-02-13 16:56:50,437  No module named cv2
     462018-02-13 16:56:50,437  webcam forwarding is disabled
     472018-02-13 16:56:50,593 GStreamer version 1.12.4 for Python 2.7.14 64-bit
     482018-02-13 16:56:50,660 Warning: cannot import gtk OpenGL module
     492018-02-13 16:56:50,660  cannot import name gtkgl
     502018-02-13 16:56:50,661 Warning: cannot import native OpenGL module
     512018-02-13 16:56:50,661  No module named OpenGL
     522018-02-13 16:56:50,661 Warning: no OpenGL backends found
     53SSL handshake failed: [Errno 104] Connection reset by peer
     54}}}
     55
     56with the '-d all'  debug option (last lines) - see attachment
     57
     58* 8. the environment
     59In the client (Linux):
     60{{{
     61$ echo $PATH
     62/home/lupe/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/local/bin/fim
     63$ echo $LD_LIBRARY_PATH
     64(nothing)
     65}}}
     66
     67In the server {{{echo %PATH%}}}:
     68{{{
     69C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\luis_.WIN-10-TRADING\AppData\Local\Microsoft\WindowsApps;
     70}}}
     71
     72* 9. xpra info
     73{{{
     74$ xpra info
     75xpra initialization error:
     76 cannot find any live servers to connect to
     77}}}
     78
     79* 10. xpra installation
     80In the client, from Void linux packaging system
     81version:
     82{{{
     83$ xpra --version
     84xpra v2.2.4-r18312
     85}}}
     86
     87In the server, from the xpra download page:
     88{{{
     89Xpra 2.2.4 64 bit
     90revision 18312
     91}}}
     92
     93* 11. It's a new problem
     94First time trying xpra for work.
     95
     96* 12. other similar bugs
     97Not that I know of.
     98
     99* 13. other unusual issues
     100VoidLinux uses LibreSSL.
     101No other that I know of.
     102
     103* 14. reproducible reliably
     104Everytime I try to connect with the above mentioned xpra line with SSL