ajenti: Ajenti not working in Debian Jessie
Problem with gevent support…
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766867
I installed gevent with easy install, following the instructions to solve the similar ubuntu issue: https://github.com/Eugeny/ajenti/issues/618
Did not work. Now ajenti is not starting:
08.04.2015 08:51 ajenti-panel:105 INFO Using config file /etc/ajenti/config.json
08.04.2015 08:51 ajenti-panel:130 INFO Ajenti starting in foreground
Traceback (most recent call last):
File "/usr/bin/ajenti-panel", line 137, in <module>
from ajenti import core
File "/usr/lib/pymodules/python2.7/ajenti/core.py", line 18, in <module>
import ajenti.licensing
File "/usr/lib/pymodules/python2.7/ajenti/licensing.py", line 8, in <module>
from ajenti.ipc import IPCHandler
File "/usr/lib/pymodules/python2.7/ajenti/ipc.py", line 2, in <module>
from gevent.pywsgi import WSGIServer, WSGIHandler
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/pywsgi.py", line 12, in <module>
from gevent import socket
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/socket.py", line 659, in <module>
from gevent.ssl import sslwrap_simple as ssl, SSLError as sslerror, SSLSocket as SSLType
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/ssl.py", line 386, in <module>
def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):
NameError: name 'PROTOCOL_SSLv3' is not defined
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 36 (2 by maintainers)
To fix problem, execute the commands below.
Install python tools and dev $ install python-setuptools python-dev
Install gevent, in version 1.1b3 $ easy_install -U gevent==1.1b3
Downgrade ssl version of protocol $ sed -i -e s/ssl_version=PROTOCOL_SSLv3/ssl_version=PROTOCOL_SSLv23/ /usr/local/lib/python2.7/dist-packages/gevent-1.1b3-py2.7-linux-x86_64.egg/gevent/ssl.py
Restart ajenti $ service ajenti restart
+1. @hydrosIII The patch actually works. Here what I did, replacing gevent from debian/jessie by gevent from easy_install (like you did), and doing this;
It works fine.
Here the original ajenti.log before that :
works now
+1