EmonHub stops sending data to Emoncms.org

wpa_supplicant.conf is:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

country=GB

network={

ssid="Rtc123nbs456"

#psk=".............."
psk=............................
}

I think you have a point - mine was set to GB on the emonpi.
I have another 2 pi’s running buster, which both have very stable wireless connection and both have Country ID set to US which matches the country ID on the access point.
I wil change it on the emonpi, reboot and see what happens.

Interestingly, I have one of these GL.iNet GL-MT300N-V2 routers setup as my IOT AP using a vanilla version of OpenWRT.

On checking the wireless was set to ‘World’. I set it to GB and restarted it.

Looking at a second Pi I have running, I noticed it stopped dropping the connection at exactly the time I restarted the router - it definitely makes a difference.

In your case, the second Pi is also running en emonSD image?
The reason I am asking is that, in my case, the only one experiencing the issue with the drops is the emonPi. The other two Pi’s I have, which have a more stable wlan connection, are running the latest image downloaded from raspberrypi.org:
### Debian Buster with Raspberry Pi Desktop

The Raspberry Pi Desktop OS for PC and Mac - based on Debian Buster

Version: **February 2020**

Release date: **2020-02-12**

Kernel version: **4.19**

Yes.

The image does have changed made to various network items to accommodate the need for an AP mode.

In my case, after matching the country setting in emonPi and access point, there is no significant change:

pi@emonpi:~ $ cat /var/log/syslog|grep lost

Aug 12 09:38:41 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:39:26 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:42:35 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:43:14 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:44:28 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:53:38 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:54:39 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:55:19 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:58:36 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 09:59:05 emonpi dhcpcd[502]: wlan0: carrier lost

Aug 12 10:09:01 emonpi dhcpcd[502]: wlan0: carrier lost

Rebooted router and RPi?

Sure.

It been a while but Emonhub stopped sending data to Emoncms.org again today.
Here is the relevant emoncmsorg entries from the log immediately before its stopped.

