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

Module inner metrics raised an exception #1104

Closed
mohierf opened this issue May 14, 2019 · 1 comment
Closed

Module inner metrics raised an exception #1104

mohierf opened this issue May 14, 2019 · 1 comment
Labels

Comments

@mohierf
Copy link
Contributor

mohierf commented May 14, 2019

I noticed:

[2019-05-14 08:30:24] ERROR: [broker-master.alignak.module.inner-metrics] initialization, test connection failed. Error: [Errno 111] Connection refused
[2019-05-14 08:30:24] ERROR: [broker-master.alignak.modulesmanager] The module instance inner-metrics raised an exception on initialization: local variable 'connections' referenced before assignment, I remove it!
[2019-05-14 08:30:24] ERROR: [broker-master.alignak.modulesmanager] local variable 'connections' referenced before assignment
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/alignak/modulesmanager.py", line 189, in try_instance_init
    if not instance.init():
  File "/usr/local/lib/python3.6/site-packages/alignak/modules/inner_metrics.py", line 294, in init
    return connections
UnboundLocalError: local variable 'connections' referenced before assignment

@mohierf mohierf added the bug label May 14, 2019
@mohierf
Copy link
Contributor Author

mohierf commented May 14, 2019

This happen only when all the configured connections fail to establish! Must be fixed with a proper variable initialization....

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

No branches or pull requests

1 participant