Skons / hassio-addons

7 stars 4 forks source link

Connected with result code 5 #37

Closed matzbear closed 1 year ago

matzbear commented 1 year ago

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 00-banner.sh: executing...

Add-on: Dutch gas prices Get gas prices from dutch gas stations

Add-on version: 2022.3.25.1 You are running the latest version of this add-on. System: Home Assistant OS 9.4 (amd64 / qemux86-64) Home Assistant Core: 2022.12.9 Home Assistant Supervisor: 2022.12.1

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0. [cont-init.d] 01-log-level.sh: executing... Log level is set to DEBUG [cont-init.d] 01-log-level.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [19:32:04] DEBUG: Requested API resource: http://supervisor/services/mqtt [19:32:04] DEBUG: Request method: GET [19:32:04] DEBUG: Request data: {} [19:32:04] DEBUG: API HTTP Response code: 200 [19:32:04] DEBUG: API Response: {"result": "ok", "data": {"host": "core-mosquitto", "port": 1883, "ssl": false, "protocol": "3.1.1", "username": "addons", "password": "Eivied3vaeciCauthae8aig4maiW3on4new8iesahG1leeg7opim3zouj1paiqu3", "addon": "core_mosquitto"}} [19:32:06] INFO: Log_level: debug [19:32:06] INFO: mqtt_host: core-mosquitto [19:32:06] INFO: mqtt_port: 1883 [19:32:06] DEBUG: mqtt_username: null [19:32:06] DEBUG: mqtt_password: null [19:32:06] INFO: Starting dutch gas prices... [2023-01-04 19:32:08] INFO : DGP initialized, launching client [2023-01-04 19:32:08] INFO : Connecting mqtt [2023-01-04 19:32:08] INFO : Connected with result code 5 [2023-01-04 19:32:08] ERROR : mqtt client lost connection. Will try to reconnect once in 15s.

Skons commented 1 year ago

5 is access denied. So your username and/or password for mqtt is incorrect.

matzbear commented 1 year ago

Dat snap ik maar ookal voer ik die wel handmatig in word deze genegeerd. Ik draai gewoon mqtt mosquitto dus ik zou niks in hoeven moeten voeren. Zoals je ziet in de logs krijgt hij ook zelf de username: "addons" en een password maar alsnog verliest ie de verbinding.

Skons commented 1 year ago

Met debug aan kun je in de logging de parameters zien die gebruikt worden.

Skons commented 1 year ago

Ik zie dat je die ook al aan hebt staan: API Response: {"result": "ok", "data": {"host": "core-mosquitto", "port": 1883, "ssl": false, "protocol": "3.1.1", "username": "addons", "password": "Eivied3vaeciCauthae8aig4maiW3on4new8iesahG1leeg7opim3zouj1paiqu3", "addon": "core_mosquitto"}}

Dit lijken interne waarden en niet wat je zelf opgevoerd hebt.