+5

Error Could not bind to ip address

gh8776 9 years ago updated by Pablo 5 years ago 8
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...




Sorry for resurrect this post but I'm having the issue described above.

Hi, I tried to instal with setup.py install and I still get the same error:

failed with SSLEOFError

It seems it's not a issue about python module version but SSL certificate file end of file.

How to solve this?

Anyone having these issues?

Regards

I have followed the steps of upgrade to 1.1a2 and didn't worked (do you have any guide how to do it?)

I also used pip to upgrade Successfully installed gevent-1.4.0 greenlet-0.4.15 and now ajenti log is missing libraries:

Traceback (most recent call last):
File "/usr/bin/ajenti-panel", line 124, in
from ajenti import core
File "/usr/lib/python2.7/site-packages/ajenti/core.py", line 17, in
import ajenti.feedback
File "/usr/lib/python2.7/site-packages/ajenti/feedback.py", line 8, in
import gevent
File "/usr/lib64/python2.7/site-packages/gevent/__init__.py", line 87, in
from gevent._hub_local import get_hub
File "/usr/lib64/python2.7/site-packages/gevent/_hub_local.py", line 100, in
from gevent._util import import_c_accel
ImportError: cannot import name import_c_accel

The error that is shown in the original post/thread/incidence is about ssl certificate, nothing to do with a python module.

Could you fix it please?

I'm running in a centos 7

Regards

Hi again. I reinstalled a virtual machine image I had and now https ajenti panel access is working. I reinstalled before and it didn't worked. From time to time stops working I don't know why.

Regards