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
Fixed

Firewall function crashes - Ubuntu Server

Carl Medley 11 ár síðan updated by Eugene Pankov (Project coordinator) 11 ár síðan 6

Ajenti 0.99.7 bug report

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

Detected platform: debian / ubuntu / Ubuntu 12.04.2 LTS

Python: 2.7.3

Installation: 27849470

Debug: False

Loaded plugins:

main dashboard services plugins configurator resolv fstab db_common fm power ajenti_org codemirror notepad terminal scripts cron resources network hosts webserver_common apache iptables packages taskmgr mysql sensors logs users test

Traceback (most recent call last):

  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 98, in on_message

    self.ui.dispatch_event(update['uid'], update['event'], update['params'])

  File "/usr/lib/pymodules/python2.7/ajenti/ui/__init__.py", line 64, in dispatch_event

    self.root.dispatch_event(uid, event, params)

  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 306, in dispatch_event

    if child.dispatch_event(uid, event, params):

  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 302, in dispatch_event

    self.event(event, params)

  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 320, in event

    getattr(self, 'on_%s' % event)(**(params or {}))

  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 266, in on_switch

    child.broadcast('on_page_load')

  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 292, in broadcast

    getattr(self, method)(*args, **kwargs)

  File "/usr/lib/pymodules/python2.7/ajenti/plugins/iptables/main.py", line 109, in on_page_load

    self.refresh()

  File "/usr/lib/pymodules/python2.7/ajenti/plugins/iptables/main.py", line 121, in refresh

    self.binder.autodiscover().populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 410, in populate

    binding.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 293, in populate

    binder.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 410, in populate

    binding.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 293, in populate

    binder.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 410, in populate

    binding.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 293, in populate

    binder.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 410, in populate

    binding.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 293, in populate

    binder.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 410, in populate

    binding.populate()

  File "/usr/lib/pymodules/python2.7/ajenti/ui/binder.py", line 130, in populate

    template = self.ui.children[index]

IndexError: list index out of range

Log:

2013-06-26 12:48:12,782 INFO     registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>

2013-06-26 12:48:12,826 INFO     core.run(): Ajenti 0.99.7 running on platform: debian

2013-06-26 12:48:12,826 DEBUG    __init__.load(): Loading plugin services

2013-06-26 12:48:12,826 DEBUG    __init__.load():   == Services 

2013-06-26 12:48:12,826 DEBUG    __init__.load_recursive(): Preloading plugin dependency: main

2013-06-26 12:48:12,827 DEBUG    __init__.load(): Loading plugin main

2013-06-26 12:48:12,827 DEBUG    __init__.load():   == Core 

2013-06-26 12:48:12,844 DEBUG    __init__.load(): Loading plugin services

2013-06-26 12:48:12,844 DEBUG    __init__.load():   == Services 

2013-06-26 12:48:12,844 DEBUG    __init__.load_recursive(): Preloading plugin dependency: dashboard

2013-06-26 12:48:12,844 DEBUG    __init__.load(): Loading plugin dashboard

2013-06-26 12:48:12,844 DEBUG    __init__.load():   == Dashboard 

2013-06-26 12:48:12,845 DEBUG    __init__.load(): Loading plugin services

2013-06-26 12:48:12,845 DEBUG    __init__.load():   == Services 

2013-06-26 12:48:12,853 DEBUG    __init__.load(): Loading plugin plugins

2013-06-26 12:48:12,854 DEBUG    __init__.load():   == Plugins 

2013-06-26 12:48:12,854 DEBUG    __init__.load(): Loading plugin configurator

2013-06-26 12:48:12,854 DEBUG    __init__.load():   == Ajenti Configurator 

2013-06-26 12:48:12,855 DEBUG    __init__.load(): Loading plugin supervisor

2013-06-26 12:48:12,855 DEBUG    __init__.load():   == Supervisor 

2013-06-26 12:48:12,859 WARNING  __init__.load():  *** [supervisor] Plugin failed to load: BinaryDependency (supervisord)

2013-06-26 12:48:12,859 DEBUG    __init__.load(): Loading plugin resolv

