ssl connexion crash server with error global name 'SSLContext' is not defined

Bug #1386049 reported by Yann
This bug affects 6 people
Affects Status Importance Assigned to Milestone

Bug Description

i've recently upgraded my ubuntu server to 14.10 and now i can't start ajenti in my browser in ssl (with no ssl it works).
It seems to be a problem with and SSLCONTEXT class overrides.

See logs attached.


Revision history for this message
Yann (yann-domise-h) wrote :
description: updated
Revision history for this message
fonix232 (fonix232) wrote :

Same issue on Debian Jessie. It seems to be a problem with the 2.7.8 python-gevent:

Revision history for this message
Guillermo (guillo-far) wrote :
Revision history for this message
Alejandro (aledons) wrote :

I solved the problem with the following:

1:sudo apt-get install python-dev python-greenlet python-gevent python-vte python openssl python-crypto python-appindicator
2:sudo apt-get install python-setuptools
3:easy_install -U gevent

Then insert the line to /usr/lib/python2.7/dist-packages/gevent/
"import ssl"


Revision history for this message
Diego Betto (loi-studios) wrote :

Thank you Alejandro, it works!

(in new release you can skip changes at, "import ssl" it's yet included)

Revision history for this message
Eno (eno-c) wrote :

Hey there,

tried that, and finally get my login via SSL working. Only when I am logged in via Chrome, I get a blank page apart from the top bar of the admin interface. When I login via Firefox and confirm a security exception, the page keeps loading almost forever until I get to the login screen, and then again when I entered my credentials. Finally, it is trying to reconnect afterwards.
If I disable SSL for Ajenti, I can login without any hassle. Is there something I could do about this?

Thanks in advance


Revision history for this message
Bob van de Vijver (bobvandevijver) wrote :

I encountered the same problem, and fixed it by editing the python gevent-socketio source by hand. I've also made a PR for this on github:

In conclusing, just edit:
- /usr/lib/python2.7/dist-packages/socketio/
- /usr/lib/python2.7/dist-packages/socketio/
and add "" around the 3600.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.