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.

0
Declined

I have trouble starting server

Marko Ćipović 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 1

I used older version of Ajenti and today upgraded to the latest version. In errlog I am getting this error


24.09.2013 20:15 WARN   *** Plugin dependency unsatisfied: vh-php-fpm -> vh

24.09.2013 20:15 WARN   *** Plugin dependency unsatisfied: vh-gunicorn -> vh

24.09.2013 20:15 WARN   *** [munin] skipping due to BinaryDependency (munin-cron)

24.09.2013 20:15 WARN   *** [exports] skipping due to BinaryDependency (nfsstat)

24.09.2013 20:15 WARN   *** [nsd] skipping due to BinaryDependency (nsd)

24.09.2013 20:15 WARN   *** [hddtemp] skipping due to BinaryDependency (hddtemp)

24.09.2013 20:15 WARN   *** [nginx] skipping due to BinaryDependency (nginx)

24.09.2013 20:15 WARN   *** Plugin dependency unsatisfied: vh-mysql -> vh

24.09.2013 20:15 WARN   *** Plugin dependency unsatisfied: vh-nginx -> vh

24.09.2013 20:15 WARN   *** [smartctl] skipping due to BinaryDependency (smartctl)

24.09.2013 20:15 WARN   *** [bind9] skipping due to BinaryDependency (named)

24.09.2013 20:15 WARN   *** [dhcpd] skipping due to BinaryDependency (dhcpd)

24.09.2013 20:15 WARN   *** [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli)

24.09.2013 20:15 WARN   *** [squid] skipping due to BinaryDependency (squid3)

24.09.2013 20:15 WARN   *** [ctdb] skipping due to BinaryDependency (ctdb)

24.09.2013 20:15 WARN   *** [memcache] skipping due to BinaryDependency (memcached)

24.09.2013 20:15 WARN   *** [supervisor] skipping due to BinaryDependency (supervisord)

24.09.2013 20:15 WARN   *** [cpu] Plugin error: format error

24.09.2013 20:15 WARN   *** [daemons] Plugin error: format error

24.09.2013 20:15 WARN   *** [sysload] Plugin error: format error

24.09.2013 20:15 WARN   *** [loadcores] Plugin error: format error

24.09.2013 20:15 WARN   *** [pkgman] Plugin error: format error

24.09.2013 20:15 WARN   *** [filesystems] Plugin error: format error

24.09.2013 20:15 WARN   *** [hddstat] Plugin error: format error

24.09.2013 20:15 WARN   *** [dns] Plugin error: format error

24.09.2013 20:15 WARN   *** [shell] Plugin error: format error

24.09.2013 20:15 INFO  Starting SSL tunnel for port 41584

24.09.2013 20:15 ERROR SSL tunnel failed to start

24.09.2013 20:15 INFO  Starting server on (u'0.0.0.0', 8000)

24.09.2013 20:15 ERROR Could not bind to (u'0.0.0.0', 8000)


It is ubuntu 12.04


Thanks,

Marko


Answer

Expired

0

Adding in page Help & Tips

Chamunks 9 years ago 0
Jenkins CI has this lovely feature that documentation is embedded into all pages next to each feature.  https://imgur.com/WarPigb  turns into this https://imgur.com/ICCn2qY after you've clicked the little blue question mark.  Granted Jenkins could probably use someone who makes prettier CSS its still pushing the help directly into the admin/configuration panel.
0
Fixed

Ajenti breaks gevent *URGENT*

Noah Dolph 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 2
After a yum update python-gevent is downloaded from Ajenti. It then breaks and Ajenti cannot be loaded.