2013-06-26 12:48:12,859 DEBUG    __init__.load():   == Nameservers 

2013-06-26 12:48:12,860 DEBUG    __init__.load(): Loading plugin fstab

2013-06-26 12:48:12,860 DEBUG    __init__.load():   == Filesystems 

2013-06-26 12:48:12,882 DEBUG    __init__.load(): Loading plugin squid

2013-06-26 12:48:12,882 DEBUG    __init__.load():   == Squid 

2013-06-26 12:48:12,885 WARNING  __init__.load():  *** [squid] Plugin failed to load: BinaryDependency (squid3)

2013-06-26 12:48:12,886 DEBUG    __init__.load(): Loading plugin db_common

2013-06-26 12:48:12,886 DEBUG    __init__.load():   == Database Commons 

2013-06-26 12:48:12,887 DEBUG    __init__.load(): Loading plugin hddtemp

2013-06-26 12:48:12,887 DEBUG    __init__.load():   == HDD temperature 

2013-06-26 12:48:12,890 WARNING  __init__.load():  *** [hddtemp] Plugin failed to load: BinaryDependency (hddtemp)

2013-06-26 12:48:12,890 DEBUG    __init__.load(): Loading plugin lm-sensors

2013-06-26 12:48:12,890 DEBUG    __init__.load():   == LM-Sensors 

2013-06-26 12:48:12,894 WARNING  __init__.load():  *** [lm-sensors] Plugin failed to load: BinaryDependency (sensors)

2013-06-26 12:48:12,895 DEBUG    __init__.load(): Loading plugin fm

2013-06-26 12:48:12,895 DEBUG    __init__.load():   == File Manager 

2013-06-26 12:48:12,897 DEBUG    __init__.load(): Loading plugin exports

2013-06-26 12:48:12,897 DEBUG    __init__.load():   == NFS Exports 

2013-06-26 12:48:12,901 WARNING  __init__.load():  *** [exports] Plugin failed to load: BinaryDependency (nfsstat)

2013-06-26 12:48:12,901 DEBUG    __init__.load(): Loading plugin power

2013-06-26 12:48:12,901 DEBUG    __init__.load():   == Power 

2013-06-26 12:48:12,902 DEBUG    __init__.load(): Loading plugin ajenti_org

2013-06-26 12:48:12,902 DEBUG    __init__.load():   == ajenti.org integration 

2013-06-26 12:48:12,903 DEBUG    __init__.load(): Loading plugin notepad

2013-06-26 12:48:12,903 DEBUG    __init__.load():   == Notepad 

2013-06-26 12:48:12,903 DEBUG    __init__.load_recursive(): Preloading plugin dependency: codemirror

2013-06-26 12:48:12,903 DEBUG    __init__.load(): Loading plugin codemirror

2013-06-26 12:48:12,903 DEBUG    __init__.load():   == CodeMirror code editor 

2013-06-26 12:48:12,904 DEBUG    __init__.load(): Loading plugin notepad

2013-06-26 12:48:12,904 DEBUG    __init__.load():   == Notepad 

2013-06-26 12:48:12,904 DEBUG    __init__.load(): Loading plugin netatalk

2013-06-26 12:48:12,904 DEBUG    __init__.load():   == Netatalk 

2013-06-26 12:48:12,908 WARNING  __init__.load():  *** [netatalk] Plugin failed to load: BinaryDependency (afpd)

2013-06-26 12:48:12,908 DEBUG    __init__.load(): Loading plugin scripts

2013-06-26 12:48:12,908 DEBUG    __init__.load():   == Scripts 

2013-06-26 12:48:12,908 DEBUG    __init__.load_recursive(): Preloading plugin dependency: terminal

2013-06-26 12:48:12,908 DEBUG    __init__.load(): Loading plugin terminal

2013-06-26 12:48:12,909 DEBUG    __init__.load():   == Terminal 

2013-06-26 12:48:12,921 DEBUG    __init__.load(): Loading plugin scripts

2013-06-26 12:48:12,922 DEBUG    __init__.load():   == Scripts 

