Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: invalid literal for int() with base 10, Missing configuration ? #146

Open
algorys opened this issue Apr 24, 2018 · 0 comments
Open

Comments

@algorys
Copy link

algorys commented Apr 24, 2018

When launching alignak framework with backend module installed, we have the following error raised:

[2018-04-24 07:36:19 PDT] ERROR: [alignak.modulesmanager] The module backend_scheduler raised an exception on loading, I remove it!
[2018-04-24 07:36:19 PDT] ERROR: [alignak.modulesmanager] Exception: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/alignak/modulesmanager.py", line 253, in get_instances
    instance = python_module.get_instance(alignak_module)
  File "/usr/local/lib/python2.7/dist-packages/alignak_module_backend/scheduler/module.py", line 54, in get_instance
    return AlignakBackendScheduler(mod_conf)
  File "/usr/local/lib/python2.7/dist-packages/alignak_module_backend/scheduler/module.py", line 86, in __init__
    self.backend_count = int(getattr(mod_conf, 'backend_count', '50'))
ValueError: invalid literal for int() with base 10: ''

It seems that when we add the following line, in the scheduler configuration file:

 backend_count             50

... this error disappears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant