-
-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
Hi,
i use docker compose on omv7 to run your stack.
grafana and influx are up and ready but garmin-fetch-data keeps restarting :(
the logs show an error --Failed to resolve 'influxdb'-- but i checked the three containers are on the same network. if you have any idea i appreciate it.
***** █▀▀ ▄▀█ █▀█ █▀▄▀█ █ █▄ █ █▀▀ █▀█ ▄▀█ █▀▀ ▄▀█ █▄ █ ▄▀█ *****
***** █▄█ █▀█ █▀▄ █ ▀ █ █ █ ▀█ █▄█ █▀▄ █▀█ █▀ █▀█ █ ▀█ █▀█ *****
______________________________________________________________________
By Arpan Ghosh | Please consider supporting the project if you love it
______________________________________________________________________
Traceback (most recent call last):
File "/app/.venv/lib/python3.13/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
(self._dns_host, self.port),
...<2 lines>...
socket_options=self.socket_options,
)
File "/app/.venv/lib/python3.13/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/socket.py", line 977, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.venv/lib/python3.13/site-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
conn,
...<10 lines>...
**response_kw,
)
File "/app/.venv/lib/python3.13/site-packages/urllib3/connectionpool.py", line 493, in _make_request
conn.request(
~~~~~~~~~~~~^
method,
^^^^^^^
...<6 lines>...
enforce_content_length=enforce_content_length,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/.venv/lib/python3.13/site-packages/urllib3/connection.py", line 445, in request
self.endheaders()
~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/http/client.py", line 1333, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/http/client.py", line 1093, in _send_output
self.send(msg)
~~~~~~~~~^^^^^
File "/usr/local/lib/python3.13/http/client.py", line 1037, in send
self.connect()
~~~~~~~~~~~~^^
File "/app/.venv/lib/python3.13/site-packages/urllib3/connection.py", line 276, in connect
self.sock = self._new_conn()
~~~~~~~~~~~~~~^^
File "/app/.venv/lib/python3.13/site-packages/urllib3/connection.py", line 205, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPConnection object at 0x7f954ebc4cd0>: Failed to resolve 'influxdb' ([Errno -3] Temporary failure in name resolution)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.venv/lib/python3.13/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "/app/.venv/lib/python3.13/site-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File "/app/.venv/lib/python3.13/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='influxdb', port=8086): Max retries exceeded with url: /write?db=GarminStats (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f954ebc4cd0>: Failed to resolve 'influxdb' ([Errno -3] Temporary failure in name resolution)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/garmin_grafana/garmin_fetch.py", line 112, in <module>
influxdbclient.write_points([demo_point])
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.13/site-packages/influxdb/client.py", line 614, in write_points
return self._write_points(points=points,
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
time_precision=time_precision,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
tags=tags, protocol=protocol,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
consistency=consistency)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.13/site-packages/influxdb/client.py", line 692, in _write_points
self.write(
~~~~~~~~~~^
data=data,
^^^^^^^^^^
...<2 lines>...
protocol=protocol
^^^^^^^^^^^^^^^^^
)
^
File "/app/.venv/lib/python3.13/site-packages/influxdb/client.py", line 424, in write
self.request(
~~~~~~~~~~~~^
url="write",
^^^^^^^^^^^^
...<4 lines>...
headers=headers
^^^^^^^^^^^^^^^
)
^
File "/app/.venv/lib/python3.13/site-packages/influxdb/client.py", line 343, in request
response = self._session.request(
method=method,
...<8 lines>...
timeout=self._timeout
)
File "/app/.venv/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/app/.venv/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/app/.venv/lib/python3.13/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='influxdb', port=8086): Max retries exceeded with url: /write?db=GarminStats (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f954ebc4cd0>: Failed to resolve 'influxdb' ([Errno -3] Temporary failure in name resolution)"))
Metadata
Metadata
Assignees
Labels
No labels