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

[ERROR] Exception occurred while handling uri: #4

Closed
exbane opened this issue Sep 7, 2022 · 3 comments
Closed

[ERROR] Exception occurred while handling uri: #4

exbane opened this issue Sep 7, 2022 · 3 comments

Comments

@exbane
Copy link

exbane commented Sep 7, 2022

Hello - i've been able to get the docker image up and running on a RHEL8 VM.. when i configure the promethues yml file for the FA i start getting these messages in the error log of the collector.. i can see the user account loging into the array with the api token but no data is being handled.. Thoughts?

i'm using the 0.1.0 version and i've tried 0.2.0-dev.. also whenever i try to use the --workers command i get errors too.. only seems to start the container successfully when its one worker..

[2022-09-07 20:54:06 +0000] [1] [ERROR] Exception occurred while handling uri: 'http://boop:9491/metrics?endpoint=10.32.33.34'
Traceback (most recent call last):
File "handle_request", line 83, in handle_request
FutureStatic,
File "/app/pure_fa_exporter.py", line 51, in decorated_function
response = await f(request, *args, **kwargs)
File "/app/pure_fa_exporter.py", line 113, in flasharray_handler
resp = generate_latest(registry)
File "/app/.local/lib/python3.10/site-packages/prometheus_client/exposition.py", line 197, in generate_latest
for metric in registry.collect():
File "/app/.local/lib/python3.10/site-packages/prometheus_client/registry.py", line 97, in collect
yield from collector.collect()
File "/app/.local/lib/python3.10/site-packages/pure_fa_openmetrics_exporter/flasharray_collector/collector.py", line 34, in collect
yield from ArrayInfoMetrics(self.fa).get_metrics()
File "/app/.local/lib/python3.10/site-packages/pure_fa_openmetrics_exporter/flasharray_collector/flasharray_metrics/array_info_metrics.py", line 8, in init
self.array = fa_client.arrays()[0]
File "/app/.local/lib/python3.10/site-packages/pure_fa_openmetrics_exporter/flasharray_client/client.py", line 66, in arrays
return list(self._arrays.values())
AttributeError: 'NoneType' object has no attribute 'values'

@exbane
Copy link
Author

exbane commented Sep 20, 2022

bump

@sdodsley
Copy link
Collaborator

@exbane we are refactoring this code to run under GoLang. This will be much moe robust and handle errors cleanly.
We will not be doing any further development work on the Python version.
The Go version will be available shortly.

@genegr
Copy link
Collaborator

genegr commented Oct 4, 2022

The new Go version is available and should fix among the other issues also this one. Please give it a try to see this is actually fixed.

@genegr genegr closed this as completed Oct 4, 2022
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

3 participants