2013-06-26 12:48:12,922 DEBUG    __init__.load(): Loading plugin cron

2013-06-26 12:48:12,922 DEBUG    __init__.load():   == Cron 

2013-06-26 12:48:12,927 DEBUG    __init__.load(): Loading plugin resources

2013-06-26 12:48:12,927 DEBUG    __init__.load():   == Resource Manager 

2013-06-26 12:48:12,929 DEBUG    __init__.load(): Loading plugin raid

2013-06-26 12:48:12,929 DEBUG    __init__.load():   == RAID 

2013-06-26 12:48:12,933 WARNING  __init__.load():  *** [raid] Plugin failed to load: BinaryDependency (mdadm)

2013-06-26 12:48:12,934 DEBUG    __init__.load(): Loading plugin psql

2013-06-26 12:48:12,934 DEBUG    __init__.load():   == PostgreSQL 

2013-06-26 12:48:12,938 WARNING  __init__.load():  *** [psql] Plugin failed to load: BinaryDependency (psql)

2013-06-26 12:48:12,938 DEBUG    __init__.load(): Loading plugin network

2013-06-26 12:48:12,938 DEBUG    __init__.load():   == Network 

2013-06-26 12:48:12,939 DEBUG    __init__.load(): Loading plugin hosts

2013-06-26 12:48:12,939 DEBUG    __init__.load():   == Hosts 

2013-06-26 12:48:12,940 DEBUG    __init__.load(): Loading plugin apache

2013-06-26 12:48:12,940 DEBUG    __init__.load():   == Apache 

2013-06-26 12:48:12,940 DEBUG    __init__.load_recursive(): Preloading plugin dependency: webserver_common

2013-06-26 12:48:12,940 DEBUG    __init__.load(): Loading plugin webserver_common

2013-06-26 12:48:12,940 DEBUG    __init__.load():   == Webserver Commons 

2013-06-26 12:48:12,940 DEBUG    __init__.load(): Loading plugin apache

2013-06-26 12:48:12,941 DEBUG    __init__.load():   == Apache 

2013-06-26 12:48:12,945 DEBUG    __init__.load(): Loading plugin iptables

2013-06-26 12:48:12,945 DEBUG    __init__.load():   == Firewall 

2013-06-26 12:48:12,946 DEBUG    __init__.load(): Loading plugin ctdb

2013-06-26 12:48:12,946 DEBUG    __init__.load():   == CTDB 

2013-06-26 12:48:12,950 WARNING  __init__.load():  *** [ctdb] Plugin failed to load: BinaryDependency (ctdb)

2013-06-26 12:48:12,950 DEBUG    __init__.load(): Loading plugin packages

2013-06-26 12:48:12,950 DEBUG    __init__.load():   == Package manager 

2013-06-26 12:48:12,952 DEBUG    __init__.load(): Loading plugin taskmgr

2013-06-26 12:48:12,952 DEBUG    __init__.load():   == Processes 

2013-06-26 12:48:12,953 DEBUG    __init__.load(): Loading plugin mysql

2013-06-26 12:48:12,953 DEBUG    __init__.load():   == MySQL 

2013-06-26 12:48:12,957 DEBUG    __init__.load(): Loading plugin sensors

2013-06-26 12:48:12,958 DEBUG    __init__.load():   == Sensors 

2013-06-26 12:48:12,959 DEBUG    __init__.load(): Loading plugin logs

2013-06-26 12:48:12,959 DEBUG    __init__.load():   == Logs 

2013-06-26 12:48:12,960 DEBUG    __init__.load(): Loading plugin munin

2013-06-26 12:48:12,960 DEBUG    __init__.load():   == Munin 

2013-06-26 12:48:12,964 WARNING  __init__.load():  *** [munin] Plugin failed to load: BinaryDependency (munin-cron)

2013-06-26 12:48:12,964 DEBUG    __init__.load(): Loading plugin nginx

2013-06-26 12:48:12,964 DEBUG    __init__.load():   == NGINX 

2013-06-26 12:48:12,968 WARNING  __init__.load():  *** [nginx] Plugin failed to load: BinaryDependency (nginx)