2020-08-20 15:46:35,147 DEBUG    emoncmsorg Buffer size: 3
2020-08-20 15:46:35,149 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902366.956902,15,36011,241.54,51.25,1738,0,282,0,66482,70783,115987,0,0.99,-0.07,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902376.6664126,15,36012,241.53,51.25,1736,0,281,0,66486,70783,115988,0,0.99,-0.1,0.9500000000000001,0,14.5,300,300,300,0,0,-69],[1597902386.4572845,15,36013,241.51,51.25,1729,0,280,0,66491,70783,115989,0,0.99,-0.1,0.9500000000000001,0,14.5,300,300,300,0,0,-69]]&sentat=1597902395
2020-08-20 15:46:36,804 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:47:06,875 DEBUG    emoncmsorg Buffer size: 4
2020-08-20 15:47:06,876 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902396.1279106,15,36014,241.54,51.25,1729,0,280,0,66496,70783,115990,0,0.99,-0.08,0.9500000000000001,0,14.5,300,300,300,0,0,-69],[1597902405.8677235,15,36015,241.55,51.25,1725,0,280,0,66500,70783,115991,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-69],[1597902415.542467,15,36016,241.54,51.26,1720,0,280,0,66505,70783,115991,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902425.3293293,15,36017,241.52,51.26,1717,0,279,0,66510,70783,115992,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-69]]&sentat=1597902426
2020-08-20 15:47:08,809 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:47:38,833 DEBUG    emoncmsorg Buffer size: 3
2020-08-20 15:47:38,834 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902434.963174,15,36018,241.56,51.26,1711,0,279,0,66514,70783,115993,0,0.99,-0.07,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902444.663245,15,36019,241.56,51.26,1711,0,278,0,66519,70783,115994,0,0.99,-0.08,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902454.4792225,15,36020,241.54,51.26,1706,0,278,0,66523,70783,115994,0,0.99,-0.07,0.9500000000000001,0,14.5,300,300,300,0,0,-68]]&sentat=1597902458
2020-08-20 15:47:40,180 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:48:10,196 DEBUG    emoncmsorg Buffer size: 3
2020-08-20 15:48:10,198 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902464.1805425,15,36021,241.51,51.27,1701,0,277,0,66528,70783,115995,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-69],[1597902473.848422,15,36022,241.48000000000002,51.26,1699,0,277,0,66533,70783,115996,0,0.99,-0.05,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902483.5306208,15,36023,241.5,51.27,1692,0,277,0,66537,70783,115997,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-68]]&sentat=1597902490
2020-08-20 15:48:11,528 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:48:41,567 DEBUG    emoncmsorg Buffer size: 3
2020-08-20 15:48:41,569 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902493.233889,15,36024,241.52,51.27,1692,0,276,0,66542,70783,115997,0,0.99,-0.06,0.9500000000000001,0,14.5,300,300,300,0,0,-69],[1597902502.9350703,15,36025,241.51,51.27,1691,0,276,0,66546,70783,115998,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-69],[1597902512.7325082,15,36026,241.53,51.27,1687,0,277,0,66551,70783,115999,0,0.99,-0.06,0.9500000000000001,0,14.5,300,300,300,0,0,-69]]&sentat=1597902521
2020-08-20 15:48:43,203 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:49:13,253 DEBUG    emoncmsorg Buffer size: 4
2020-08-20 15:49:13,260 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902522.404152,15,36027,241.52,51.27,1692,0,295,0,66555,70783,116000,0,0.99,-0.07,0.96,0,14.5,300,300,300,0,0,-68],[1597902532.1071267,15,36028,241.53,51.27,1692,0,295,0,66560,70783,116000,0,0.99,-0.11,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902541.7958567,15,36029,241.51,51.27,1690,0,288,0,66565,70783,116001,0,0.99,-0.07,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902551.5710042,15,36030,241.5,51.28,1674,0,274,0,66569,70783,116002,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-69]]&sentat=1597902553
2020-08-20 15:49:14,892 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:49:44,917 DEBUG    emoncmsorg Buffer size: 3
2020-08-20 15:49:44,918 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902561.236659,15,36031,241.52,51.28,1665,0,273,0,66574,70783,116003,0,0.99,-0.07,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902570.912825,15,36032,241.51,51.28,1664,0,273,0,66578,70783,116003,0,0.99,-0.09,0.9500000000000001,0,14.5,300,300,300,0,0,-68],[1597902580.7069266,15,36033,241.51,51.28,1665,0,273,0,66583,70783,116004,0,0.99,-0.08,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-70]]&sentat=1597902584
2020-08-20 15:49:46,569 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:50:16,619 DEBUG    emoncmsorg Buffer size: 3
2020-08-20 15:50:16,625 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902590.380142,15,36034,241.54,51.28,1659,0,273,0,66587,70783,116005,0,0.99,-0.1,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-71],[1597902600.0680645,15,36035,241.54,51.28,1656,0,272,0,66591,70783,116006,0,0.99,-0.1,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68],[1597902609.7724266,15,36036,241.53,51.28,1656,0,272,0,66596,70783,116006,0,0.99,-0.08,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68]]&sentat=1597902616
2020-08-20 15:50:36,475 WARNING  emoncmsorg emoncmsorg couldn't send to server: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-08-20 15:50:36,476 WARNING  emoncmsorg send failure: wanted 'ok' but got 'None'
2020-08-20 15:51:06,501 DEBUG    emoncmsorg Buffer size: 8
2020-08-20 15:51:06,507 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902590.380142,15,36034,241.54,51.28,1659,0,273,0,66587,70783,116005,0,0.99,-0.1,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-71],[1597902600.0680645,15,36035,241.54,51.28,1656,0,272,0,66591,70783,116006,0,0.99,-0.1,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68],[1597902609.7724266,15,36036,241.53,51.28,1656,0,272,0,66596,70783,116006,0,0.99,-0.08,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68],[1597902619.486673,15,36037,241.51,51.29,1652,0,272,0,66600,70783,116007,0,0.99,-0.07,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-69],[1597902629.1754067,15,36038,241.49,51.29,1648,0,271,0,66605,70783,116008,0,0.99,-0.07,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68],[1597902638.9716423,15,36039,241.5,51.29,1646,0,271,0,66609,70783,116008,0,0.99,-0.1,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68],[1597902648.668804,15,36040,241.48000000000002,51.29,1642,0,270,0,66614,70783,116009,0,0.99,-0.07,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-69],[1597902658.3594198,15,36041,241.5,51.29,1640,0,270,0,66618,70783,116010,0,0.99,-0.07,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-68]]&sentat=1597902666
2020-08-20 15:51:13,682 DEBUG    emoncmsorg acknowledged receipt with 'ok' from https://emoncms.org
2020-08-20 15:51:43,687 DEBUG    emoncmsorg Buffer size: 4
2020-08-20 15:51:43,688 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1597902668.0510738,15,36042,241.5,51.29,1638,0,270,0,66623,70783,116011,0,0.99,-0.07,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-69],[1597902677.7453904,15,36043,241.48000000000002,51.300000000000004,1633,0,270,0,66627,70783,116011,0,0.99,-0.09,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-69],[1597902687.44222,15,36044,241.48000000000002,51.300000000000004,1629,0,270,0,66631,70783,116012,0,0.99,-0.08,0.9500000000000001,0,14.620000000000001,300,300,300,0,0,-69],[1597902697.2307494,15,36045,241.57,51.300000000000004,1610,0,206,0,66636,70783,116013,0,0.99,-0.07,0.74,0,14.620000000000001,300,300,300,0,0,-70]]&sentat=1597902703


and thereafter there is no reference to emoncmsorg.
I restarted Emonhub and the posting to emoncms.org recommenced.

This issue needs to be tracked down.

In my case it works for a few days after I reload the emonPi or restart emonhub then it stops.
I was away last weekend and it stopped sending on Friday around 3AM and it didn’t recover until I restarted emonhub on monday evening when I returned home.
The interesting thing is that it has the same behavior with a local emoncm - I have a local installation on an ubuntu server on the local lan.

1 Like

Thanks I have added this report to the Issue.

And again today.

And again last night.

@borpin
Brian,
I just thought I would add a possible closure to this issue/topic.
I have had no recurrence of my original problem since the post on Aug 25.
As a possibly relevant observation, my internet access was interrupted recently for about 10 hours, which I identified as a result of the emoncms.org posted data missing for the period. I traced the problem to a modem and once reset, EmonHub proceeded to upload all the missing (presumably buffered) data in batches over the next hour or so. All without an error or other form of intervention. Very nice. :smiley:
Thank you for your assistance with this.

Most odd. Had you done any updates or changed anything that might have caused the situation to change?

Only normal updates.

1 Like

Spoke just a moment too soon. Problem recurred again last night - approx 18 hours ago. :disappointed:

There is some updated emonhub code in the master branch if you want to try that.

1 Like

8 posts were split to a new topic: Emonhub stops sending data to emoncms.org take 2