Welcome to the Ajenti Idea Exchange. It's your chance to collaborate with our team and other users to influence the future of Ajenti! Ideas appreciated.

+4

failed with SSLError debian wheezy

David Lenwell 10 years ago updated by Neiroc 9 years ago 2
This is a rasppi running debian.. totally updated version of wheezy. 

Starting the application in verbose mode reports a status of okay.. however when you attempt to browse to port 8000.. the page fails to load and you get the traceback seen below.

I've been reading other threads and from what I can tell it might be a problem with the installed version of python-gevent-socketio which is at 0.3.6.. 

Any ideas?

19.03.2015 17:02 core.py:134 INFO SSL enabled: /etc/ajenti/ajenti.pem
19.03.2015 17:02 __init__.py:207 DEBUG Root context instantiated [IPCServer] <ajenti.ipc.IPCServer object at 0x21ce550>
19.03.2015 17:02 __init__.py:207 DEBUG Root context instantiated [Licensing] <ajenti.licensing.Licensing object at 0x21ce5d0>
19.03.2015 17:02 feedback.py:30 DEBUG Feedback >> ping ({'edition': 'vanilla', 'version': '1.2.22.18', 'os': 'debian', 'id': 118061})
19.03.2015 17:02 feedback.py:35 DEBUG Feedback << {"status": "ok"
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/ssl.py", line 383, in wrap_socket
ciphers=ciphers)
File "/usr/local/lib/python2.7/dist-packages/gevent/ssl.py", line 94, in __init__
self.do_handshake()
File "/usr/local/lib/python2.7/dist-packages/gevent/ssl.py", line 305, in do_handshake
return self._sslobj.do_handshake()
SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol
<Greenlet at 0x24e7bc0: <bound method SocketIOServer.wrap_socket_and_handle of <SocketIOServer at 0x24d6750 fileno=5 address=0.0.0.0:8000>>(<socket at 0x24e9dd0 fileno=10 sock=10.10.10.1:800, ('10.10.10.156', 53829))> failed with SSLError


+4

The old buttons looked very nice!

happyhardik 10 years ago 0
Please bring them back! They had cool gradient effect.
+4

Automatic back up website files and database

Cyris 9 years ago 0

Hi is there a way or plugin to do automatic monthly backups of your websites and databases?

Ideally, backup two months worth, delete backups older than 2 months old.


+4
Answered

Backup

Vikram C 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 0

Hi.  I have Ajenti running on a CentOS 6.4 VPS, everything looks good.  I see references to a "backup" function in this forum, but I can't find it anywhere on my installation.  Is there a backup and recovery module within Ajenti?

Answer

Yes, there was a rudimentary "backup" support in 0.6.x series, but it's discontinued in 1.0

+4

Enabling SSL breaks Ajenti, non SSL works fine

Anthony 'Runt' Cleaves 9 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?


+4

Add Filemanager archive command

ERROPiX 9 years ago updated by Gelber Orlando Moran Silva 7 years ago 1

It's good to have more buttons on the filemanager plugin

+3

SSL Error installing ajenti on ubuntu 16.04

Aurélien Massé 8 years ago updated by MJ Ray 5 years ago 1

Hi all,

I installed ajenti on my server Ubuntu 16.04 behind apache.

My apache configuration works but ajenti seems have troubles with SSL.

I have my certificates with Let's Encrypt so I updated the conf.json and change my certificate path like this:


"certificate_path": "/etc/letsencrypt/live/.........../fullchain.pem"



But I have this error:

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 25, in _handle_and_close_when_done
return handle(*args_tuple)
File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 126, in wrap_socket_and_handle
ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)
File "/usr/lib/python2.7/dist-packages/gevent/_sslgte279.py", line 691, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/dist-packages/gevent/_sslgte279.py", line 199, in __init__
self._context.load_cert_chain(certfile, keyfile)
SSLError: [SSL] PEM lib (_ssl.c:2603)
<Greenlet at 0x6ac61507d5f0: _handle_and_close_when_done(<bound method SocketIOServer.wrap_socket_and_handl, <bound method SocketIOServer.do_close of <SocketIO, (<socket at 0x6ac6147a0e90 fileno=[Errno 9] Bad fi)> failed with SSLError


Thanks a lot if you have an idea :)

+3

Ошибка сегментирования CentOS7

Ajenti установлен на CentOS 7 работает через http в штатном режиме. Как только пытаюсь зайти через https пишет страница недоступна. ajenti-panel -v показывает все штатно до момента подключения через https, после подключения сразу пишет "Ошибка сегментирования.


Image 130"

+3

BUG REPORT: Error when saving option, making / deleting website in ajenti

Arash Nahvi 9 years ago 0

I receive this error every time I delete, make or save settings of a site. I think the modification happen, but it returns this error every time:


org.freedesktop.DBus.Error.ServiceUnknown: The name :1.0 was not provided by any .service files

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 158, in handle_message
    self.ui.dispatch_event(update['uid'], update['event'], update['params'])
  File "/usr/lib/pymodules/python2.7/ajenti/ui/__init__.py", line 72, in dispatch_event
    self.root.dispatch_event(uid, event, params)
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 388, in dispatch_event
    getattr(self, k)(**(params or {}))
  File "/var/lib/ajenti/plugins/vh/main.py", line 89, in on_recheck
    self.manager.run_checks()
  File "/var/lib/ajenti/plugins/vh/api.py", line 327, in run_checks
    self.__runall([(run_check, [c]) for c in self.checks])
  File "/var/lib/ajenti/plugins/vh/api.py", line 298, in __runall
    raise g.exception
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.0 was not provided by any .service files


+3
Under review

cannot install on ubuntu server 14.04

adrichav 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 1
I cannot install ajenti or ajenti V on Ubuntu server 14.04 LTS. I get the key but installation fails. Please update instructions.