Xpra: Ticket #1745: Unable to start TCP servers

My server is a Fedora 26 machine running trunk r18033 - and I am unable to start a TCP server with --bind-tcp= -d network prints the following traceback and error:

2018-01-17 09:38:08,755 get_enabled_encoders(['rencode', 'bencode', 'yaml']) enabled=['yaml', 'rencode', 'bencode']
2018-01-17 09:38:08,757 setting up SSL sockets:
2018-01-17 09:38:08,757 setting up https / wss (secure websockets):
2018-01-17 09:38:08,757 setting up TCP sockets: ('', 2200)
2018-01-17 09:38:08,758 create_tcp_socket('', 2200)
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/server/socket_util.py", line 139, in setup_tcp_socket
    tcp_socket = create_tcp_socket(host, iport)
  File "/usr/lib64/python2.7/site-packages/xpra/server/socket_util.py", line 132, in create_tcp_socket
    log("%s.bind(%s)", listener, sockaddr)
UnboundLocalError: local variable 'log' referenced before assignment
xpra initialization error:
 failed to setup tcp socket on local variable 'log' referenced before assignment

Wed, 17 Jan 2018 17:48:18 GMT - J. Max Mena:

Quick bisection narrows down r18032 to be the cause. I suspect it's because you do not initialize the logger in create_tcp_socket.

Wed, 17 Jan 2018 23:04:52 GMT - Antoine Martin: status changed; resolution set

Fixed in r18034

Sat, 23 Jan 2021 05:32:40 GMT - migration script:

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