Open bachya opened 4 years ago
FYI, ran into this again today. Any thoughts?
I have the same issue when trying to run it manually. However it is failing correctly, because my MQTT server is not listening on default port and you can not set the port. Are you sure you can access the MQTT server?
@lipoja Definitely. And even after the MQTT server has been up and accessible for a while, this library never recovers.
@bachya Do you have patch for this issue? I wanted to give a try to this - I am currently running everything through MQTT at home. Next time I have to check also all the forks, I started refactoring the code as well and I saw that you've already done some changes as well.
Are you using it, would you recommend it or should I search for something else?
@lipoja I don't personally have a patch for this; given this issue's stagnancy, I've gone back to using Glances.
@bachya Oh, I have to check Glance. It looks pretty good. Yes, you are right it seems that this projects froze. Thank you for the suggestion. Have a nice day :]
The main reason I wanted to use this repo was because it seemed lightweight and used MQTT, but it seems now Glances also has an option to use MQTT. If anyone can help with setting that up in HomeAssistant, preferably with auto 'discovery' I'd appreciate the tip!
I daemonize
metrics2mqtt
via the suggested method (usingsupervisor
). I'm finding that when I restart my MQTT broker,metrics2mqtt
errors out quite rapidly – so rapidly, in fact, that at some point,supervisor
gives up. Example:The only way to fix this is to restart
supervisor
.After examining the relevant section of the code, I think the problem is that you raise an exception after logging an error message; too many exceptions too quickly will choke
supervisor
. I don't see that exception being caught anywhere?