+4

Enabling SSL breaks Ajenti, non SSL works fine

Anthony 'Runt' Cleaves 4 years ago 0

So I have a signed cert from Godaddy, using the chained file.


"language": "",

"bind": {
"host": "46.101.75.44",
"port": 8000
},
"enable_feedback": true,
"ssl": {
"enable": true,
"certificate_path": "/root/v-internet.net.chanined.crt"
},

-----------------


When I restart the service, I get this error continuously


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 0x7f62f32b24b0: <bound method SocketIOServer.wrap_socket_and_handle of <SocketIOServer at 0x7f62f34bbcd0 fileno=8 address=46.101.75.44:8000>>(<socket at 0x7f62f3aaae10 fileno=11 sock=46.101.75, ('88.97.98.202', 59229))> failed with NameError

----


I then try to update the uvent following some of the advice on the forum, and I run into these problems


---

Searching for gevent

Best match: gevent 1.1rc1
Processing gevent-1.1rc1.tar.gz
Writing /tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.cfg
Running gevent-1.1rc1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-VOp7s_/gevent-1.1rc1/egg-dist-tmp-IgQ2QR
no previously-included directories found matching '*/__pycache__'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'config.log' found anywhere in distribution
warning: no previously-included files matching 'config.status' found anywhere in distribution
no previously-included directories found matching 'doc/_build'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.coverage' found under directory 'greentest'
no previously-included directories found matching 'greentest/htmlcov'
warning: no previously-included files matching 'stamp-h?' found under directory 'c-ares'
warning: no previously-included files matching 'ares_build.h.orig' found under directory 'c-ares'
no previously-included directories found matching 'libev/.deps'
warning: no previously-included files matching 'Makefile' found under directory 'libev'
warning: no previously-included files matching 'libtool' found under directory 'libev'
warning: no previously-included files matching 'stamp-h?' found under directory 'libev'
warning: no previously-included files found matching 'Makefile'
Running '(cd "/tmp/easy_install-VOp7s_/gevent-1.1rc1/libev" && /bin/sh ./configure && mv config.h "$OLDPWD") > configure-output.txt' in /tmp/e asy_install-VOp7s_/gevent-1.1rc1/build/temp.linux-x86_64-2.7/libev
configure: error: in `/tmp/easy_install-VOp7s_/gevent-1.1rc1/libev':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Traceback (most recent call last):
File "/usr/bin/easy_install", line 9, in <module>
load_entry_point('setuptools==5.5.1', 'console_scripts', 'easy_install')()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 2199, in main
lambda: setup(
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 2185, in with_ei_usage
return f()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 2202, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 393, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1063, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 68, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 114, in run
return func()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 67, in runner
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.py", line 425, in <module>
File "/tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.py", line 411, in run_setup
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 22, in run
self.build()
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "/tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.py", line 259, in build_extension
File "/tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.py", line 256, in gevent_prepare
File "/tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.py", line 162, in configure_libev
File "/tmp/easy_install-VOp7s_/gevent-1.1rc1/setup.py", line 138, in _system
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/tmp/easy_install-VOp7s_/gevent-1.1rc1/libev" && /bin/sh ./configure && mv config.h "$OLDPWD") > configure-output.txt' returned non-zero exit status 1

--


Now I am lost, I am very new to SSL, can anyone help here?