homebridge-eveatmo icon indicating copy to clipboard operation
homebridge-eveatmo copied to clipboard

Plugin is taking long time to load and preventing Homebridge from starting log message

Open Tomhodgson opened this issue 1 year ago • 13 comments

Hi,

I notice this entry in the logs for Homebridge a lot and as far as I can see everything is configured correctly. The message that shows is:

[10/05/2023, 10:31:37] [homebridge-eveatmo] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

Tomhodgson avatar May 10 '23 09:05 Tomhodgson

Hello @Tomhodgson this mostly happens when the API servers of Netatmo are busy or in "a bad phase" as they are at the moment / last weeks. Did the problem persist over time?

skrollme avatar Jul 14 '23 12:07 skrollme

The same thing happened to me today. Is it a fix on our side, or is it the netatmo servers lacking? I tried running a similar Netatmo Homebridge plugin, and the error is the same - “unauthorised_client”.

TheodorCZ1 avatar Jul 14 '23 14:07 TheodorCZ1

Im just setting this up for the first time and I registered all the scopes available to me when generating my refresh token, yet I'm still getting: " [netatmo platform] Loading new data from API for: weatherstation [7/16/2023, 11:56:11 AM] [netatmo platform] WARN - Netatmo: Error: Authenticate refresh error: invalid_grant [7/16/2023, 11:56:11 AM] [netatmo platform] WARN - Netatmo: Error: getStationsDataError error: Invalid access token [homebridge-eveatmo] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info. "

I have a gen 2 inside station and one outdoor station. They both work fine in the app

uratrtl avatar Jul 16 '23 16:07 uratrtl

[8/2/2023, 10:46:35 AM] [eveatmo platform] Loading new data from API for: weatherstation [8/2/2023, 10:46:35 AM] [eveatmo platform] Loading new data from API for: airquality [8/2/2023, 10:46:35 AM] [eveatmo platform] WARN - Netatmo: Error: getHealthyHomeCoachData error: Application does not have the good scope rights [8/2/2023, 10:46:51 AM] [homebridge-eveatmo] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info. [8/2/2023, 10:47:11 AM] [homebridge-eveatmo] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

  • Homebridge version : 1.6.1

  • Node version : 18.15.0

  • Plugin version : 1.1.0

  • Homebridge on Synology DSM

    • Homebridge version : 3.0.17
    • DSM version : DSM 7.2-64561

I updated the node version from 16.n.n to 18.15.0 and at the same time I updated the Homebridge version: 3.0.17 and after these changes, those problems occurred. The new configuration uses : grant_type : refresh_token Also tested the password, no effect.

When child bridge is in use, Homebridge restarts normally after starting (running) and all other plugins work except eveatmo. If child bridge is not used after restarting, Homebridge does not start, only the wheel remains spinning and all plugins do not work.

With the old configuration (before the update), node version 16.n.n and Plugin version 0.6.5, everything worked normally. Grant_type : password

polygon-eclipse avatar Aug 02 '23 07:08 polygon-eclipse

Hi @skrollme, unfortunately I have the same "This plugin is taking long time to load and preventing Homebridge from starting." problem. At the moment there seams to be no way to get the plugin working and catching data from Netatmo. Neither password nor token access work. Are there f.e. any workarounds or special combinations of node/homebridge/plugin versions known at the moment to get it to work? Thx in advance

ro10dev avatar Aug 24 '23 16:08 ro10dev

Same problem since a few weeks (username/password auth or refresh_token) : [homebridge-eveatmo] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

With password : ERROR - Netatmo: Error: Authenticate error: unauthorized_client With refresk token : WARN - Netatmo: Error: getStationsDataError error: Invalid access token

Homebridge v1.6.1 Container Manager DSM homebridge-eveatmo v1.1.0

vincentbls avatar Sep 08 '23 11:09 vincentbls

I had exactly the same error and today I found time to look into the source code. I solved the issue by editing manually the file „netatmo-toke.json“ in the /var/lib/homebridge folder. In this file a wrong access toke was stored. Inserted both - access and refresh - token with new ones from dev.netatmo and the plug-in is up and running again.

hope this interim solution helps.

mailkluge avatar Oct 25 '23 18:10 mailkluge

Thanks @mailkluge ! The information contained in the file netatmo-token.json was completely false! It was a very small problem... It works for me.

vincentbls avatar Oct 25 '23 19:10 vincentbls

@vincentbls @mailkluge how do you edit the file? I'm running Homebridge in VirtualBox. When I mount the VDI, it's read only. And I cant edit the file.

TheodorCZ1 avatar Oct 27 '23 13:10 TheodorCZ1

@TheodorCZ1 Sorry, I don't know Homebrige with VirtualBox. I use Docker on a NAS. I think the VM must be turned off to edit.

vincentbls avatar Oct 27 '23 18:10 vincentbls

I had exactly the same error and today I found time to look into the source code. I solved the issue by editing manually the file „netatmo-toke.json“ in the /var/lib/homebridge folder. In this file a wrong access toke was stored. Inserted both - access and refresh - token with new ones from dev.netatmo and the plug-in is up and running again.

hope this interim solution helps.

Does this work after a reboot as well on your side? I wasn't able to fix it by replacing the refresh and access token. Tried everything. Disabling is the only solution to make my homebridge startup...

novski avatar Dec 04 '23 21:12 novski

Does this work after a reboot as well on your side?

I wasn't able to fix it by replacing the refresh and access token. Tried everything. Disabling is the only solution to make my homebridge startup...

It works for me, try creating a child bridge for this plugin.

vincentbls avatar Dec 04 '23 22:12 vincentbls

I changed the plugin to a chlid created a nes token and applied that to the UI-Config and saved. Then deleted (sudo rm /var/lib/homebridge/netatmo-token.json) the token file and restarted the bridge. The file then gets recreated verry soon after a restart and the plugin started to work.

novski avatar Jan 14 '24 13:01 novski