Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tomhodgson opened this issue May 10, 2023 · 13 comments

Comments

@Tomhodgson
Copy link

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.

@skrollme
Copy link
Owner

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?

@TheodorCZ1
Copy link

TheodorCZ1 commented Jul 14, 2023

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”.

@uratrtl
Copy link

uratrtl commented Jul 16, 2023

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

@polygon-eclipse
Copy link

[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

@ro10dev
Copy link

ro10dev commented Aug 24, 2023

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

@vincentbls
Copy link

vincentbls commented Sep 8, 2023

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

@mailkluge
Copy link

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.

@vincentbls
Copy link

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

@TheodorCZ1
Copy link

TheodorCZ1 commented Oct 27, 2023

@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.

@vincentbls
Copy link

@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.

@novski
Copy link

novski commented Dec 4, 2023

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...

@vincentbls
Copy link

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.

@novski
Copy link

novski commented Jan 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants