AttributeError:'配置'对象没有属性' http_backend'什么时候开始shinken-arbiter?

时间:2013-11-27 07:53:50

标签: python python-2.7 virtualenv pip nagios

Shinken通过pip安装virtualenv

sudo /opt/shinken/bin/pip install -e git+https://github.com/naparuba/shinken.git#egg=shinken

一切顺利,直到最后一步:

sudo /opt/shinken/bin/shinken-arbiter -d -c /opt/shinken/etc/nagios.cfg -c /opt/shinken/etc/shinken-specific.cfg

[1385534688] Critical : I got an unrecoverable error. I have to exit
[1385534688] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
[1385534688] Critical : Exception trace follows: Traceback (most recent call last):
  File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 563, in main
    self.load_config_file()
  File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 467, in load_config_file
    self.http_backend = self.conf.http_backend
AttributeError: 'Config' object has no attribute 'http_backend'

Traceback (most recent call last):
  File "/opt/shinken/bin/shinken-arbiter", line 8, in <module>
    execfile(__file__)
  File "/opt/shinken/src/shinken/bin/shinken-arbiter", line 118, in <module>
    daemon.main()
  File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 563, in main
    self.load_config_file()
  File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 467, in load_config_file
    self.http_backend = self.conf.http_backend
AttributeError: 'Config' object has no attribute 'http_backend'

arbiterdaemon.pyhttps://github.com/naparuba/shinken/blob/master/shinken/daemons/arbiterdaemon.py

  • Python 2.7.6
  • 来自/opt/shinken/lib/python2.7/site-packages(python 2.7)的
  • pip 1.4.1
  • shinken-arbiter:1.4

1 个答案:

答案 0 :(得分:0)

似乎主分支中缺少http_backend属性。我试图重新安装分支1.4,现在它正常工作:

sudo /opt/shinken/bin/pip install -e git+https://github.com/naparuba/shinken.git@branch-1.4#egg=shinken