Is there a bug in HaaS?

From May 18 I can see in the turris omnia syslog huge amount of records by HaaS. Repeating sequence (almost every minute):

2022-05-20 10:34:18 err haas-proxy-start[5297]: 2022-05-20T10:34:18 CRITICAL twisted Unhandled Error
2022-05-20 10:34:18 err haas-proxy-start[5297]: Traceback (most recent call last):
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/internet/tcp.py", line 243, in doRead
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/internet/tcp.py", line 249, in _dataReceived
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/conch/ssh/transport.py", line 703, in dataReceived
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/conch/ssh/transport.py", line 728, in dispatchMessage
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]: --- <exception caught here> ---
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/python/log.py", line 103, in callWithLogger
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/python/log.py", line 86, in callWithContext
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/python/context.py", line 122, in callWithContext
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/python/context.py", line 85, in callWithContext
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/conch/ssh/service.py", line 45, in packetReceived
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]:   File "/usr/lib/python3.7/site-packages/twisted/conch/ssh/connection.py", line 308, in ssh_CHANNEL_CLOSE
2022-05-20 10:34:18 err haas-proxy-start[5297]:     
2022-05-20 10:34:18 err haas-proxy-start[5297]: builtins.KeyError: 0

But in HaaS.nic.cz report are reported only few attacks per day.
Is it an error/bug in HaaS software or misconfiguration? I’ll probably have to turn off HaaS.

May i suggest to add the haas proxy reload line to your ‘scheduled task’ in Luci > System > , it will solve these random hangups?

Thanks for the suggestion, but it does not help. haas-proxy is not relevant command. I don’t know how to restart haas service.

That is easy. Go to luci > system > startup en press haas proxy restart

1 Like

Restart of haas-proxy doesn’t help either. I wanted to help with the research, but if I can’t, I’ll shut down Haas. Thanks.

It was already discussed here.

No, there is discussion about standard message “CRITICAL twisted 'channel open failed, direct-tcpip is not allowed” not about “CRITICAL twisted Unhandled Error”.