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

BUG: SPPCheck not working using docker (sppcheck_fixes branch) #123

Open
NielsKorschinsky opened this issue Sep 1, 2022 · 0 comments
Open
Labels
bug Something isn't working python Pull requests that update Python code SPPCheck Issues affecting SPPCheck

Comments

@NielsKorschinsky
Copy link
Member

Describe the bug

For now, the panel downloading functionality of SPPCheck does not work in a containerized environment.
First, the connection to the Grafana container was of issue, but now it seems like the SSL-Connection itself is of fault:

First error:

> Testing connection to Grafana
Exception in FILE: grafana_panel_downloader.py, Line: 112, Exception: <class 'requests.exceptions.ConnectionError'>
Exception Message: HTTPSConnectionPool(host='xxx.xxx.xxx.xxx', port=3000): Max retries exceeded with url: /api/org (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85298e6470>: Failed to establish a new connection: [Errno 113] No route to host'))
Exception in FILE: sppcheck.py, Line: 399, Exception: <class 'ValueError'>
Exception Message: Failed to connect to Grafana, please check the configs
ERROR: CRITICAL: Top-level-error when creating PDF report
Finished all argument executions, starting to exit the program.
Storing script metrics
Stored script metrics successfully

second error, after using --link grafana:grafana and grafana as srv_address within the config file:

> Testing connection to Grafana
Exception in FILE: grafana_panel_downloader.py, Line: 112, Exception: <class 'requests.exceptions.SSLError'>
Exception Message: HTTPSConnectionPool(host='grafana', port=3000): Max retries exceeded with url: /api/org (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))

To Reproduce
Steps to reproduce the behavior:

  1. Use a unverified SSL Connection to Grafana
  2. Execute SPPCheck in a contanierized environment
  3. Execute the excel and prediction functionality
  4. Afterwards, execute the --pdfReport functionality

System information (please complete the following information):

  • Python version: 3.10

Additional context

SPPMon:

Also, while doing fixing this, it should be researched whether the config file needs the influxDB srv address set to influx and if not, why so.
See following wiki pages in the context of changing the config files according to the link between the docker containers.

@NielsKorschinsky NielsKorschinsky added bug Something isn't working python Pull requests that update Python code SPPCheck Issues affecting SPPCheck labels Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python Pull requests that update Python code SPPCheck Issues affecting SPPCheck
Projects
None yet
Development

No branches or pull requests

1 participant