Adapter without objects
Closed this issue · 5 comments
Describe the bug
Since I upgraded my iobroker instance to Node 16.20.2 the adapter does not show anything. The only interesting log message is: "API Error: Please Authenticate manually once using the Admin UI of this instance.". But if I press "Authenticate with netatmo" button it tells me OK.
Netatmo client-id and client-secret worked before Node upgrade, but I also reinstalled and reconfigured adapter. I'm lost here, what else can I try?
Versions:
- Adapter version: 3.1.0
- JS-Controller version: 5.0.12
- Node version: 16.20.2
- Operating system: OSX
Please provide a debug log
Thanks for your fast reply. Here is my debug log and hope it helps. I replaced client-id, secret und IP with PRIVATE.
2023-12-06 14:06:59.902 - �[32minfo�[39m: host.server.local stopInstance system.adapter.netatmo.0 (force=false, process=true)
2023-12-06 14:06:59.916 - �[32minfo�[39m: netatmo.0 (8434) Got terminate signal TERMINATE_YOURSELF
2023-12-06 14:06:59.909 - �[32minfo�[39m: host.server.local stopInstance system.adapter.netatmo.0 send kill signal
2023-12-06 14:06:59.917 - �[32minfo�[39m: netatmo.0 (8434) cleaned everything up...
2023-12-06 14:06:59.917 - �[32minfo�[39m: netatmo.0 (8434) terminating
2023-12-06 14:06:59.918 - �[32minfo�[39m: netatmo.0 (8434) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2023-12-06 14:07:00.428 - �[32minfo�[39m: netatmo.0 (8434) terminating
2023-12-06 14:07:00.469 - �[32minfo�[39m: host.server.local instance system.adapter.netatmo.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2023-12-06 14:07:02.943 - �[32minfo�[39m: host.server.local instance system.adapter.netatmo.0 started with pid 66699
2023-12-06 14:07:03.955 - �[34mdebug�[39m: netatmo.0 (66699) Redis Objects: Use Redis connection: 127.0.0.1:9001
2023-12-06 14:07:03.977 - �[34mdebug�[39m: netatmo.0 (66699) Objects client ready ... initialize now
2023-12-06 14:07:03.979 - �[34mdebug�[39m: netatmo.0 (66699) Objects create System PubSub Client
2023-12-06 14:07:03.979 - �[34mdebug�[39m: netatmo.0 (66699) Objects create User PubSub Client
2023-12-06 14:07:04.000 - �[34mdebug�[39m: netatmo.0 (66699) Objects client initialize lua scripts
2023-12-06 14:07:04.009 - �[34mdebug�[39m: netatmo.0 (66699) Objects connected to redis: 127.0.0.1:9001
2023-12-06 14:07:04.021 - �[34mdebug�[39m: netatmo.0 (66699) Redis States: Use Redis connection: 127.0.0.1:9000
2023-12-06 14:07:04.026 - �[34mdebug�[39m: netatmo.0 (66699) States create System PubSub Client
2023-12-06 14:07:04.027 - �[34mdebug�[39m: netatmo.0 (66699) States create User PubSub Client
2023-12-06 14:07:04.036 - �[34mdebug�[39m: netatmo.0 (66699) States connected to redis: 127.0.0.1:9000
2023-12-06 14:07:04.073 - �[34mdebug�[39m: netatmo.0 (66699) Plugin sentry Initialize Plugin (enabled=true)
2023-12-06 14:07:04.346 - �[32minfo�[39m: netatmo.0 (66699) starting. Version 3.1.0 in /usr/local/iobroker/node_modules/iobroker.netatmo, node: v16.20.2, js-controller: 5.0.12
2023-12-06 14:07:04.353 - �[34mdebug�[39m: netatmo.0 (66699) Use individual ID/Secret
2023-12-06 14:07:04.354 - �[32minfo�[39m: netatmo.0 (66699) Authenticating with Netatmo using individual client-ID PRIVATE
2023-12-06 14:07:04.354 - �[33mwarn�[39m: netatmo.0 (66699) API Error: Please Authenticate manually once using the Admin UI of this instance.
2023-12-06 14:07:22.386 - �[33mwarn�[39m: admin.0 (562) netatmo has an invalid jsonConfig: [{"instancePath":"/items/_authenticate","schemaPath":"#/definitions/sendToProps/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"window"},"message":"must NOT have additional properties"}]
2023-12-06 14:07:22.769 - �[34mdebug�[39m: netatmo.0 (66699) Received OAuth start message: {"client_id":"PRIVATE","client_secret":"PRIVATE","redirect_uri_base":"http://PRIVATE:8081/","scopes":{"netatmoCoach":false,"netatmoWeather":true,"netatmoWelcome":false,"netatmoSmokedetector":false,"netatmoCOSensor":false,"netatmoDoorBell":false,"netatmoBubendorff":false}}
2023-12-06 14:07:22.770 - �[34mdebug�[39m: netatmo.0 (66699) Get OAuth start link data: {"client_id":"PRIVATE","client_secret":"PRIVATE","scopes":{"netatmoCoach":false,"netatmoWeather":true,"netatmoWelcome":false,"netatmoSmokedetector":false,"netatmoCOSensor":false,"netatmoDoorBell":false,"netatmoBubendorff":false},"scope":"read_station","redirect_uri":"http://PRIVATE:8081/oauth2_callbacks/netatmo.0/"}
2023-12-06 14:07:22.770 - �[34mdebug�[39m: netatmo.0 (66699) Get OAuth start link: https://api.netatmo.com/oauth2/authorize?client_id=PRIVATE&redirect_uri=http%3A%2F%2FPRIVATE%3A8081%2Foauth2_callbacks%2Fnetatmo.0%2F&scope=read_station&state=tydgfIFUUMT3zdy69N2LPMpTBnxoS0a9eGVkXDrl
2023-12-06 14:07:25.440 - �[32minfo�[39m: host.server.local stopInstance system.adapter.netatmo.0 (force=false, process=true)
2023-12-06 14:07:25.443 - �[32minfo�[39m: netatmo.0 (66699) Got terminate signal TERMINATE_YOURSELF
2023-12-06 14:07:25.445 - �[32minfo�[39m: host.server.local stopInstance system.adapter.netatmo.0 send kill signal
2023-12-06 14:07:25.444 - �[32minfo�[39m: netatmo.0 (66699) cleaned everything up...
2023-12-06 14:07:25.444 - �[32minfo�[39m: netatmo.0 (66699) terminating
2023-12-06 14:07:25.445 - �[34mdebug�[39m: netatmo.0 (66699) Plugin sentry destroyed
2023-12-06 14:07:25.445 - �[32minfo�[39m: netatmo.0 (66699) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2023-12-06 14:07:26.082 - �[32minfo�[39m: netatmo.0 (66699) terminating
2023-12-06 14:07:26.115 - �[32minfo�[39m: host.server.local instance system.adapter.netatmo.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2023-12-06 14:07:28.470 - �[33mwarn�[39m: host.server.local Your system has only 88 MB RAM left available and an additional adapter process is started. Please check your system, settings and active instances to prevent swapping and Out-Of-Memory situations!
2023-12-06 14:07:28.481 - �[32minfo�[39m: host.server.local instance system.adapter.netatmo.0 started with pid 66824
2023-12-06 14:07:29.430 - �[34mdebug�[39m: netatmo.0 (66824) Redis Objects: Use Redis connection: 127.0.0.1:9001
2023-12-06 14:07:29.448 - �[34mdebug�[39m: netatmo.0 (66824) Objects client ready ... initialize now
2023-12-06 14:07:29.449 - �[34mdebug�[39m: netatmo.0 (66824) Objects create System PubSub Client
2023-12-06 14:07:29.450 - �[34mdebug�[39m: netatmo.0 (66824) Objects create User PubSub Client
2023-12-06 14:07:29.466 - �[34mdebug�[39m: netatmo.0 (66824) Objects client initialize lua scripts
2023-12-06 14:07:29.475 - �[34mdebug�[39m: netatmo.0 (66824) Objects connected to redis: 127.0.0.1:9001
2023-12-06 14:07:29.488 - �[34mdebug�[39m: netatmo.0 (66824) Redis States: Use Redis connection: 127.0.0.1:9000
2023-12-06 14:07:29.494 - �[34mdebug�[39m: netatmo.0 (66824) States create System PubSub Client
2023-12-06 14:07:29.495 - �[34mdebug�[39m: netatmo.0 (66824) States create User PubSub Client
2023-12-06 14:07:29.504 - �[34mdebug�[39m: netatmo.0 (66824) States connected to redis: 127.0.0.1:9000
2023-12-06 14:07:29.540 - �[34mdebug�[39m: netatmo.0 (66824) Plugin sentry Initialize Plugin (enabled=true)
2023-12-06 14:07:29.860 - �[32minfo�[39m: netatmo.0 (66824) starting. Version 3.1.0 in /usr/local/iobroker/node_modules/iobroker.netatmo, node: v16.20.2, js-controller: 5.0.12
2023-12-06 14:07:29.870 - �[34mdebug�[39m: netatmo.0 (66824) Use individual ID/Secret
2023-12-06 14:07:29.871 - �[32minfo�[39m: netatmo.0 (66824) Authenticating with Netatmo using individual client-ID PRIVATE
2023-12-06 14:07:29.872 - �[33mwarn�[39m: netatmo.0 (66824) API Error: Please Authenticate manually once using the Admin UI of this instance.
Your log states that the adapter gets stopped via adminafter it delivered the initial OAuth URL - genauer 3s nachdem die URL aufgerufen wird wird dem Adaoter gesagt such zu beenden und er wird neu gestartet. Es kamen keine LoginInfos von Netatmo zurck.
Was genau tust du da? An sich sollte nach klick auf "Authenticate" ein neues fentser aufgehen mit der Netatmo login seite. Der adapter muss in der Zeit laufen ...
Ich hatte den Adapter neugestartet, weil ich nicht so richtig weiß wann was in dem Adapter passiert und zu Log-Meldungen führt. Aber bei dem Authenticate Button soll ein Fenster hoch kommen? Das kommt bei mir nicht, da erscheint nur unten ein OK in einer Message. Oder meinst du die?
Oh doch, es kommt. Ein neues Browser Fenster, hat der Safari beblockt. Alles klar, jetzt hat es geklappt und der Adapter funktioniert wieder. Danke für die schnelle Hilfe!