[root@ng1 ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: ajenti base epel extras mysql-connectors-community mysql-tools-community mysql56-community remi-php55 updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@ng1 ~]# yum install ajenti
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink | 14 kB 00:00
* base: mirror.atlanticmetro.net
* epel: epel.mirror.constant.com
* extras: mirror.cogentco.com
* remi-php55: remi.check-update.co.uk
* updates: mirror.symnds.com
ajenti | 951 B 00:00
ajenti/primary | 24 kB 00:00
ajenti 74/74
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.3 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 19 kB 00:00
mysql-connectors-community | 2.5 kB 00:00
mysql-connectors-community/primary_db | 6.6 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql-tools-community/primary_db | 14 kB 00:00
mysql56-community | 2.5 kB 00:00
mysql56-community/primary_db | 49 kB 00:00
remi-php55 | 2.9 kB 00:00
remi-php55/primary_db | 156 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.7 MB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ajenti.noarch 0:1.2.22.6-1 will be installed
--> Processing Dependency: python-gevent-socketio for package: ajenti-1.2.22.6-1.noarch
--> Processing Dependency: python-gevent for package: ajenti-1.2.22.6-1.noarch
--> Processing Dependency: python-gevent-websocket for package: ajenti-1.2.22.6-1.noarch
--> Running transaction check
---> Package python-gevent.x86_64 0:1.0.1-1 will be installed
---> Package python-gevent-socketio.noarch 0:0.3.6-1 will be installed
---> Package python-gevent-websocket.noarch 0:0.9.3-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================
Installing:
ajenti noarch 1.2.22.6-1 ajenti 1.4 M
Installing for dependencies:
python-gevent x86_64 1.0.1-1 ajenti 51 k
python-gevent-socketio noarch 0.3.6-1 ajenti 26 k
python-gevent-websocket noarch 0.9.3-1 ajenti 7.2 k

Transaction Summary
===========================================================================================================================================================================================================
Install 4 Package(s)

Total download size: 1.5 M
Installed size: 4.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): ajenti-1.2.22.6-1.noarch.rpm | 1.4 MB 00:00
(2/4): python-gevent-1.0.1-1.x86_64.rpm | 51 kB 00:00
(3/4): python-gevent-socketio-0.3.6-1.noarch.rpm | 26 kB 00:00
(4/4): python-gevent-websocket-0.9.3-1.noarch.rpm | 7.2 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 29 MB/s | 1.5 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-gevent-1.0.1-1.x86_64 1/4
Installing : python-gevent-websocket-0.9.3-1.noarch 2/4
Installing : python-gevent-socketio-0.3.6-1.noarch 3/4
Installing : ajenti-1.2.22.6-1.noarch 4/4
:: SSL is already configured
Stopping Ajenti:
not running
Starting Ajenti:
2014-08-11 19:20:03,040 INFO ajenti-panel.<module>(): Using config file /etc/ajenti/config.json
started]
------------------------------------------------
Now start Ajenti with 'service ajenti restart'
Ajenti will listen on HTTPS port 8000 by default

Default username : root
Default password : admin
------------------------------------------------
Verifying : python-gevent-socketio-0.3.6-1.noarch 1/4
Verifying : python-gevent-websocket-0.9.3-1.noarch 2/4
Verifying : ajenti-1.2.22.6-1.noarch 3/4
Verifying : python-gevent-1.0.1-1.x86_64 4/4

Installed:
ajenti.noarch 0:1.2.22.6-1

Dependency Installed:
python-gevent.x86_64 0:1.0.1-1 python-gevent-socketio.noarch 0:0.3.6-1 python-gevent-websocket.noarch 0:0.9.3-1

Complete!
[root@ng1 ~]# ajenti-panel -v
11.08.2014 19:20 ajenti-panel:105 INFO Using config file /etc/ajenti/config.json
11.08.2014 19:20 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/python2.6/site-packages/ajenti/core.py", line 17, in <module>
import ajenti.feedback
File "/usr/lib/python2.6/site-packages/ajenti/feedback.py", line 8, in <module>
import gevent
ImportError: No module named gevent
[root@ng1 ~]#

0

FTP Can not connect to the server

giraff 8 years ago 0

