Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

ошибка при добовление виджета IPMI Sensor #3

Closed Lordbl4 closed 10 years ago

Lordbl4 commented 10 years ago

при добавлении виджета IPMI Sensor возникает вот такой баг (так же при попытке добавить виджет сенсоров lm-sensors - Ajenti полностью зависает, на экране крутятся шестерёнки и всё, при попытке нажать кнопку "домой" в верхнем меню - белый экран, переустановка не помогает, лечил удалением lm-sensors, и это в Ajenti V, пораньше тестировал на 1.0 - сенсоры работали)

Ajenti 1.2.2 bug report

Detected platform: debian / ubuntu / Ubuntu 12.04.3 LTS

Architecture: x86_64 x86_64

Python: 2.7.3 Installation: 78198877 Debug: False Locale: (None, None) Loaded plugins: main dashboard smartctl resolv configurator services db_common network iptables fstab ajenti_org raid munin codemirror notepad plugins cron tasks mysql terminal hosts webserver_common fm scripts power resources taskmgr packages sensors apache users supervisor logs nginx ipmi vh vh-php-fpm vh-nginx vh-mysql vh-vsftpd

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 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 313, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 309, in dispatch_event self.event(event, params) File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 330, in event self.events[event](*self.event_args[event], %28params or {}%29) File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/dash.py", line 56, in on_add_widget_click self.add_widget(cls, config) File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/dash.py", line 67, in add_widget self.refresh() File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/dash.py", line 85, in refresh config=widget['config'], File "/usr/lib/pymodules/python2.7/ajenti/api/init*.py", line 88, in new return context.instantiate(cls, _args, _kwargs) File "/usr/lib/pymodules/python2.7/ajenti/plugins/init.py", line 177, in instantiate init(instance) File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/api.py", line 35, in init self.on_config_start() File "/usr/lib/pymodules/python2.7/ajenti/plugins/ipmi/widget.py", line 27, in on_config_start lst = self.sensor.get_variants() File "/usr/lib/pymodules/python2.7/ajenti/plugins/ipmi/sensor.py", line 23, in get_variants return sorted(self._get_data().keys()) File "/usr/lib/pymodules/python2.7/ajenti/util.py", line 76, in wrapper val = fx(_args, *_kwargs) File "/usr/lib/pymodules/python2.7/ajenti/plugins/ipmi/sensor.py", line 16, in _get_data for l in subprocess.check_output(['ipmitool', 'sensor']).splitlines(): File "/usr/lib/python2.7/subprocess.py", line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['ipmitool', 'sensor']' returned non-zero exit status 1

Failed to upload traceback

