Emonhub/Emoncms failing from time to time?

This problem has been reported a few times but I don't know if there is a solution. I am posting data to emoncms.org and it works perfectly most of the time. However, from time to time, I get the following messages:

WARNING emonCMS couldn't send to server, URLError: [Errno -5] No address associated with hostname
WARNING emonCMS send failure: wanted 'ok' but got ''
WARNING emonCMS couldn't send to server, URLError: timed out

I have attached the emonhub.log file. It only contains INFO and WARNING information. 

Does anybody know what's going on?

Thanks

Walter

daturach's picture

Re: Emonhub/Emoncms failing from time to time?

Hello

I am still checking the log but could not find anything new these last days.

I will report back if I see these messages again.

Thanks

Walter

pb66's picture

Re: Emonhub/Emoncms failing from time to time?

Hi Walter

At first glance that looks like a dns issue, but if you set loglevel = DEBUG (currently WARNING) in emonhub.conf then you should at least be able to confirm the url is correctly formed by emonhub.

​Have you updated with apt-get recently?

Paul

daturach's picture

Re: Emonhub/Emoncms failing from time to time?

Hello Paul

No, I haven't updated but I found the problem: if you remove the network cable attached to the pi while the service runs and you let emonTx sending data, you get these messages...and the log file is filling up very quickly.

Anything that could be done in the Python scripts?

Thanks for your help.

Walter

pb66's picture

Re: Emonhub/Emoncms failing from time to time?

Hi Walter,

I recommend doing the apt-get updates and see how it goes first. emonHub isn't responsible for the dns lookups and I'm not sure how this fault occurs exactly, but since 1 or 2 users have seen it in the past and it has come and gone with no changes made to emonhub to cause or fix the issue. I think emonhub is probally a casualty rather than the cause, but either way the logs cannot get out of control because they are in RAM, limited in size and just get overwritten.

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.