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

Sometime the exporter stop working for no reasons #3

Closed
giuliomagnifico opened this issue Nov 27, 2022 · 2 comments
Closed

Sometime the exporter stop working for no reasons #3

giuliomagnifico opened this issue Nov 27, 2022 · 2 comments

Comments

@giuliomagnifico
Copy link

Hi and thanks a lot for the exporter, I integrated it into my dashboard with the Netatmo-weather-stations exporter.

But I have an issue: almost every day your exporter stops working without notice, I'm trying to find out why. I'm not using it with docker, instead I compiled it and added a service to my systemd.

Here are the details. The service item:

[Unit]
Description=netatmo_energy-exporter

[Service]
WorkingDirectory=/root/go/bin/
Type=simple
Restart=always
RestartSec=5s
ExecStart=/root/go/bin/netatmo_exporter -client-id xxx   -client-secret xxx -password xxx -username giuliomagnifico@gmail.com
User=root

[Install]
WantedBy=multi-user.target

That is active and running but if I turn on my thermostat, it doesn't report the state change, if I reload the daemon, it starts working again:

root@Grafana:~# systemctl status netatmo_energy-exporter.service 
● netatmo_energy-exporter.service - netatmo_energy-exporter
     Loaded: loaded (/etc/systemd/system/netatmo_energy-exporter.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-11-25 08:27:02 CET; 2 days ago
   Main PID: 570 (netatmo_exporte)
      Tasks: 11 (limit: 4531)
        CPU: 3min 8.315s
     CGroup: /system.slice/netatmo_energy-exporter.service
             └─570 /root/go/bin/netatmo_exporter -client-id xxx -client-secret xxx -password xxx -username giuliomagnifico@gmail.com

It's weird because I'm running in the same exact way the Netatmo-weather-exporter (for the weather stations) in the same exactly way and it works flawlessly.

Do you have an idea? Or you have a newer go api that you haven't uploaded here on GitHub?

Thanks

@giuliomagnifico
Copy link
Author

I got the log when this occurs:

Nov 28 05:09:26 Grafana netatmo_exporter[92366]: 2022/11/28 05:09:26 could not get homes data: could not get data: error during http request: Get "https://api.netatmo.com/api/homesdata": dial tcp 51.145.143.28:443: connect: network is unreachable

@giuliomagnifico
Copy link
Author

With new authentication method is no longer happening.

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

No branches or pull requests

1 participant