Emoncms: Post failed -11

My iotawatt suddenly stopped uploading data to my emocms.
I would appreciate if anyone can help me.

Emoncms: Post failed -11

see logs below:
8/22/21 15:09:29 MDNS responder started for hostname IotaWatt
8/22/21 15:09:29 LLMNR responder started for hostname IotaWatt
8/22/21 15:09:29 timeSync: service started.
8/22/21 15:09:30 statService: started.
8/22/21 15:09:30 Updater: service started. Auto-update class is ALPHA
8/22/21 15:09:30 dataLog: service started.
8/22/21 15:09:32 dataLog: Last log entry 08/22/21 15:09:00
8/22/21 15:09:32 emoncms: Start posting at 08/22/21 05:21:20
8/22/21 15:09:35 historyLog: service started.
8/22/21 15:09:35 historyLog: Last log entry 08/22/21 15:09:00
8/22/21 15:09:39 PVoutput: started
8/22/21 15:09:52 influxDB_v1: stopped, Last post 01/01/70 01:00:00
8/22/21 15:09:56 PVoutput: System wilfriktec, interval 5, freeload mode
8/22/21 15:09:59 PVoutput: Start status beginning 08/22/21 15:05:00
8/22/21 15:10:02 Updater: Auto-update is current for class ALPHA.
8/22/21 15:14:17 emoncms: stopped, Last post 08/22/21 05:21:15
8/22/21 15:14:20 emoncms: Start posting at 08/22/21 05:24:10
8/22/21 15:18:30 emoncms: stopped, Last post 08/22/21 05:24:05
8/22/21 15:18:40 emoncms: Start posting at 08/22/21 05:27:00
8/23/21 07:12:24 Table file parse failed.
8/23/21 08:12:31 Updater: update tables from invalid to 0.0.2
8/23/21 14:57:11 emoncms: stopped, Last post 08/22/21 09:22:35
8/23/21 14:57:17 emoncms: Start posting at 08/22/21 09:25:55
8/23/21 14:58:15 emoncms: stopped, Last post 08/22/21 09:25:50
8/23/21 14:58:20 emoncms: Start posting at 08/22/21 09:29:10
8/23/21 15:01:49 emoncms: stopped, Last post 08/22/21 09:29:05
8/23/21 15:01:58 emoncms: Start posting at 08/22/21 09:32:30
8/23/21 15:03:44 emoncms: stopped, Last post 08/22/21 09:32:25
8/23/21 15:03:48 emoncms: Start posting at 08/22/21 09:35:45
8/23/21 15:11:56 emoncms: stopped, Last post 08/22/21 09:35:40
8/23/21 15:12:07 Restart command received.

-11 is timeout. It appears that Emoncms stopped responding at about 5:21. Your WiFi connection to IoTaWatt appears to be working because PVoutput is up to date, but influx doesn’t seem to be working either. Does your Emoncms and influx share the same host?

There isn’t enough log to provide any assessment of the WiFi or state of the influx or Emoncms uploader instances.

thanks for your feedback. yes, I stopped manually the influx from sending data.
my problem is with uploading data to emoncms. it is failing with error “Post Failed -11”. I did checked the logs and its not showing anything reasonable. I also checked Emoncms and also found that it isn’t receiving data from iotawatt. its very frustrating and would appreciate further support from anyone with similar experience

Please post:

Your Emoncms uploader setup.

Your message log including all of the most recent restart.

Here are the logs

===Emoncms.log====
2021-08-23 14:00:35.275|WARN|emoncms_mqtt.php|Not connected, retrying connection
2021-08-23 14:00:35.312|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
2021-08-23 14:00:35.343|ERROR|demandshaper_model.php|Saved to disk
2021-08-23 14:03:03.637|ERROR|index.php|Not Authenticated|input/view
2021-08-23 14:06:33.753|WARN|emoncms_mqtt.php|Not connected, retrying connection
2021-08-23 14:06:33.788|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
2021-08-23 15:53:47.148|WARN|sync_model.php|remote save
2021-08-23 15:53:47.487|WARN|sync_model.php|IoTaWatt-Login
2021-08-23 17:59:33.135|ERROR|index.php|Not Authenticated|config/getemonhublog
2021-08-23 17:59:46.110|ERROR|index.php|Not Authenticated|config/getemonhublog
2021-08-23 17:59:48.795|ERROR|index.php|Not Authenticated|config/getemonhublog
2021-08-23 17:59:50.882|ERROR|index.php|Not Authenticated|config/getemonhublog
2021-08-23 17:59:51.144|ERROR|index.php|Not Authenticated|config/getemonhublog
2021-08-23 17:59:55.055|ERROR|index.php|Not Authenticated|config
2021-08-23 17:59:55.078|ERROR|index.php|Not Authenticated|config/getemonhublog

====emonhub.log in attachement =====

emonhub.log.txt (1.5 MB)


====iotawatt log========
** Restart **

SD initialized.
8/23/21 18:04:40z Real Time Clock is running. Unix time 1629741880
8/23/21 18:04:40z Reset reason: Software/System restart
8/23/21 18:04:40z Trace: 1:3, 1:6[1], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[5], 31:120, 21:100[31], 21:101, 31:120, 31:122, 31:123, 31:124, 3:95, 3:95, 31:126, 31:1, 1:6[6], 1:1[10], 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 10:2, 10:3
8/23/21 18:04:40z ESP8266 ChipID: 191794
8/23/21 18:04:40z IoTaWatt 4.x, Firmware version 02_06_05
8/23/21 18:04:40z SPIFFS mounted.
8/23/21 19:04:40 influxDB_v1: invalid URL
8/23/21 19:04:40 influxDB_v1: Invalid configuration.
8/23/21 19:04:40 Local time zone: +1:00
8/23/21 19:04:40 device name: IotaWatt
8/23/21 19:04:41 HTTP server started
8/23/21 19:04:41 emoncms: Starting, interval:10, url:http://192.168.1.98:80/emoncms
8/23/21 19:04:41 timeSync: service started.
8/23/21 19:04:41 statService: started.
8/23/21 19:04:41 dataLog: service started.
8/23/21 19:04:45 dataLog: Last log entry 08/23/21 19:04:35
8/23/21 19:04:46 historyLog: service started.
8/23/21 19:04:47 historyLog: Last log entry 08/23/21 19:04:00
8/23/21 19:04:47 WiFi connected. SSID=wilfred-home, IP=192.168.1.178, channel=1, RSSI -72db
8/23/21 19:04:47 MDNS responder started for hostname IotaWatt
8/23/21 19:04:47 LLMNR responder started for hostname IotaWatt
8/23/21 19:04:47 Updater: service started. Auto-update class is ALPHA
8/23/21 19:04:48 emoncms: Start posting at 08/22/21 10:33:10
8/23/21 19:04:50 Updater: Auto-update is current for class ALPHA.
8/23/21 19:04:51 PVoutput: started
8/23/21 19:04:56 PVoutput: System wilfriktec, interval 5, freeload mode
8/23/21 19:04:57 PVoutput: Start status beginning 08/23/21 19:00:00


Here attached is the raised log level on e
emoncms (1).log.txt (150.4 KB)
moncms

From the IoTaWatt perspective, it is able to successfully query Emoncms to find out the time of the last post. After that, when it sends the data, it appears that it does not receive a response from Emoncms.

So this could be a communications problem or a problem with Emoncms. It does not appear to be a problem with the IoTaWatt.

Without knowing anything about your network topology or Emoncms instance, I can’t speculate on what could be the issue, and I’m not an expert at Emoncms anyway.

Have you tried restarting your router?

Restarting your Emoncms?