Results 1 to 5 of 5

Thread: no bootle module

  1. #1
    Junior Member
    Join Date
    Oct 2015
    Posts
    23

    no bootle module

    Hi,

    i have just install webui2

    when i try to connect to webui2 i get an error in brokerd.log:

    [1446170093] INFO: [Shinken] Starting HTTP daemon
    [1446170093] INFO: [Shinken] Waiting for initial configuration
    [1446170095] INFO: [broker-master] We have our schedulers: {0: {'broks': {}, 'data_timeout': 120, 'name': u'scheduler-master', 'last_connection': 0, 'hard_ssl_name_check': False, 'uri': u'http://localhost:7768/', 'instance_id': 0, 'running_id': 0, 'timeout': 3, 'address': u'localhost', 'active': True, 'use_ssl': False, 'push_flavor': 504199, 'port': 7768}}
    [1446170095] INFO: [broker-master] We have our arbiters: {0: {'broks': {}, 'last_connection': 0, 'name': u'arbiter-master', 'hard_ssl_name_check': False, 'uri': u'http://localhost:7770/', 'instance_id': 0, 'running_id': 0, 'address': u'localhost', 'use_ssl': False, 'port': 7770}}
    [1446170095] INFO: [broker-master] We have our pollers: {0: {'broks': {}, 'instance_id': 0, 'last_connection': 0, 'name': u'poller-master', 'poller_tags': ['None'], 'hard_ssl_name_check': False, 'uri': u'http://localhost:7771/', 'passive': False, 'secret': '', 'reactionner_tags': [], 'running_id': 0, 'address': u'localhost', 'active': True, 'use_ssl': False, 'api_key': '', 'port': 7771}}
    [1446170095] INFO: [broker-master] We have our reactionners: {0: {'broks': {}, 'instance_id': 0, 'last_connection': 0, 'name': u'reactionner-master', 'poller_tags': [], 'hard_ssl_name_check': False, 'uri': u'http://localhost:7769/', 'passive': False, 'secret': '', 'reactionner_tags': ['None'], 'running_id': 0, 'address': u'localhost', 'active': True, 'use_ssl': False, 'api_key': '', 'port': 7769}}
    [1446170095] INFO: [broker-master] We received modules [<module type=webui2 name=webui2 />]
    [1446170095] INFO: [broker-master] Correctly loaded dummy_broker_external as an old-new-style shinken module :|
    [1446170095] INFO: [broker-master] Correctly loaded dummy_arbiter as an old-new-style shinken module :|
    [1446170095] INFO: [broker-master] Correctly loaded dummy_poller as an old-new-style shinken module :|
    [1446170095] WARNING: [broker-master] Cannot import webui2..module : No module named bottle
    [1446170095] WARNING: [broker-master] Trying to load '/var/lib/shinken/modules/webui2' as an (very-)old-style shinken "module" : by adding its path to sys.path. This can be (very) bad in case of name conflicts within the files part of /var/lib/shinken/modules/webui2 and others top-level python modules; I'll try to limit that.
    [1446170095] ERROR: [broker-master] Could not import bare 'module.py' from /var/lib/shinken/modules/webui2 : No module named bottle
    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/shinken/modulesmanager.py", line 114, in try_very_bad_load
    return importlib.import_module('module')
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
    File "/var/lib/shinken/modules/webui2/module.py", line 55, in <module>
    from bottle import run, static_file, view, route, request, response, template
    ImportError: No module named bottle
    [1446170095] INFO: [broker-master] Correctly loaded dummy_scheduler as an old-new-style shinken module :|
    [1446170095] INFO: [broker-master] Correctly loaded dummy_broker as an old-new-style shinken module :|
    [1446170095] WARNING: [broker-master] The module type webui2 for webui2 was not found in modules!
    [1446170095] INFO: [broker-master] I correctly loaded the modules: []
    [1446170095] INFO: [broker-master] Connection OK to the scheduler scheduler-master
    [1446170095] INFO: [broker-master] Connection OK to the poller poller-master
    [1446170095] INFO: [broker-master] Connection OK to the reactionner reactionner-master
    [1446170095] INFO: [broker-master] Connection OK to the receiver receiver-master
    [1446170373] WARNING: [broker-master] Connection problem to the poller poller-master: Connection error to http://localhost:7771/ : The requested URL returned error: 400 Bad Request
    [1446170374] INFO: [broker-master] Connection OK to the poller poller-master

    it seems having modules problems!!

    Why?

    Regards

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    25
    You miss bottle python module, try this command:

    sudo pip install "pymongo>=3.0.3" requests arrow "bottle==0.12.8"

    There are officials requirements from webui2 wiki installation page.

  3. #3
    Junior Member
    Join Date
    Oct 2015
    Posts
    23
    merci!!!
    thanks!!!

  4. #4
    Quote Originally Posted by wiflye81 View Post
    There are officials requirements from webui2 wiki installation page.
    Searching for "Pymongo" on the offical doc page gets 0 hits ... WebUI does mention MongoDB, but that's to save user pref's. There's no links as to what version to load, etc.

    This needs to be updated, it's very confusing for a n00b. Additionally, installing 2.0.2 then installing 2.4.2 does NOT install WebUI, which seems to be bottle.

    I'm on Oracle Linux. pip isn't installed, so I used yum, and got this:

    Code:
    Package pymongo is obsoleted by python-pymongo, trying to install python-pymongo-2.5.2-3.el6.x86_64 instead
    Resolving Dependencies
    --> Running transaction check
    ---> Package python-pymongo.x86_64 0:2.5.2-3.el6 will be installed
    --> Processing Dependency: python-bson = 2.5.2-3.el6 for package: python-pymongo-2.5.2-3.el6.x86_64
    --> Running transaction check
    ---> Package python-bson.x86_64 0:2.5.2-3.el6 will be installed
    --> Finished Dependency Resolution
    == John ==

  5. #5
    Never mind the wiki comment, I notice this is webui2, not webui. I couldn't get webui to work, per the above.

    Installing a bunch of stuff now ...

    trying webui2 instead of webui.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •