Installed on a clean server with Debian 8 Ajenti control panel, the service starts in the console shows Active. But when you follow the link https: //ip.servera: 8000 , it does not enter the panel.

Debug list:

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/usr/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/lib/python2.7/dist-packages/gevent/ssl.py", line 382, in wrap_socket ciphers=ciphers) File "/usr/lib/python2.7/dist-packages/gevent/ssl.py", line 84, in __init__ ctx = SSLContext(ssl_version) NameError: global name 'SSLContext' is not defined <Greenlet at 0x7f1b84782eb0: <bound method SocketIOServer.wrap_socket_and_handle of <SocketIOServer at 0x7f1b83c57190 fileno=6 address=0.0.0.0:8000>>(<socket at 0x7f1b83de2390 fileno=12 sock=192.168.0, ('91.231.255.246', 58413)) > failed with NameError 
  • Installed according to the instructions ? Perhaps SSLContext missing from your version of python. - approximatenumber
  • Yes, I installed according to the instructions. Maybe how to install the right version of python? I have two pythons in the / usr / local / lib / directory, python 2.7 and 3.4 - pwnz22
  • See the python -V version of python -V . As I understand it, SSLContext appeared only from version 2.7.9 . - approximatenumber
  • It turns out the problem was in gevent. If anyone has this error, roll back the gevent to version 1.1b3 or 1.1b4 with the command sudo easy_install -U gevent==1.1b4 - pwnz22
  • 3
    @approximatenumber is not, do not do that . Answers must be answers. - D-side

1 answer 1

Decision from the author:

To solve this problem, roll out gevent to version 1.1b3 or 1.1b4 using easy_install -U gevent==1.1b4