2013-06-26 12:48:12,968 DEBUG    __init__.load(): Loading plugin users

2013-06-26 12:48:12,969 DEBUG    __init__.load():   == Users 

2013-06-26 12:48:12,969 DEBUG    __init__.load(): Loading plugin samba

2013-06-26 12:48:12,970 DEBUG    __init__.load():   == Samba 

2013-06-26 12:48:12,973 WARNING  __init__.load():  *** [samba] Plugin failed to load: BinaryDependency (smbd)

2013-06-26 12:48:12,974 DEBUG    __init__.load(): Loading plugin smartctl

2013-06-26 12:48:12,974 DEBUG    __init__.load():   == S.M.A.R.T. 

2013-06-26 12:48:12,978 WARNING  __init__.load():  *** [smartctl] Plugin failed to load: BinaryDependency (smartctl)

2013-06-26 12:48:12,978 DEBUG    __init__.load(): Loading plugin test

2013-06-26 12:48:12,978 DEBUG    __init__.load():   == Test 

2013-06-26 12:48:12,985 INFO     core.start(): Starting SSL tunnel for port 47520

2013-06-26 12:48:13,694 INFO     core.run(): SSL tunnel running fine

2013-06-26 12:48:13,694 INFO     core.run(): Starting server on (u'127.0.0.1', 47520)

2013-06-26 12:48:13,695 DEBUG    feedback.send(): Feedback >> ping ({'id': 261})

2013-06-26 12:48:13,699 INFO     connectionpool._new_conn(): Starting new HTTP connection (1): meta.ajenti.org

2013-06-26 12:48:28,715 WARNING  connectionpool.urlopen(): Retrying (0 attempts remain) after connection broken by 'DNSError(67, 'request timed out')': /api/v2/ping


Answer

Hi Carl! Could you please attach your iptables config file?

0
Answered

Block IP Range in Firewall

an solas 10 ár síðan Uppfært 10 ár síðan 10
Hi, 
is it possible to block IP Ranges in the Firewall, please?
Answer
You can use src-range iptables option: http://www.cyberciti.biz/tips/linux-iptables-how-to-specify-a-range-of-ip-addresses-or-ports.html
0
Fixed

YUM repo problem: Metadata doesn't match

AirOnSkin 10 ár síðan updated by Eugene Pankov (Project coordinator) 10 ár síðan 5
Installing Ajenti on CentOS 6 doesn't work because the checksum of the repodata file doesn't match.
Adding the repo works but interacting with it doesn't (yum -y update or yum -y install ajenti)

The install docs suggest to clean the metadata of yum, but that doesn't resolv the problem.
See the following output:

root@bleak: ~ # yum clean all
Loaded plugins: security
Cleaning repos: base epel extras ius remi updates
Cleaning up Everything

root@bleak: ~ # yum clean metadata
Loaded plugins: security
Cleaning repos: base epel extras ius remi updates
0 metadata files removed
0 sqlite files removed
0 metadata files removed

