0
Not a bug

Crashed : name 'rootcontext' is not defined

Seungwoo Hong 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 3
Image 49
Hi there
We are testing on.
Thanks.

Answer

Answer
Not a bug
Update all your ajenti and ajenti-v* packages.
Answer
Not a bug
Update all your ajenti and ajenti-v* packages.
thanks for reply
but "name 'rootcontext' is not defined" message show.

Env : Python 2.7

----- console -----

# yum update ajenti-v*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.cdnetworks.com
* epel: mirror.premi.st
* extras: centos.mirror.cdnetworks.com
* updates: mirror.premi.st
Setting up Update Process
No Packages marked for Update
[root]# yum update ajenti
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.cdnetworks.com
* epel: mirror.premi.st
* extras: centos.mirror.cdnetworks.com
* updates: mirror.premi.st
Setting up Update Process
No Packages marked for Update
[root]# ajenti-panel
08.04.2014 15:43 INFO Using config file /etc/ajenti/config.json
08.04.2014 15:43 INFO Ajenti starting in foreground
08.04.2014 15:43 INFO Ajenti 1.2.18.6 running on platform: centos
08.04.2014 15:43 WARN *** [dhcpd] skipping due to BinaryDependency (dhcpd)
08.04.2014 15:43 WARN *** [openvpn] skipping due to BinaryDependency (openvpn)
08.04.2014 15:43 WARN *** [cron] skipping due to BinaryDependency (crontab)
08.04.2014 15:43 WARN *** [apache] skipping due to BinaryDependency (httpd)
08.04.2014 15:43 WARN *** [raid] skipping due to BinaryDependency (mdadm)
08.04.2014 15:43 WARN *** [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli)
08.04.2014 15:43 WARN *** [ctdb] skipping due to BinaryDependency (ctdb)
08.04.2014 15:43 WARN *** [samba] skipping due to BinaryDependency (smbd)
08.04.2014 15:43 WARN *** [squid] skipping due to BinaryDependency (squid3)
08.04.2014 15:43 WARN *** [nsd] skipping due to BinaryDependency (nsd)
08.04.2014 15:43 WARN *** [ipmi] skipping due to BinaryDependency (ipmitool)
08.04.2014 15:43 WARN *** [exports] skipping due to BinaryDependency (nfsstat)
08.04.2014 15:43 WARN *** [smartctl] skipping due to BinaryDependency (smartctl)
08.04.2014 15:43 WARN *** [lm_sensors] skipping due to BinaryDependency (sensors)
08.04.2014 15:43 WARN *** [netatalk] skipping due to BinaryDependency (afpd)
08.04.2014 15:43 WARN *** [apcups] skipping due to BinaryDependency (apcaccess)
08.04.2014 15:43 WARN *** [psql] skipping due to BinaryDependency (psql)
08.04.2014 15:43 WARN *** [hddtemp] skipping due to BinaryDependency (hddtemp)
08.04.2014 15:43 WARN *** [hdparm] skipping due to BinaryDependency (hdparm)
08.04.2014 15:43 WARN *** [munin] skipping due to BinaryDependency (munin-cron)
08.04.2014 15:43 WARN *** [vh] Plugin crashed: crashed: name 'rootcontext' is not defined
Traceback (most recent call last):
File "/usr/local/python2.7/lib/python2.7/site-packages/ajenti-1.2.18.6-py2.7.egg/ajenti/plugins/__init__.py", line 328, in load
info.init()
File "/var/lib/ajenti/plugins/vh/__init__.py", line 21, in init
import api
File "/var/lib/ajenti/plugins/vh/api.py", line 219, in <module>
@rootcontext
NameError: name 'rootcontext' is not defined

08.04.2014 15:43 WARN *** Plugin dependency unsatisfied: vh-nginx -> vh
08.04.2014 15:43 WARN *** Plugin dependency unsatisfied: vh-vsftpd -> vh
Run yum clean all and try to update again.