I run emoncms on a server behind the web server NGINX (I can’t use Apache here). However, there is the problem that NGINX does not seem to send the correct OK signal to the Iotawatt. The first data package arrives on the server, but then no more. The Iotawatt log shows the following:
6/30/18 18:20:41z EmonService: started. url:my.rexometer.de:80,node:IotaWatt,interval:10, encrypted POST
6/30/18 18:20:42z EmonService: Node doesn't yet exist.
6/30/18 18:20:42z EmonService: Start posting at 6/30/18 18:20:50
6/30/18 18:21:30z EmonService: Invalid response, Retrying.
6/30/18 18:21:31z EmonService: Invalid response, Retrying.
6/30/18 18:21:32z EmonService: Invalid response, Retrying.
6/30/18 18:21:33z EmonService: Invalid response, Retrying.
6/30/18 18:21:34z EmonService: Invalid response, Retrying.
6/30/18 18:21:35z EmonService: Invalid response, Retrying.
6/30/18 18:21:36z EmonService: Invalid response, Retrying.
6/30/18 18:21:37z EmonService: Invalid response, Retrying.
6/30/18 18:21:38z EmonService: Invalid response, Retrying.
6/30/18 18:21:39z EmonService: Invalid response, Retrying.
6/30/18 18:21:40z EmonService: Invalid response, Retrying.
6/30/18 18:21:41z EmonService: Invalid response, Retrying.
6/30/18 18:21:42z EmonService: Invalid response, Retrying.
6/30/18 18:21:43z EmonService: Invalid response, Retrying.
6/30/18 18:21:44z EmonService: Invalid response, Retrying.
6/30/18 18:21:45z EmonService: Invalid response, Retrying.
6/30/18 18:21:46z EmonService: Invalid response, Retrying.
6/30/18 18:21:47z EmonService: Invalid response, Retrying.
6/30/18 18:21:48z EmonService: Invalid response, Retrying.
6/30/18 18:21:49z EmonService: Invalid response, Retrying.
6/30/18 18:21:50z EmonService: Invalid response, Retrying.
6/30/18 18:21:51z EmonService: Invalid response, Retrying.
6/30/18 18:21:52z EmonService: Invalid response, Retrying.
6/30/18 18:21:53z EmonService: Invalid response, Retrying.
6/30/18 18:21:54z EmonService: Invalid response, Retrying.
6/30/18 18:21:55z EmonService: Invalid response, Retrying.
6/30/18 18:21:56z EmonService: Invalid response, Retrying.
6/30/18 18:21:57z EmonService: Invalid response, Retrying.
6/30/18 18:21:58z EmonService: Invalid response, Retrying.
6/30/18 18:21:59z EmonService: Invalid response, Retrying.
6/30/18 18:22:00z EmonService: Invalid response, Retrying.
6/30/18 18:22:01z EmonService: Invalid response, Retrying.
6/30/18 18:22:02z EmonService: Invalid response, Retrying.
6/30/18 18:22:03z EmonService: Invalid response, Retrying.
6/30/18 18:22:04z EmonService: Invalid response, Retrying.
6/30/18 18:22:05z EmonService: Invalid response, Retrying.
6/30/18 18:22:06z EmonService: Invalid response, Retrying.
6/30/18 18:22:07z EmonService: Invalid response, Retrying.
6/30/18 18:22:08z EmonService: Invalid response, Retrying.
6/30/18 18:22:09z EmonService: Invalid response, Retrying.
6/30/18 18:22:10z EmonService: Invalid response, Retrying.
6/30/18 18:22:11z EmonService: Invalid response, Retrying.
6/30/18 18:22:12z EmonService: Invalid response, Retrying.
6/30/18 18:22:13z EmonService: Invalid response, Retrying.
6/30/18 18:22:14z EmonService: Invalid response, Retrying.
6/30/18 18:22:15z EmonService: Invalid response, Retrying.
6/30/18 18:22:16z EmonService: Invalid response, Retrying.
6/30/18 18:22:17z EmonService: Invalid response, Retrying.
6/30/18 18:22:18z EmonService: Invalid response, Retrying.
6/30/18 18:22:19z EmonService: Invalid response, Retrying.
6/30/18 18:22:20z EmonService: Invalid response, Retrying.
6/30/18 18:22:21z EmonService: Invalid response, Retrying.
6/30/18 18:22:22z EmonService: Invalid response, Retrying.
6/30/18 18:22:23z EmonService: Invalid response, Retrying.
6/30/18 18:22:24z EmonService: Invalid response, Retrying.
6/30/18 18:22:25z EmonService: Invalid response, Retrying.
6/30/18 18:22:26z EmonService: Invalid response, Retrying.
6/30/18 18:22:27z EmonService: Invalid response, Retrying.
Edit 2:
Same with insecure get, only the message is a little different:
6/30/18 19:14:54z EmonService: started. url:my.rexometer.de:80,node:IotaWatt,interval:10, unsecure GET
6/30/18 19:14:55z EmonService: Start posting at 6/30/18 19:15:05
6/30/18 19:15:50z EmonService: response not ok. Retrying.
6/30/18 19:15:51z EmonService: response not ok. Retrying.
6/30/18 19:15:52z EmonService: response not ok. Retrying.
6/30/18 19:15:53z EmonService: response not ok. Retrying.
6/30/18 19:15:54z EmonService: response not ok. Retrying.
6/30/18 19:15:55z EmonService: response not ok. Retrying.
How can I best debug this? I’m a little at a loss right now.
Edit 1:
This is the corresponding NGINX access log entry:
212.161.162.87 - - [30/Jun/2018:20:20:42 +0200] "GET HTTP://my.rexometer.de/input/get?node=IotaWatt HTTP/1.1" 200 32 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:11 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 55 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:30 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:31 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:32 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:33 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:34 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:35 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:36 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:37 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:38 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:39 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:41 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:41 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:42 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:43 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:44 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:46 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:46 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:47 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:48 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"
212.161.162.87 - - [30/Jun/2018:20:21:50 +0200] "POST HTTP://my.rexometer.de/input/bulk HTTP/1.1" 200 67 "-" "-"