Ajenti crashes with package manager - list index out of range

Bug #1251511 reported by Lê Hoàng Phương
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ajenti
Won't Fix
Undecided
Eugene Pankov

Bug Description

Ajenti 1.2.6.2 bug report
--------------------
Detected platform: debian / ubuntu / Ubuntu 13.10

Architecture: i686 i686

Python: 2.7.5+
Installation: 65280404
Debug: False
Locale: ('vi_VN', 'UTF-8')
Loaded plugins:
main dashboard services db_common mysql fm codemirror taskmgr resources terminal scripts fstab notepad network logs plugins cron tasks ajenti_org power users configurator hosts resolv iptables webserver_common apache packages sensors nginx

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 104, in on_message
    self.ui.dispatch_event(update['uid'], update['event'], update['params'])
  File "/usr/lib/pymodules/python2.7/ajenti/ui/__init__.py", line 52, in dispatch_event
    self.root.dispatch_event(uid, event, params)
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 314, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 310, in dispatch_event
    self.event(event, params)
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 329, in event
    getattr(self, 'on_%s' % self_event)(**(params or {}))
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 288, in on_switch
    child.broadcast('on_page_load')
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 298, in broadcast
    getattr(self, method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/packages/main.py", line 74, in on_page_load
    self.mgr.refresh()
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/packages/pm_apt.py", line 14, in refresh
    self.all = self._parse_dpkg(out_a)
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/packages/pm_apt.py", line 92, in _parse_dpkg
    p.version = s[2]
IndexError: list index out of range

http://ajenti.org/catcher/view/9670

Log content:
2013-11-15 11:19:19,789 INFO ajenti-panel.<module>(): Using config file /etc/ajenti/config.json
2013-11-15 11:19:19,926 INFO registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
2013-11-15 11:19:19,979 INFO core.run(): Ajenti 1.2.6.2 running on platform: debian
2013-11-15 11:19:19,979 DEBUG __init__.load(): Loading plugin openvpn
2013-11-15 11:19:19,979 DEBUG __init__.load_recursive(): Preloading plugin dependency: main
2013-11-15 11:19:19,980 DEBUG __init__.load(): Loading plugin main
2013-11-15 11:19:19,985 DEBUG __init__.load(): Loading plugin openvpn
2013-11-15 11:19:19,985 DEBUG __init__.load_recursive(): Preloading plugin dependency: services
2013-11-15 11:19:19,985 DEBUG __init__.load(): Loading plugin services
2013-11-15 11:19:19,985 DEBUG __init__.load_recursive(): Preloading plugin dependency: dashboard
2013-11-15 11:19:19,985 DEBUG __init__.load(): Loading plugin dashboard
2013-11-15 11:19:19,986 DEBUG __init__.load(): Loading plugin services
2013-11-15 11:19:19,995 DEBUG __init__.load(): Loading plugin openvpn
2013-11-15 11:19:19,999 WARNING __init__.load(): *** [openvpn] skipping due to BinaryDependency (openvpn)
2013-11-15 11:19:20,000 DEBUG __init__.load(): Loading plugin mysql
2013-11-15 11:19:20,000 DEBUG __init__.load_recursive(): Preloading plugin dependency: db_common
2013-11-15 11:19:20,000 DEBUG __init__.load(): Loading plugin db_common
2013-11-15 11:19:20,001 DEBUG __init__.load(): Loading plugin mysql
2013-11-15 11:19:20,010 DEBUG __init__.load(): Loading plugin fm
2013-11-15 11:19:20,013 DEBUG __init__.load(): Loading plugin codemirror
2013-11-15 11:19:20,013 DEBUG __init__.load(): Loading plugin ipmi
2013-11-15 11:19:20,019 WARNING __init__.load(): *** [ipmi] skipping due to BinaryDependency (ipmitool)
2013-11-15 11:19:20,020 DEBUG __init__.load(): Loading plugin hddtemp
2013-11-15 11:19:20,025 WARNING __init__.load(): *** [hddtemp] skipping due to BinaryDependency (hddtemp)
2013-11-15 11:19:20,026 DEBUG __init__.load(): Loading plugin taskmgr
2013-11-15 11:19:20,045 DEBUG __init__.load(): Loading plugin psql
2013-11-15 11:19:20,050 WARNING __init__.load(): *** [psql] skipping due to BinaryDependency (psql)
2013-11-15 11:19:20,050 DEBUG __init__.load(): Loading plugin resources
2013-11-15 11:19:20,051 DEBUG __init__.load(): Loading plugin dhcpd
2013-11-15 11:19:20,056 WARNING __init__.load(): *** [dhcpd] skipping due to BinaryDependency (dhcpd)
2013-11-15 11:19:20,057 DEBUG __init__.load(): Loading plugin scripts
2013-11-15 11:19:20,057 DEBUG __init__.load_recursive(): Preloading plugin dependency: terminal
2013-11-15 11:19:20,057 DEBUG __init__.load(): Loading plugin terminal
2013-11-15 11:19:20,068 DEBUG __init__.load(): Loading plugin scripts
2013-11-15 11:19:20,069 DEBUG __init__.load(): Loading plugin fstab
2013-11-15 11:19:20,070 DEBUG __init__.load(): Loading plugin ltfs
2013-11-15 11:19:20,070 WARNING __init__.load(): *** [ltfs] Plugin error: format error
2013-11-15 11:19:20,070 DEBUG __init__.load(): Loading plugin notepad
2013-11-15 11:19:20,071 DEBUG __init__.load(): Loading plugin munin
2013-11-15 11:19:20,075 WARNING __init__.load(): *** [munin] skipping due to BinaryDependency (munin-cron)
2013-11-15 11:19:20,076 DEBUG __init__.load(): Loading plugin network
2013-11-15 11:19:20,078 DEBUG __init__.load(): Loading plugin nsd
2013-11-15 11:19:20,083 WARNING __init__.load(): *** [nsd] skipping due to BinaryDependency (nsd)
2013-11-15 11:19:20,083 DEBUG __init__.load(): Loading plugin logs
2013-11-15 11:19:20,084 DEBUG __init__.load(): Loading plugin plugins
2013-11-15 11:19:20,084 DEBUG __init__.load(): Loading plugin supervisor
2013-11-15 11:19:20,089 WARNING __init__.load(): *** [supervisor] skipping due to BinaryDependency (supervisord)
2013-11-15 11:19:20,089 DEBUG __init__.load(): Loading plugin megaraid
2013-11-15 11:19:20,090 WARNING __init__.load(): *** [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli)
2013-11-15 11:19:20,090 DEBUG __init__.load(): Loading plugin memcache
2013-11-15 11:19:20,094 WARNING __init__.load(): *** [memcache] skipping due to BinaryDependency (memcached)
2013-11-15 11:19:20,095 DEBUG __init__.load(): Loading plugin tasks
2013-11-15 11:19:20,095 DEBUG __init__.load_recursive(): Preloading plugin dependency: cron
2013-11-15 11:19:20,095 DEBUG __init__.load(): Loading plugin cron
2013-11-15 11:19:20,101 DEBUG __init__.load(): Loading plugin tasks
2013-11-15 11:19:20,107 DEBUG __init__.load(): Loading plugin ajenti_org
2013-11-15 11:19:20,108 DEBUG __init__.load(): Loading plugin power
2013-11-15 11:19:20,109 DEBUG __init__.load(): Loading plugin users
2013-11-15 11:19:20,110 DEBUG __init__.load(): Loading plugin exports
2013-11-15 11:19:20,116 WARNING __init__.load(): *** [exports] skipping due to BinaryDependency (nfsstat)
2013-11-15 11:19:20,116 DEBUG __init__.load(): Loading plugin configurator
2013-11-15 11:19:20,118 DEBUG __init__.load(): Loading plugin netatalk
2013-11-15 11:19:20,123 WARNING __init__.load(): *** [netatalk] skipping due to BinaryDependency (afpd)
2013-11-15 11:19:20,123 DEBUG __init__.load(): Loading plugin ctdb
2013-11-15 11:19:20,129 WARNING __init__.load(): *** [ctdb] skipping due to BinaryDependency (ctdb)
2013-11-15 11:19:20,129 DEBUG __init__.load(): Loading plugin apcups
2013-11-15 11:19:20,134 WARNING __init__.load(): *** [apcups] skipping due to BinaryDependency (apcaccess)
2013-11-15 11:19:20,135 DEBUG __init__.load(): Loading plugin hosts
2013-11-15 11:19:20,136 DEBUG __init__.load(): Loading plugin raid
2013-11-15 11:19:20,141 WARNING __init__.load(): *** [raid] skipping due to BinaryDependency (mdadm)
2013-11-15 11:19:20,142 DEBUG __init__.load(): Loading plugin samba
2013-11-15 11:19:20,147 WARNING __init__.load(): *** [samba] skipping due to BinaryDependency (smbd)
2013-11-15 11:19:20,147 DEBUG __init__.load(): Loading plugin resolv
2013-11-15 11:19:20,148 DEBUG __init__.load(): Loading plugin elements
2013-11-15 11:19:20,148 WARNING __init__.load(): *** [elements] Plugin error: format error
2013-11-15 11:19:20,149 DEBUG __init__.load(): Loading plugin squid
2013-11-15 11:19:20,154 WARNING __init__.load(): *** [squid] skipping due to BinaryDependency (squid3)
2013-11-15 11:19:20,154 DEBUG __init__.load(): Loading plugin lm_sensors
2013-11-15 11:19:20,159 WARNING __init__.load(): *** [lm_sensors] skipping due to BinaryDependency (sensors)
2013-11-15 11:19:20,160 DEBUG __init__.load(): Loading plugin iptables
2013-11-15 11:19:20,161 DEBUG __init__.load(): Loading plugin webserver_common
2013-11-15 11:19:20,162 DEBUG __init__.load(): Loading plugin bind9
2013-11-15 11:19:20,168 WARNING __init__.load(): *** [bind9] skipping due to BinaryDependency (named)
2013-11-15 11:19:20,168 DEBUG __init__.load(): Loading plugin smartctl
2013-11-15 11:19:20,173 WARNING __init__.load(): *** [smartctl] skipping due to BinaryDependency (smartctl)
2013-11-15 11:19:20,174 DEBUG __init__.load(): Loading plugin apache
2013-11-15 11:19:20,179 DEBUG __init__.load(): Loading plugin packages
2013-11-15 11:19:20,183 DEBUG __init__.load(): Loading plugin sensors
2013-11-15 11:19:20,185 DEBUG __init__.load(): Loading plugin nginx
2013-11-15 11:19:20,200 INFO core.start(): Starting SSL tunnel for port 43731
2013-11-15 11:19:20,710 INFO core.run(): SSL tunnel running fine
2013-11-15 11:19:20,710 INFO core.run(): Starting server on (u'127.0.0.1', 43731)
2013-11-15 11:19:20,767 DEBUG inflater.precache(): Precaching layout dashboard:dash
2013-11-15 11:19:20,769 DEBUG inflater.precache(): Precaching layout dashboard:welcome
2013-11-15 11:19:20,769 DEBUG inflater.precache(): Precaching layout dashboard:text
2013-11-15 11:19:20,770 DEBUG inflater.precache(): Precaching layout services:widget
2013-11-15 11:19:20,771 DEBUG inflater.precache(): Precaching layout services:main
2013-11-15 11:19:20,772 DEBUG inflater.precache(): Precaching layout services:bar
2013-11-15 11:19:20,773 DEBUG inflater.precache(): Precaching layout db_common:main
2013-11-15 11:19:20,776 DEBUG inflater.precache(): Precaching layout mysql:config
2013-11-15 11:19:20,777 DEBUG inflater.precache(): Precaching layout fm:main
2013-11-15 11:19:20,784 DEBUG inflater.precache(): Precaching layout fm:config
2013-11-15 11:19:20,785 DEBUG inflater.precache(): Precaching layout taskmgr:main
2013-11-15 11:19:20,788 DEBUG inflater.precache(): Precaching layout terminal:main
2013-11-15 11:19:20,789 DEBUG inflater.precache(): Precaching layout terminal:config
2013-11-15 11:19:20,789 DEBUG inflater.precache(): Precaching layout scripts:widget
2013-11-15 11:19:20,790 DEBUG inflater.precache(): Precaching layout fstab:iio-widget
2013-11-15 11:19:20,791 DEBUG inflater.precache(): Precaching layout fstab:free-widget
2013-11-15 11:19:20,792 DEBUG inflater.precache(): Precaching layout fstab:widget
2013-11-15 11:19:20,793 DEBUG inflater.precache(): Precaching layout fstab:main
2013-11-15 11:19:20,798 DEBUG inflater.precache(): Precaching layout notepad:main
2013-11-15 11:19:20,800 DEBUG inflater.precache(): Precaching layout notepad:listitem
2013-11-15 11:19:20,801 DEBUG inflater.precache(): Precaching layout network:bit-linux-basic
2013-11-15 11:19:20,801 DEBUG inflater.precache(): Precaching layout network:widget
2013-11-15 11:19:20,802 DEBUG inflater.precache(): Precaching layout network:main
2013-11-15 11:19:20,805 DEBUG inflater.precache(): Precaching layout network:bit-linux-ifupdown
2013-11-15 11:19:20,805 DEBUG inflater.precache(): Precaching layout network:bit-linux-ipv4
2013-11-15 11:19:20,806 DEBUG inflater.precache(): Precaching layout network:bit-linux-dhcp
2013-11-15 11:19:20,808 DEBUG inflater.precache(): Precaching layout logs:main
2013-11-15 11:19:20,809 DEBUG inflater.precache(): Precaching layout plugins:main
2013-11-15 11:19:20,820 DEBUG inflater.precache(): Precaching layout cron:main
2013-11-15 11:19:20,826 DEBUG inflater.precache(): Precaching layout tasks:params-execute
2013-11-15 11:19:20,826 DEBUG inflater.precache(): Precaching layout tasks:params-copydir
2013-11-15 11:19:20,828 DEBUG inflater.precache(): Precaching layout tasks:main
2013-11-15 11:19:20,840 DEBUG inflater.precache(): Precaching layout tasks:params-rsync
2013-11-15 11:19:20,841 DEBUG inflater.precache(): Precaching layout ajenti_org:main
2013-11-15 11:19:20,843 DEBUG inflater.precache(): Precaching layout ajenti_org:config
2013-11-15 11:19:20,843 DEBUG inflater.precache(): Precaching layout power:widget
2013-11-15 11:19:20,844 DEBUG inflater.precache(): Precaching layout users:user-list
2013-11-15 11:19:20,847 DEBUG inflater.precache(): Precaching layout users:main
2013-11-15 11:19:20,853 DEBUG inflater.precache(): Precaching layout configurator:ldap-sync-config
2013-11-15 11:19:20,854 DEBUG inflater.precache(): Precaching layout configurator:main
2013-11-15 11:19:20,861 DEBUG inflater.precache(): Precaching layout hosts:main
2013-11-15 11:19:20,863 DEBUG inflater.precache(): Precaching layout resolv:main
2013-11-15 11:19:20,865 DEBUG inflater.precache(): Precaching layout iptables:option-address
2013-11-15 11:19:20,866 DEBUG inflater.precache(): Precaching layout iptables:option-ports
2013-11-15 11:19:20,866 DEBUG inflater.precache(): Precaching layout iptables:option-reject-with
2013-11-15 11:19:20,867 DEBUG inflater.precache(): Precaching layout iptables:option-port
2013-11-15 11:19:20,867 DEBUG inflater.precache(): Precaching layout iptables:option-interface
2013-11-15 11:19:20,867 DEBUG inflater.precache(): Precaching layout iptables:main
2013-11-15 11:19:20,871 DEBUG inflater.precache(): Precaching layout iptables:option-state
2013-11-15 11:19:20,872 DEBUG inflater.precache(): Precaching layout iptables:option-protocol
2013-11-15 11:19:20,872 DEBUG inflater.precache(): Precaching layout iptables:option
2013-11-15 11:19:20,873 DEBUG inflater.precache(): Precaching layout iptables:option-custom
2013-11-15 11:19:20,874 DEBUG inflater.precache(): Precaching layout iptables:option-match
2013-11-15 11:19:20,874 DEBUG inflater.precache(): Precaching layout webserver_common:main
2013-11-15 11:19:20,876 DEBUG inflater.precache(): Precaching layout packages:headers
2013-11-15 11:19:20,877 DEBUG inflater.precache(): Precaching layout packages:row
2013-11-15 11:19:20,878 DEBUG inflater.precache(): Precaching layout packages:main
2013-11-15 11:19:20,881 DEBUG inflater.precache(): Precaching layout packages:installer
2013-11-15 11:19:20,881 DEBUG inflater.precache(): Precaching layout sensors:value-widget
2013-11-15 11:19:20,882 DEBUG inflater.precache(): Precaching layout sensors:cpu-line
2013-11-15 11:19:20,883 DEBUG inflater.precache(): Precaching layout sensors:progressbar-widget
2013-11-15 11:19:20,884 DEBUG inflater.precache(): Precaching layout sensors:cpu-widget
2013-11-15 11:19:20,885 DEBUG feedback.send(): Feedback >> ping ({'edition': 'vanilla', 'version': '1.2.6.2', 'os': 'debian', 'id': 12701})
2013-11-15 11:19:20,886 INFO connectionpool._new_conn(): Starting new HTTP connection (1): meta.ajenti.org
2013-11-15 11:19:22,005 DEBUG connectionpool._make_request(): "POST /api/v2/ping HTTP/1.1" 200 36
2013-11-15 11:19:22,006 DEBUG feedback.send(): Feedback << {"status": "ok"}
2013-11-15 11:19:34,792 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:35,039 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:35,299 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:37,510 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:37,517 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:37,581 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:40,248 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:40,412 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:40,566 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:40,807 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:42,875 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:42,898 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:42,905 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'
2013-11-15 11:19:42,968 ERROR cookies._report_invalid_cookie(): invalid Cookie: ' ZDEDebuggerPresent=php,phtml,php3'

Revision history for this message
Eugene Pankov (john-pankov) wrote :

Please attach output of 'dpkg -l'

Changed in ajenti:
status: New → Incomplete
assignee: nobody → Eugene Pankov (john-pankov)
Revision history for this message
Lê Hoàng Phương (herophuong93) wrote :

`dpkg -l` attached
Actually, after a system restart, this crash goes away.

Revision history for this message
Eugene Pankov (john-pankov) wrote :

Was 'dpkg -l' output captured before or after the restart?

Revision history for this message
Lê Hoàng Phương (herophuong93) wrote :

After the restart, apparently.

Revision history for this message
Eugene Pankov (john-pankov) wrote :

Unfortunately I'll have to mark this as won't-fix since there's no data to work with :(

Changed in ajenti:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.