root@bleak: ~ # wget http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rp... && rpm -i ajenti-repo-1.0-1.noarch.rpm && rm ajenti-repo-1.0-1.noarch.rpm
2014-09-08 10:39:56 URL:http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rp... [3327/3327] -> "ajenti-repo-1.0-1.noarch.rpm.1" [1]
removed `ajenti-repo-1.0-1.noarch.rpm'

root@bleak: ~ # yum -y install ajenti
Loaded plugins: security
ajenti/primary | 27 kB 00:00
http://repo.ajenti.org/ng/centos/6/x86_64/repodata... [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from ajenti: [Errno 256] No more mirrors to try.

root@bleak: ~ # yum clean metadata
Loaded plugins: security
Cleaning repos: ajenti base epel extras ius remi updates
4 metadata files removed
0 sqlite files removed
0 metadata files removed

root@bleak: ~ # yum -y install ajenti
Loaded plugins: security
ajenti | 951 B 00:00
ajenti/primary | 27 kB 00:00
http://repo.ajenti.org/ng/centos/6/x86_64/repodata... [Errno -1] Metadata file does not match checksum
Trying other mirror.
ajenti/primary | 27 kB 00:00
http://repo.ajenti.org/ng/centos/6/x86_64/repodata... [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from ajenti: [Errno 256] No more mirrors to try.
root@bleak: ~ #

I've installed Ajenti a few days back and the problem didn't exist then.
Would be great if this could be resolved.

Cheers,
Stefan
0
Answered

Update a binder list row-by-row

jobu1342 10 ár síðan updated by Eugene Pankov (Project coordinator) 10 ár síðan 8
I have a binder that contains a list of items. I have a 'populate' button that is designed to fill out information in the binder, or simply update the information. Currently it works something like this: 

@on('populate', 'click')
def populate(self):
  for Info in self.collection:
    info.refresh()
    self.binder.update().populate()
   """ Ideally the list populates in the browser here,
   and then the code continues
   """

Where indicated in the code, I'd like the browser to update. Is this possible?
0
Answered

Ajenti-V and Munin

Jochen 10 ár síðan updated by Eugene Pankov (Project coordinator) 10 ár síðan 1
Hello,

I Ajenti-V installed and would now like to use Munin within Ajenti. For this I have the packages munin and python-beautifulsoup installed and in Ajenti Munin is now also under the software point to see.

What credentials must be specified therein and which Webserver provides the Munin website? Under "View" unfortunately nothing is displayed.

greeting
Jochen
Answer
You need to set up Munin to work with your server (see Munin manuals), and then use the URL, username and password that you have created.
0

new user can't login

abagshaw 9 ár síðan Uppfært 9 ár síðan 1
After a clean install of Ajenti I can create new users.....but they can't login. I go into Users - New User - enter the username, then I change the password click set, then save. The new user can't login. I've tried this numerous times. But it still doesn't work.
0

Ubuntu 15.04 Server Error

heartsaver1859 9 ár síðan updated by Сергій Шевчук 9 ár síðan 1
After I installed Ajenti on my Server, I can't access over webinterface. The install shows this:
File "/usr/bin/ajenti-ssl-gen", line 17, in conf = json.loads(open(config_path).read())
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 14 column 5 (char 1101)

I tried ajenti-panel -v and got this:
24.04.2015 11:59 ajenti-panel:105 INFO Using config file /etc/ajenti/config.jsonTraceback (most recent call last):
File "/usr/bin/ajenti-panel", line 109, in <module>
ajenti.config.load()
File "/usr/lib/pymodules/python2.7/reconfigure/configs/base.py", line 46, in load
self.nodetree = self.parser.parse(self.content)
File "/usr/lib/pymodules/python2.7/reconfigure/parsers/jsonparser.py", line 13, in parse
self.load_node_rec(node, json.loads(content))
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name enclosed in double quotes: line 14 column 5 (char 1101)

0

Courier not running on TCP4

edoniti_moitend 9 ár síðan 0
Using the "netstat -tulpn" command I can see that Courier process is running only on TCP6 as "7605/couriertcpd", while Exim is running on both TCP4 and TCP6. I do not see any problems at this time, but just wanted to know if this is normal?
0
Answered

Не работает php mail

Владислав Беллик 10 ár síðan updated by Sasha Liah 9 ár síðan 9
Поставил панель ajenti-v, не работает функция php mail, сообщения пишет что отправляет но по адресату не доходят, отправляю из wordpress. Что делать? Как исправить?
Answer
Сервер требует аутентификации, пример: http://php.net/manual/en/function.mail.php#39305
0
Lokið

Remove widgets from dashboard not only on dashboard tab

Paulo Jorge Rodrigues Figueire 11 ár síðan updated by Eugene Pankov (Project coordinator) 11 ár síðan 2

I'v added a widget on dashboard that's causing a error while i try to access the dashboard tab.

I would be nice to disable widgets also on another tab - where they wouldn't be 'loaded' and then not crash/return a error.


Sorry for my rusty english!

Answer

Fix committed, due for the next build :)

Dashboard will now just display crash notice if there's a problem with a widget (this lets us handle not only "bad configuration" crashes, but all others as well).