hass_proxy gets stucked
Hello, I have tried to use haas_proxy but it gets stucked every time the client gets connected. New sessions are accepted, but gets stucked immediately upon login with the same error.
Testing with:
$ ssh -p 2222 test@localhost
test@localhost's password:
This is what I get in the log:
CRITICAL:twisted:Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 208, in doRead
return self._dataReceived(data)
File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 214, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/usr/lib64/python2.7/site-packages/twisted/conch/ssh/transport.py", line 727, in dataReceived
self.dispatchMessage(messageNum, packet[1:])
File "/usr/lib64/python2.7/site-packages/twisted/conch/ssh/transport.py", line 752, in dispatchMessage
messageNum, payload)
--- <exception caught here> ---
File "/usr/lib64/python2.7/site-packages/twisted/python/log.py", line 101, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib64/python2.7/site-packages/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib64/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib64/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib64/python2.7/site-packages/twisted/conch/ssh/service.py", line 45, in packetReceived
return f(packet)
File "/usr/lib/python2.7/site-packages/haas_proxy/proxy.py", line 53, in ssh_CHANNEL_OPEN
return super().ssh_CHANNEL_OPEN(packet)
exceptions.TypeError: super() takes at least 1 argument (0 given)
Tried on Fedora 28 with : python-haas-proxy-1.5-1.noarch.rpm python2-twisted-16.4.1-5.fc27.x86_64
I have to move the python stuff from /usr/local/lib to /usr/lib in order to run with
python -m haas_proxy -l /dev/null --pidfile /var/run/haas.pid haas_proxy -l /var/log/haas.log --log-level warning --device-token XXX
Michal Ambroz