pdreker / fritz_exporter

Prometheus exporter for Fritz!Box home routers
Other
144 stars 32 forks source link

Invalid GMT offset #294

Closed robig closed 3 months ago

robig commented 4 months ago

Hey, promising project. Unfotunately I was not able to start it using docker compose.

relevant lines from docker-compose.yml:

fritz-exporter: image: pdreker/fritz_exporter:2.3.1 container_name: fritz-exporter restart: unless-stopped environment: FRITZ_HOSTNAME: '192.168.127.1' FRITZ_USERNAME: 'xxxx' FRITZ_PASSWORD: 'xxxxxx' ports:

  • "9787:9787"

Docker log:

fritz-exporter | RuntimeError: invalid GMT offset fritz-exporter | Traceback (most recent call last): fritz-exporter | File "", line 189, in _run_module_as_main fritz-exporter | File "", line 148, in _get_module_details fritz-exporter | File "", line 112, in _get_module_details fritz-exporter | File "/usr/local/lib/python3.12/site-packages/fritzexporter/init.py", line 1, in fritz-exporter | from importlib import metadata fritz-exporter | File "/usr/local/lib/python3.12/importlib/metadata/init.py", line 8, in fritz-exporter | import zipfile fritz-exporter | File "/usr/local/lib/python3.12/zipfile/init.py", line 14, in fritz-exporter | import threading fritz-exporter | File "/usr/local/lib/python3.12/threading.py", line 8, in fritz-exporter | from time import monotonic as _time fritz-exporter | RuntimeError: invalid GMT offset

pdreker commented 4 months ago

That's a weird one: the backtrace is completely outside of the exporter code and happens inside the libraries. What linux distro is this running on (the Docker Host, not the container). Sometimes there are weird interactions between these.

I'll have a look.

pdreker commented 4 months ago

Could you check, what "date" on the Docker host produces? Just to get an idea, how the timezone setup is?

pdreker commented 3 months ago

Closed due to no feedback and unreproducible