+2
Fixed

Munin Widget crashed

Jochen fa 6 anys updated by Eugene Pankov (Project coordinator) fa 6 anys 4
Hello,

I have Munin now successfully installed and integrated into Ajenti. But if I want to add a statistic as a widget, I get on the dashboard always an empty widget with the error message

"widget crashed: 'NoneType' object has no attribute 'buttons'".

Is this a bug or have I done something wrong?

greeting
Jochen

Answer

Can you reproduce this and is there a solution soon?
Problem occurs even after complete reinstallation of the server. So definitely seems to be a bug.

greeting
Jochen
Under review
Could you please run ajenti in foregrond (service ajenti stop; ajenti-panel -v) and reproduce the issue? This should output a traceback in the console.
Here is the output in the console:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/dash.py", line 128, in refresh
    config=widget['config'],
  File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 91, in new
    return context.instantiate(cls, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/__init__.py", line 202, in instantiate
    init(instance)
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/api.py", line 37, in init
    {'text': _('Cancel'), 'id': 'cancel'},
AttributeError: 'NoneType' object has no attribute 'buttons'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/dash.py", line 128, in refresh
    config=widget['config'],
  File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 91, in new
    return context.instantiate(cls, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/__init__.py", line 202, in instantiate
    init(instance)
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/dashboard/api.py", line 37, in init
    {'text': _('Cancel'), 'id': 'cancel'},
AttributeError: 'NoneType' object has no attribute 'buttons'
23.09.2014 06:05 main.py:244                   DEBUG [root] {'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_conntrack-year.png': 0.002151012420654297, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_forwarded_local-day.png': 0.0021538734436035156, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/irqstats-day.png': 0.0030519962310791016, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/vmstat-year.png': 0.005326986312866211, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/load-week.png': 0.0022649765014648438, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_iops-month.png': 0.0020749568939208984, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/vmstat-week.png': 0.0034668445587158203, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df_inode-month.png': 0.002456188201904297, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df_inode-week.png': 0.0021820068359375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_throughput-year.png': 0.0028591156005859375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_inodes-year.png': 0.005690097808837891, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_latency-day.png': 0.002148866653442383, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/memory-week.png': 0.0021691322326660156, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/threads-year.png': 0.006167888641357422, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df-week.png': 0.0018589496612548828, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_forwarded_local-week.png': 0.010600090026855469, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/entropy-day.png': 0.001947164535522461, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/interrupts-month.png': 0.0021941661834716797, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_conntrack-week.png': 0.0024461746215820312, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/entropy-week.png': 0.002447843551635742, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_iops-day.png': 0.002857208251953125, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/cpu-year.png': 0.0023908615112304688, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_packets-day.png': 0.0020821094512939453, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_throughput-week.png': 0.0026810169219970703, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/irqstats-month.png': 0.002206087112426758, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/munin_stats-day.png': 0.0016782283782958984, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/processes-month.png': 0.0021898746490478516, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailstats-year.png': 0.0021638870239257812, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/swap-month.png': 0.002232074737548828, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/uptime-year.png': 0.0021359920501708984, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_iops-week.png': 0.0015919208526611328, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/interrupts-day.png': 0.0017151832580566406, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/uptime-month.png': 0.004154205322265625, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df-year.png': 0.0021209716796875, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_iops-year.png': 0.002109050750732422, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_utilization-month.png': 0.0020780563354492188, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/entropy-year.png': 0.0021970272064208984, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/interrupts-week.png': 0.0020520687103271484, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_conntrack-day.png': 0.002337932586669922, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fail2ban-month.png': 0.008870124816894531, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_utilization-day.png': 0.0015540122985839844, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_utilization-year.png': 0.0020952224731445312, 'Handling updates': 0.0012900829315185547, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailqueue-week.png': 0.0028541088104248047, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/cpu-month.png': 0.0022928714752197266, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df_inode-year.png': 0.002118825912475586, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fail2ban-year.png': 0.001847982406616211, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_err_eth0-week.png': 0.001814126968383789, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/forks-day.png': 0.0024521350860595703, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/load-day.png': 0.0022780895233154297, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_forwarded_local-year.png': 0.0021729469299316406, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/vmstat-day.png': 0.006188869476318359, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/threads-day.png': 0.004575967788696289, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/processes-year.png': 0.00226593017578125, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/vmstat-month.png': 0.003592967987060547, 'Rendering': 0.001931905746459961, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_packets-month.png': 0.002695798873901367, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_inodes-day.png': 0.0021011829376220703, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/memory-year.png': 0.0022089481353759766, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/forks-month.png': 0.004786014556884766, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/processes-week.png': 0.0032281875610351562, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/processes-day.png': 0.00525212287902832, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_files-year.png': 0.0022640228271484375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/munin_stats-week.png': 0.003393888473510742, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_inodes-month.png': 0.0020987987518310547, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df_inode-day.png': 0.008160114288330078, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/swap-week.png': 0.0023970603942871094, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/irqstats-week.png': 0.002199888229370117, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_eth0-year.png': 0.0021009445190429688, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_files-week.png': 0.002307891845703125, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailqueue-day.png': 0.00156402587890625, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_forwarded_local-month.png': 0.0020987987518310547, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df-day.png': 0.0049440860748291016, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/swap-day.png': 0.0020961761474609375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_eth0-month.png': 0.002131938934326172, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/cpu-day.png': 0.002767801284790039, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/forks-week.png': 0.00374603271484375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_packets-week.png': 0.0019609928131103516, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/proc_pri-year.png': 0.007595062255859375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/threads-month.png': 0.0030851364135742188, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailstats-month.png': 0.0019140243530273438, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/users-year.png': 0.00432896614074707, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/memory-day.png': 0.002087116241455078, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/proc_pri-week.png': 0.0020971298217773438, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/load-month.png': 0.0015859603881835938, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_latency-week.png': 0.0022640228271484375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/irqstats-year.png': 0.001744985580444336, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_err_eth0-year.png': 0.0022330284118652344, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/threads-week.png': 0.0027768611907958984, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_latency-month.png': 0.0028009414672851562, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_inodes-week.png': 0.0020821094512939453, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/proc_pri-month.png': 0.0019309520721435547, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_err_eth0-month.png': 0.003343820571899414, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_packets-year.png': 0.002129077911376953, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/proc_pri-day.png': 0.002223968505859375, 'Handling event': 0.15500092506408691, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_utilization-week.png': 0.0021038055419921875, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/uptime-week.png': 0.002123117446899414, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/load-year.png': 0.002875089645385742, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/interrupts-year.png': 0.0021028518676757812, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/users-month.png': 0.002115011215209961, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_throughput-day.png': 0.0022361278533935547, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/df-month.png': 0.002315044403076172, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/munin_stats-month.png': 0.0021440982818603516, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/memory-month.png': 0.0032548904418945312, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_err_eth0-day.png': 0.007401943206787109, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/entropy-month.png': 0.0022628307342529297, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailqueue-month.png': 0.002073049545288086, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/users-day.png': 0.0025479793548583984, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/uptime-day.png': 0.0017540454864501953, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/users-week.png': 0.0022699832916259766, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/munin_stats-year.png': 0.00658106803894043, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/cpu-week.png': 0.002293109893798828, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_eth0-week.png': 0.0020210742950439453, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailqueue-year.png': 0.0020151138305664062, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_latency-year.png': 0.004205942153930664, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailstats-week.png': 0.002115964889526367, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fail2ban-day.png': 0.009382963180541992, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/swap-year.png': 0.0072879791259765625, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fail2ban-week.png': 0.01247406005859375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/forks-year.png': 0.0021500587463378906, 'Total': 0.1590890884399414, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/fw_conntrack-month.png': 0.003392934799194336, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_files-day.png': 0.0023140907287597656, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/diskstats_throughput-month.png': 0.004877805709838867, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/exim_mailstats-day.png': 0.0020711421966552734, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/open_files-month.png': 0.0023040771484375, 'HTTP /ajenti:munin-proxy//hoster.net/myserver.hoster.net/if_eth0-day.png': 0.0017750263214111328}