+5

Error Could not bind to ip address

gh8776 5 years ago updated by Anton Staroverov 5 years ago 5
Restarting ajenti does not show that everything is ok. Panel can be accessed only without ssl. Ajenti-v-mail is installed but I cannot see it in panel for some reason.

I get following error:

core.py:121 ERROR Could not bind to (u'123.123.123.123', 8000)

netstat -tulpn | grep "8000" shows that python is using it, but killing it and restarting ajenti starts python again.

stunnel also autputs error, but that is only a symptom, IMO:
Line 1: "/etc/ajenti/ajenti.pem": No '=' found

ajenti.log:
2015-06-05 12:21:43,123 INFO users.check_password(): user root logged in through AjentiSyncProvider from my.ip.add.ress
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.2-py2.7-linux-x86_64.egg/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.2-py2.7-linux-x86_64.egg/gevent/server.py", line 102, in wrap_socket_and_handle
ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.2-py2.7-linux-x86_64.egg/gevent/_sslgte279.py", line 636, in wrap_socket
ciphers=ciphers)
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.2-py2.7-linux-x86_64.egg/gevent/_sslgte279.py", line 248, in __init__
raise x
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:581)
>( failed with SSLEOFError

I have same problem, nonSSL works fine
Similar issue here as well - Fresh install of Ubuntu - Without SSL it works fine, with SSL enabled, here is the log:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/gevent/server.py", line 102, in wrap_socket_and_handle
ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)
File "/usr/local/lib/python2.7/dist-packages/gevent/_sslgte279.py", line 636, in wrap_socket
ciphers=ciphers)
File "/usr/local/lib/python2.7/dist-packages/gevent/_sslgte279.py", line 248, in __init__
raise x
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)
<Greenlet at 0xb31ef2fcL: <bound method SocketIOServer.wrap_socket_and_handle of <SocketIOServer at 0xb3ce1c8cL fileno=8 address=0.0.0.0:8000>>(<socket at 0xb31eecacL fileno=19 sock=xxx.xxx.xxx., ('xxx.xxx.xxx.xx', 52379))> failed with SSLEOFError
Is there a fix or a workaround please?
Thanks

+2

Gevent 1.1a2 solves this problem...