Log content: 2013-11-04 04:32:37,176 INFO ajenti-panel.(): Using config file /etc/ajenti/config.json 2013-11-04 04:32:37,247 INFO registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'> 2013-11-04 04:32:37,273 INFO core.run(): Ajenti 1.2.2 running on platform: debian 2013-11-04 04:32:37,274 DEBUG init.load(): Loading plugin smartctl 2013-11-04 04:32:37,274 DEBUG init.load_recursive(): Preloading plugin dependency: dashboard 2013-11-04 04:32:37,274 DEBUG init.load(): Loading plugin dashboard 2013-11-04 04:32:37,274 DEBUG init.load_recursive(): Preloading plugin dependency: main 2013-11-04 04:32:37,274 DEBUG init.load(): Loading plugin main 2013-11-04 04:32:37,278 DEBUG init.load(): Loading plugin dashboard 2013-11-04 04:32:37,279 DEBUG init.load(): Loading plugin smartctl 2013-11-04 04:32:37,281 DEBUG init.load(): Loading plugin resolv 2013-11-04 04:32:37,282 DEBUG init.load(): Loading plugin configurator 2013-11-04 04:32:37,282 DEBUG init.load(): Loading plugin db_common 2013-11-04 04:32:37,282 DEBUG init.load_recursive(): Preloading plugin dependency: services 2013-11-04 04:32:37,283 DEBUG init.load(): Loading plugin services 2013-11-04 04:32:37,287 DEBUG init.load(): Loading plugin db_common 2013-11-04 04:32:37,287 DEBUG init.load(): Loading plugin network 2013-11-04 04:32:37,301 DEBUG init.load(): Loading plugin nsd 2013-11-04 04:32:37,304 WARNING init.load(): * [nsd] skipping due to BinaryDependency (nsd) 2013-11-04 04:32:37,304 DEBUG init.load(): Loading plugin iptables 2013-11-04 04:32:37,304 DEBUG init.load(): Loading plugin fstab 2013-11-04 04:32:37,305 DEBUG init.load(): Loading plugin ajenti_org 2013-11-04 04:32:37,306 DEBUG init.load(): Loading plugin lm_sensors 2013-11-04 04:32:37,308 WARNING init.load(): * [lm_sensors] skipping due to BinaryDependency (sensors) 2013-11-04 04:32:37,308 DEBUG init.load(): Loading plugin psql 2013-11-04 04:32:37,310 WARNING init.load(): * [psql] skipping due to BinaryDependency (psql) 2013-11-04 04:32:37,311 DEBUG init.load(): Loading plugin raid 2013-11-04 04:32:37,313 DEBUG init.load(): Loading plugin munin 2013-11-04 04:32:37,323 DEBUG init.load(): Loading plugin dhcpd 2013-11-04 04:32:37,325 WARNING init.load(): * [dhcpd] skipping due to BinaryDependency (dhcpd) 2013-11-04 04:32:37,325 DEBUG init.load(): Loading plugin notepad 2013-11-04 04:32:37,325 DEBUG init.load_recursive(): Preloading plugin dependency: codemirror 2013-11-04 04:32:37,325 DEBUG init.load(): Loading plugin codemirror 2013-11-04 04:32:37,326 DEBUG init.load(): Loading plugin notepad 2013-11-04 04:32:37,326 DEBUG init.load(): Loading plugin plugins 2013-11-04 04:32:37,326 DEBUG init.load(): Loading plugin elements 2013-11-04 04:32:37,326 WARNING init.load(): * [elements] Plugin error: format error 2013-11-04 04:32:37,326 DEBUG init.load(): Loading plugin tasks 2013-11-04 04:32:37,327 DEBUG init.load_recursive(): Preloading plugin dependency: cron 2013-11-04 04:32:37,327 DEBUG init.load(): Loading plugin cron 2013-11-04 04:32:37,329 DEBUG init.load(): Loading plugin tasks 2013-11-04 04:32:37,330 DEBUG init.load(): Loading plugin memcache 2013-11-04 04:32:37,332 WARNING init.load(): * [memcache] skipping due to BinaryDependency (memcached) 2013-11-04 04:32:37,332 DEBUG init.load(): Loading plugin mysql 2013-11-04 04:32:37,337 DEBUG init.load(): Loading plugin apcups 2013-11-04 04:32:37,340 WARNING init.load(): * [apcups] skipping due to BinaryDependency (apcaccess) 2013-11-04 04:32:37,340 DEBUG init.load(): Loading plugin terminal 2013-11-04 04:32:37,352 DEBUG init.load(): Loading plugin hosts 2013-11-04 04:32:37,352 DEBUG init.load(): Loading plugin webserver_common 2013-11-04 04:32:37,353 DEBUG init.load(): Loading plugin hddtemp 2013-11-04 04:32:37,356 WARNING init.load(): * [hddtemp] skipping due to BinaryDependency (hddtemp) 2013-11-04 04:32:37,357 DEBUG init.load(): Loading plugin fm 2013-11-04 04:32:37,358 DEBUG init.load(): Loading plugin scripts 2013-11-04 04:32:37,359 DEBUG init.load(): Loading plugin power 2013-11-04 04:32:37,359 DEBUG init.load(): Loading plugin resources 2013-11-04 04:32:37,360 DEBUG init.load(): Loading plugin taskmgr 2013-11-04 04:32:37,361 DEBUG init.load(): Loading plugin packages 2013-11-04 04:32:37,362 DEBUG init.load(): Loading plugin exports 2013-11-04 04:32:37,364 WARNING init.load(): * [exports] skipping due to BinaryDependency (nfsstat) 2013-11-04 04:32:37,365 DEBUG init.load(): Loading plugin sensors 2013-11-04 04:32:37,366 DEBUG init.load(): Loading plugin apache 2013-11-04 04:32:37,368 DEBUG init.load(): Loading plugin users 2013-11-04 04:32:37,368 DEBUG init.load(): Loading plugin supervisor 2013-11-04 04:32:37,371 DEBUG init.load(): Loading plugin logs 2013-11-04 04:32:37,372 DEBUG init.load(): Loading plugin ctdb 2013-11-04 04:32:37,374 WARNING init.load(): * [ctdb] skipping due to BinaryDependency (ctdb) 2013-11-04 04:32:37,374 DEBUG init.load(): Loading plugin ltfs 2013-11-04 04:32:37,375 WARNING init.load(): * [ltfs] Plugin error: format error 2013-11-04 04:32:37,375 DEBUG init.load(): Loading plugin samba 2013-11-04 04:32:37,378 WARNING init.load(): * [samba] skipping due to BinaryDependency (smbd) 2013-11-04 04:32:37,378 DEBUG init.load(): Loading plugin nginx 2013-11-04 04:32:37,382 DEBUG init.load(): Loading plugin bind9 2013-11-04 04:32:37,385 WARNING init.load(): * [bind9] skipping due to BinaryDependency (named) 2013-11-04 04:32:37,385 DEBUG init.load(): Loading plugin megaraid 2013-11-04 04:32:37,385 WARNING init.load(): * [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli) 2013-11-04 04:32:37,386 DEBUG init.load(): Loading plugin squid 2013-11-04 04:32:37,389 WARNING init.load(): * [squid] skipping due to BinaryDependency (squid3) 2013-11-04 04:32:37,389 DEBUG init.load(): Loading plugin openvpn 2013-11-04 04:32:37,392 WARNING init.load(): * [openvpn] skipping due to BinaryDependency (openvpn) 2013-11-04 04:32:37,392 DEBUG init.load(): Loading plugin netatalk 2013-11-04 04:32:37,396 WARNING init.load(): * [netatalk] skipping due to BinaryDependency (afpd) 2013-11-04 04:32:37,396 DEBUG init.load(): Loading plugin ipmi 2013-11-04 04:32:37,426 DEBUG init.load(): Loading plugin vh-php-fpm 2013-11-04 04:32:37,426 DEBUG init.load_recursive(): Preloading plugin dependency: vh 2013-11-04 04:32:37,427 DEBUG init.load(): Loading plugin vh 2013-11-04 04:32:37,436 DEBUG init.load(): Loading plugin vh-php-fpm 2013-11-04 04:32:37,438 DEBUG init.load(): Loading plugin vh-nginx 2013-11-04 04:32:37,441 DEBUG init.load(): Loading plugin vh-mysql 2013-11-04 04:32:37,445 DEBUG init**.load(): Loading plugin vh-vsftpd 2013-11-04 04:32:37,456 INFO core.start(): Starting SSL tunnel for port 37855 2013-11-04 04:32:37,963 INFO core.run(): SSL tunnel running fine 2013-11-04 04:32:37,963 INFO core.run(): Starting server on (u'127.0.0.1', 37855) 2013-11-04 04:32:38,026 DEBUG inflater.precache(): Precaching layout dashboard:dash 2013-11-04 04:32:38,028 DEBUG inflater.precache(): Precaching layout dashboard:welcome 2013-11-04 04:32:38,028 DEBUG inflater.precache(): Precaching layout dashboard:text 2013-11-04 04:32:38,028 DEBUG inflater.precache(): Precaching layout smartctl:widget 2013-11-04 04:32:38,029 DEBUG inflater.precache(): Precaching layout resolv:main 2013-11-04 04:32:38,031 DEBUG inflater.precache(): Precaching layout configurator:ldap-sync-config 2013-11-04 04:32:38,031 DEBUG inflater.precache(): Precaching layout configurator:main 2013-11-04 04:32:38,037 DEBUG inflater.precache(): Precaching layout services:main 2013-11-04 04:32:38,038 DEBUG inflater.precache(): Precaching layout services:bar 2013-11-04 04:32:38,038 DEBUG inflater.precache(): Precaching layout services:widget 2013-11-04 04:32:38,039 DEBUG inflater.precache(): Precaching layout db_common:main 2013-11-04 04:32:38,042 DEBUG inflater.precache(): Precaching layout network:bit-linux-basic 2013-11-04 04:32:38,043 DEBUG inflater.precache(): Precaching layout network:main 2013-11-04 04:32:38,046 DEBUG inflater.precache(): Precaching layout network:widget 2013-11-04 04:32:38,046 DEBUG inflater.precache(): Precaching layout network:bit-linux-ipv4 2013-11-04 04:32:38,047 DEBUG inflater.precache(): Precaching layout network:bit-linux-ifupdown 2013-11-04 04:32:38,048 DEBUG inflater.precache(): Precaching layout network:bit-linux-dhcp 2013-11-04 04:32:38,049 DEBUG inflater.precache(): Precaching layout iptables:option-match 2013-11-04 04:32:38,049 DEBUG inflater.precache(): Precaching layout iptables:option-custom 2013-11-04 04:32:38,050 DEBUG inflater.precache(): Precaching layout iptables:option-state 2013-11-04 04:32:38,050 DEBUG inflater.precache(): Precaching layout iptables:main 2013-11-04 04:32:38,053 DEBUG inflater.precache(): Precaching layout iptables:option-address 2013-11-04 04:32:38,054 DEBUG inflater.precache(): Precaching layout iptables:option-interface 2013-11-04 04:32:38,054 DEBUG inflater.precache(): Precaching layout iptables:option-protocol 2013-11-04 04:32:38,055 DEBUG inflater.precache(): Precaching layout iptables:option-ports 2013-11-04 04:32:38,055 DEBUG inflater.precache(): Precaching layout iptables:option 2013-11-04 04:32:38,056 DEBUG inflater.precache(): Precaching layout iptables:option-reject-with 2013-11-04 04:32:38,056 DEBUG inflater.precache(): Precaching layout iptables:option-port 2013-11-04 04:32:38,056 DEBUG inflater.precache(): Precaching layout fstab:iio-widget 2013-11-04 04:32:38,057 DEBUG inflater.precache(): Precaching layout fstab:main 2013-11-04 04:32:38,061 DEBUG inflater.precache(): Precaching layout fstab:widget 2013-11-04 04:32:38,061 DEBUG inflater.precache(): Precaching layout fstab:free-widget 2013-11-04 04:32:38,062 DEBUG inflater.precache(): Precaching layout ajenti_org:config 2013-11-04 04:32:38,063 DEBUG inflater.precache(): Precaching layout ajenti_org:main 2013-11-04 04:32:38,063 DEBUG inflater.precache(): Precaching layout raid:main 2013-11-04 04:32:38,066 DEBUG inflater.precache(): Precaching layout munin:main 2013-11-04 04:32:38,067 DEBUG inflater.precache(): Precaching layout munin:widget 2013-11-04 04:32:38,068 DEBUG inflater.precache(): Precaching layout notepad:main 2013-11-04 04:32:38,069 DEBUG inflater.precache(): Precaching layout notepad:listitem 2013-11-04 04:32:38,069 DEBUG inflater.precache(): Precaching layout plugins:main 2013-11-04 04:32:38,078 DEBUG inflater.precache(): Precaching layout cron:main 2013-11-04 04:32:38,084 DEBUG inflater.precache(): Precaching layout tasks:params-rsync 2013-11-04 04:32:38,085 DEBUG inflater.precache(): Precaching layout tasks:params-execute 2013-11-04 04:32:38,086 DEBUG inflater.precache(): Precaching layout tasks:params-copydir 2013-11-04 04:32:38,086 DEBUG inflater.precache(): Precaching layout tasks:main 2013-11-04 04:32:38,095 DEBUG inflater.precache(): Precaching layout mysql:config 2013-11-04 04:32:38,095 DEBUG inflater.precache(): Precaching layout terminal:config 2013-11-04 04:32:38,095 DEBUG inflater.precache(): Precaching layout terminal:main 2013-11-04 04:32:38,096 DEBUG inflater.precache(): Precaching layout hosts:main 2013-11-04 04:32:38,098 DEBUG inflater.precache(): Precaching layout webserver_common:main 2013-11-04 04:32:38,100 DEBUG inflater.precache(): Precaching layout fm:config 2013-11-04 04:32:38,100 DEBUG inflater.precache(): Precaching layout fm:main 2013-11-04 04:32:38,106 DEBUG inflater.precache(): Precaching layout scripts:widget 2013-11-04 04:32:38,107 DEBUG inflater.precache(): Precaching layout power:widget 2013-11-04 04:32:38,108 DEBUG inflater.precache(): Precaching layout taskmgr:main 2013-11-04 04:32:38,111 DEBUG inflater.precache(): Precaching layout packages:main 2013-11-04 04:32:38,115 DEBUG inflater.precache(): Precaching layout packages:headers 2013-11-04 04:32:38,115 DEBUG inflater.precache(): Precaching layout packages:installer 2013-11-04 04:32:38,115 DEBUG inflater.precache(): Precaching layout packages:row 2013-11-04 04:32:38,115 DEBUG inflater.precache(): Precaching layout sensors:progressbar-widget 2013-11-04 04:32:38,116 DEBUG inflater.precache(): Precaching layout sensors:cpu-line 2013-11-04 04:32:38,116 DEBUG inflater.precache(): Precaching layout sensors:value-widget 2013-11-04 04:32:38,117 DEBUG inflater.precache(): Precaching layout sensors:cpu-widget 2013-11-04 04:32:38,118 DEBUG inflater.precache(): Precaching layout users:user-list 2013-11-04 04:32:38,119 DEBUG inflater.precache(): Precaching layout users:main 2013-11-04 04:32:38,123 DEBUG inflater.precache(): Precaching layout supervisor:main 2013-11-04 04:32:38,230 DEBUG inflater.precache(): Precaching layout logs:main 2013-11-04 04:32:38,254 DEBUG inflater.precache(): Precaching layout ipmi:widget 2013-11-04 04:32:38,299 DEBUG inflater.precache(): Precaching layout vh:main-website 2013-11-04 04:32:38,307 DEBUG inflater.precache(): Precaching layout vh:main 2013-11-04 04:32:38,311 DEBUG inflater.precache(): Precaching layout vh:not-configured 2013-11-04 04:32:38,311 DEBUG inflater.precache(): Precaching layout vh:main-website-location 2013-11-04 04:32:38,312 DEBUG inflater.precache(): Precaching layout vh-mysql:ext 2013-11-04 04:32:38,313 DEBUG inflater.precache(): Precaching layout vh-vsftpd:ext 2013-11-04 04:32:38,314 DEBUG feedback.worker(): Registering installation 2013-11-04 04:32:38,314 DEBUG feedback.send(): Feedback >> register ({'edition': 'vanilla+vh', 'version': '1.2.2', 'os': 'debian'}) 2013-11-04 04:32:38,315 INFO connectionpool._new_conn(): Starting new HTTP connection (1): meta.ajenti.org

Eugeny commented 10 years ago

А если из консоли sudo ipmitool sensor запустить, что происходит?

Lordbl4 commented 10 years ago

Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory Get Device ID command failed Unable to open SDR for reading

Eugeny commented 10 years ago

Ну вот собственно и проблема :)

Eugeny commented 10 years ago

В 1.2.4 уже отображается нормальное сообщение об ошибке IPMI