netstat -lnp | grep 21

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1993/pure-ftpd (SER
tcp6 0 0 :::21 :::* LISTEN 1993/pure-ftpd (SER


What is the problem?

0
Fixed

CentOS and Ajenti 1.0.1

InteractMarketing 11 years ago updated by Maftei Alexandru 10 years ago 23

Trying to upgrade to 1.0.1 but instructions doesn't work (CentOS). Returns Package ajenti-0.6.2-1.noarch already installed and latest version. Uninstalled and try again directions from the main page - no luck.


Any clue?


Thanks

Answer

Try following:

yum clean all

yum install ajenti

0
Answered

htcaccess not working?

Temple Pate 10 years ago updated 10 years ago 9
I finally got owncloud up and going, did exactly the same as last time so not sure what differnece I did this time. Even the ssl went up without a hitch! But theres one thing. htcaccess? Honestly i always turned it off, don't even know what it's used for, and as such I get this error. 

Security WarningYour data directory and files are probably accessible from the internet because the .htaccess file does not work.
For information how to properly configure your server, please see thedocumentation.


That said I'm posting here because this is how I used to install it, I'm planning on doing it this way and the terminal way, but this way makes it easier for other people who don't like the terminal as much. If I could get that error to go away that would be awesome :) 
Answer
.htaccess and NGINX are completely unrelated to each other. To forbid access to a directory inside your installation, you could e.g. create a Static Files content entry for the relevant URL with a nonexisting path for it.
0
Not a bug

Cannot use nginx plugin on Debian

Stanislav Vychegzhanin 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 4
Good day.
I cannot use nginx plugin in Ajenti. It shows only exclamation sign near the "Application binary".
root@none:~# aptitude show ajenti
Package: ajenti
New: yes
State: installed
Automatically installed: no
Version: 1.2.16.1
...
root@none:~# aptitude show nginx
Package: nginx
New: yes
State: installed
Automatically installed: no
Version: 1.2.1-2.2+wheezy2
Priority: optional
Section: httpd
...
root@none:~# cat /proc/version
Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.51-1
...
root@none:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"

Could you please advise how to solve this issue?
Thanx in advance.
Answer
Please check output of which nginx
0
Completed

Network display ip

Richard Neese 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 0
On the network page where it shows the interfaces... it should show
interface name/ip/class/tx/rx
Answer
Fix committed.
0
Answered

ImportError at /api/v2/ping

Benjamin Khoo 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 0
hi

i am trying to write a small plugin to Ajenti but i ran into the Import error above.
the trace thrown doesn't seem to indicate anything from my code but it gets thrown at load up.

i'm not so sure if what i am writing caused this. But it didn't for a while.

my plugin imports and the error attached below.
let me know if this is something i can fix or i can ignore? coz my plugin still works fine...

import os
import json
import subprocess
from ajenti.api import *
from ajenti.ui.binder import Binder
from ajenti.plugins.main.api import SectionPlugin
from ajenti.ui import on
from ajenti.util import platform_select

ImportError at /api/v2/ping

No module named defaults
Request Method:POST
Request URL:http://meta.ajenti.org/api/v2/ping
Django Version:
Exception Type:ImportError
Exception Value:
No module named defaults
Exception Location:/srv/meta2/config/urls.py in <module>, line 1
Python Executable:/srv/meta2/env/bin/python
Python Version:
Python Path:
[path(u'/srv/meta2/apps'),
 path(u'/srv/meta2/libs'),
 '/srv/meta2',
 '/srv/meta2/env/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/srv/meta2/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/srv/meta2/env/lib/python2.7',
 '/srv/meta2/env/lib/python2.7/plat-linux2',
 '/srv/meta2/env/lib/python2.7/lib-tk',
 '/srv/meta2/env/lib/python2.7/lib-old',
 '/srv/meta2/env/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/srv/meta2/env/local/lib/python2.7/site-packages',
 '/srv/meta2/env/lib/python2.7/site-packages']
Server time:Mon, 23 Dec 2013 10:46:09 -0600


Answer
This is a remote-side bug (just fixed).
0
Answered

After Ajenti installation working site gives : 502 Bad Gateway nginx/1.6.0

Wiz Kiran 10 years ago updated by Yan Bourgeois 8 years ago 9
I use Debain 7.5 Wheezy and my site was up and running. I installed Ajenti and since then I get 502 Bad Gateway error. When I click on Nginx on Ajenti (already removed Apache), I get the following error

[Errno 2] No such file or directory: '/etc/nginx/sites-available' 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 378, in dispatch_event self.event(event, params) File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 402, in event getattr(self, 'on_%s' % self_event)(**(params or {})) File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 376, in on_switch child.broadcast('on_page_load') File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 356, in broadcast getattr(self, method)(*args, **kwargs) File "/usr/lib/pymodules/python2.7/ajenti/plugins/webserver_common/api.py", line 144, in on_page_load self.refresh() File "/usr/lib/pymodules/python2.7/ajenti/plugins/webserver_common/api.py", line 154, in refresh self.hosts = [WebserverHost(self, self.hosts_dir, x) for x in self.hosts_dir.list_available()] File "/usr/lib/pymodules/python2.7/ajenti/plugins/webserver_common/api.py", line 25, in list_available return [x for x in sorted(os.listdir(self.dir_a)) if not os.path.isdir(os.path.join(self.dir_a, x))] OSError: [Errno 2] No such file or directory: '/etc/nginx/sites-available'

Please help. Thanks