Boujour à tous,
j’ai réinstallé MyElectricalData voilà le journal
2023-10-10 14:33:54.389 - INFO : Connect to InfluxDB influxdb:8086
2023-10-10 14:33:58.059 - CRITICAL : ['Impossible de se connecter à la base influxdb.', '', 'Vous pouvez récupérer un exemple ici :', 'https://github.com/m4dm4rtig4n/enedisgateway2mqtt#configuration-file']
2023-10-10 14:33:58.060 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-10-10 14:33:58.060 - INFO : MÉTHODE D'IMPORTATION : SYNCHRONOUS
2023-10-10 14:33:58.060 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -5] No address associated with hostname
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/main.py", line 12, in <module>
from init import CONFIG, DB
File "/app/init.py", line 96, in <module>
INFLUXDB = InfluxDB(
^^^^^^^^^
File "/app/models/influxdb.py", line 71, in __init__
self.connect()
File "/app/models/influxdb.py", line 123, in connect
self.get_list_retention_policies()
File "/app/models/influxdb.py", line 148, in get_list_retention_policies
buckets = self.buckets_api.find_buckets().buckets
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/client/bucket_api.py", line 119, in find_buckets
return self._buckets_service.get_buckets(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/service/buckets_service.py", line 500, in get_buckets
(data) = self.get_buckets_with_http_info(**kwargs) # noqa: E501
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/service/buckets_service.py", line 588, in get_buckets_with_http_info
return self.api_client.call_api(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/api_client.py", line 341, in call_api
return self.__call_api(resource_path, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/api_client.py", line 171, in __call_api
response_data = self.request(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/api_client.py", line 363, in request
return self.rest_client.GET(url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/rest.py", line 261, in GET
return self.request("GET", url,
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/influxdb_client/rest.py", line 232, in request
r = self.pool_manager.request(method, url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/request.py", line 74, in request
return self.request_encode_url(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/request.py", line 96, in request_encode_url
return self.urlopen(method, url, **extra_kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/poolmanager.py", line 376, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/util/retry.py", line 525, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/packages/six.py", line 770, in reraise
raise value
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.11/http/client.py", line 1286, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.11/http/client.py", line 1332, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.11/http/client.py", line 1281, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.11/http/client.py", line 1041, in _send_output
self.send(msg)
File "/usr/local/lib/python3.11/http/client.py", line 979, in send
self.connect()
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82a23850>: Failed to establish a new connection: [Errno -5] No address associated with hostname
[14:33:59] FATAL: The app has crashed. Are you sure you entered the correct config options?
Starting the upstream container
Ma configuration MyElectricalData
Ma configuration InfluxDB
Ma configuration YAML
---
port: 5000
debug: true
log2file: false
wipe_influxdb: false
tempo:
enable: true
home_assistant:
enable: true
discovery: true
discovery_prefix: homeassistant
home_assistant_ws:
enable: true
ssl: true
token: HOME_ASSISTANT_TOKEN_GENERATE_IN_PROFILE_TABS_(BOTTOM)
url: myhomeassistant.domain.fr
ssl:
gateway: true
certfile: ""
keyfile: ""
influxdb:
enable: true
hostname: influxdb
port: 8086
token: myelectricaldata
org: myelectricaldata
bucket: myelectricaldata
method: synchronous
batching_options:
batch_size: 1000
flush_interval: 1000
jitter_interval: 0
retry_interval: 5000
max_retry_time: 180_000
max_retries: 5
max_retry_delay: 125_000
exponential_base: 2
mqtt:
enable: true
hostname: mosquitto
port: 1883
username: null
password: null
prefix: myelectricaldata
client_id: myelectricaldata
retain: true
qos: 0
myelectricaldata:
"***************** je l'ai bien noté":
enable: "true"
token: ******************************** je l'ai bien noté
name: Maison
addresses: "true"
cache: "true"
consumption: "true"
consumption_detail: "true"
consumption_price_base: "0.145907"
consumption_price_hc: "0.124364"
consumption_price_hp: "0.164915"
consumption_max_date: 2021-06-01
consumption_detail_max_date: 2021-06-01
offpeak_hours_0: 01H00-7H30;12H30-14H00
offpeak_hours_1: 01H00-7H30;12H30-14H00
offpeak_hours_2: 01H00-7H30;12H30-14H00
offpeak_hours_3: 01H00-7H30;12H30-14H00
offpeak_hours_4: 01H00-7H30;12H30-14H00
offpeak_hours_5: 01H00-7H30;12H30-14H00
offpeak_hours_6: 01H00-7H30;12H30-14H00
plan: HC/HP
production: "false"
production_detail: "false"
production_price: "0.0"
production_max_date: 2021-06-01
production_detail_max_date: 2021-06-01
refresh_addresse: "false"
refresh_contract: "false"
Je ne parviens pas à trouver l’erreur avez vous la solution
merci pour votre aide