Closed rohit01 closed 9 years ago
The following shinken docker images are broken due to this issue:
Thruk interface connects to shinken via livestatus API. It was working fine before. After, I merged a pull request in docker_shinken repository, the image was created again. Livestatus API is not working in new images. I see, the module was updated in shinken.io just 3 days back.
Hi, the upstream livestatus is working with the upstream shinken. I think your are mixing bad version of Shinken and Livestatus.
@rohit01 any news ?
gonna close if no news soon ;)
I got the same issue,
2015-04-07 14:51:35,097 [1428411095] Warning : Printing stored debug messages prior to our daemonization
2015-04-07 14:52:12,157 [1428411132] Warning : [broker-master] Importing module livestatus: Attempted relative import in non-package
2015-04-07 14:52:12,250 [1428411132] Warning : [broker-master] The module /var/lib/shinken/modules/livestatus/module.py cannot be founded or load
2015-04-07 14:52:12,252 [1428411132] Warning : [broker-master] Importing module logstore-mongodb: Attempted relative import in non-package
2015-04-07 14:52:12,601 [1428411132] Warning : Importing module livestatus: Attempted relative import in non-package
2015-04-07 14:52:12,606 [1428411132] Warning : The module /var/lib/shinken/modules/livestatus/module.py cannot be founded or load
2015-04-07 14:52:12,606 [1428411132] Warning : Importing module logstore-mongodb: Attempted relative import in non-package
I use upstream master branch from livestatus and shinken.
@claneys :
strange because this issue is normally fixed in master versions of shinken+livestatus..
Can you give the output of ls -lt /var/lib/shinken/modules/livestatus/
? (or you can connect to freenode on #shinken and I'll try to help investigate)
Also : give output of python -c 'import shinken.bin ; print(shinken.bin.VERSION)'
?
For sure :
ls -lt /var/lib/shinken/modules/livestatus/
total 444
-rw-r--r-- 1 shinken shinken 1543 Apr 7 15:33 counter.py
-rw-r--r-- 1 shinken shinken 965 Apr 7 15:33 __init__.py
-rw-r--r-- 1 shinken shinken 10329 Apr 7 15:33 livestatus_client_thread.py
-rw-r--r-- 1 shinken shinken 2604 Apr 7 15:33 livestatus_command_query.py
-rw-r--r-- 1 shinken shinken 1200 Apr 7 15:33 livestatus_constraints.py
-rw-r--r-- 1 shinken shinken 3176 Apr 7 15:33 livestatus_counters.py
-rw-r--r-- 1 shinken shinken 5460 Apr 7 15:33 livestatus_obj.py
-rw-r--r-- 1 shinken shinken 6756 Apr 7 15:33 livestatus_query_cache.py
-rw-r--r-- 1 shinken shinken 296 Apr 7 15:33 livestatus_query_error.py
-rw-r--r-- 1 shinken shinken 25571 Apr 7 15:33 livestatus_query_metainfo.py
-rw-r--r-- 1 shinken shinken 41636 Apr 7 15:33 livestatus_query.py
-rw-r--r-- 1 shinken shinken 18849 Apr 7 15:33 livestatus_regenerator.py
-rw-r--r-- 1 shinken shinken 3711 Apr 7 15:33 livestatus_request.py
-rw-r--r-- 1 shinken shinken 13516 Apr 7 15:33 livestatus_response.py
-rw-r--r-- 1 shinken shinken 5214 Apr 7 15:33 livestatus_stack.py
-rw-r--r-- 1 shinken shinken 11573 Apr 7 15:33 livestatus_wait_query.py
-rw-r--r-- 1 shinken shinken 12063 Apr 7 15:33 log_line.py
-rw-r--r-- 1 shinken shinken 205846 Apr 7 15:33 mapping.py
-rw-r--r-- 1 shinken shinken 24327 Apr 7 15:33 module.py
-rw-r----- 1 shinken shinken 17518 Apr 7 14:40 module.pyc
And :
python -c 'import shinken ; print(shinken.bin.VERSION)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'bin'
Weird.
It appears that I'm using v2.0.3 of Shinken, i don't know why.
It appears that I'm using v2.0.3 of Shinken, i don't know why.
you could have had a bad update previously.. try its reinstall ..
Recently updated the docker image to use latest shinken.. Works perfect. Thanks.
Broker logs:
2015-02-20 22:32:07,197 [1424471527] Warning : [broker-master] Importing module livestatus: Attempted relative import in non-package 2015-02-20 22:32:07,198 [1424471527] Warning : [broker-master] The module /var/lib/shinken/modules/livestatus/module.py cannot be founded or load 2015-02-20 22:32:07,199 [1424471527] Warning : [broker-master] Importing module logstore-sqlite: Attempted relative import in non-package 2015-02-20 22:32:07,220 [1424471527] Warning : [broker-master] The module type livestatus for livestatus was not found in modules! 2015-02-20 22:32:07,588 [1424471527] Warning : Importing module livestatus: Attempted relative import in non-package 2015-02-20 22:32:07,590 [1424471527] Warning : The module /var/lib/shinken/modules/livestatus/module.py cannot be founded or load 2015-02-20 22:32:07,590 [1424471527] Warning : Importing module logstore-sqlite: Attempted relative import in non-package 2015-02-20 22:32:07,667 [1424471527] Warning : Loading plugins: No module named bottle