sighmon / balena-enviro-plus

Enviro-plus environment sensor deployment to Raspberry Pi via Balena IoT platform
9 stars 7 forks source link

Connection dropped out again.. no idea why this time #5

Open shleeable opened 4 years ago

shleeable commented 4 years ago

so look at the InfluxDB logs and it dropped out again after abut a day...

I might just crontab and restart the container every 12 hours ;)

2020-04-07 12:47:54.394 INFO     Using compensating algorithm (factor=2.25) to account for heat leakage from Raspberry Pi board
2020-04-07 12:47:54.398 INFO     Sensor data will be posted to InfluxDB every 5 seconds
2020-04-07 12:47:54.406 INFO     Sensor data will be posted to Luftdaten every 30 seconds for the UID raspi-000000000808b651
2020-04-07 12:47:54.413 INFO     Listening on http://0.0.0.0:8000
2020-04-07 13:49:30.764 WARNING  Exception sending to InfluxDB: (503)
Reason: Service Unavailable
HTTP response headers: HTTPHeaderDict({'Date': 'Tue, 07 Apr 2020 13:49:30 GMT', 'Content-Type': 'text/plain', 'Content-Length': '91', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: upstream connect error or disconnect/reset before headers. reset reason: connection failure

2020-04-07 14:07:28.790 WARNING  Luftdaten response: Failed
2020-04-07 14:09:17.266 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:10:19.345 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bd90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:12:13.905 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439be70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:13:15.985 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e8f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 14:14:18.065 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c6410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 15:41:11.125 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 16:20:15.356 WARNING  Exception sending to InfluxDB: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 17:10:38.546 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439ba70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 17:59:47.369 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2020-04-07 18:10:32.146 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ec50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 18:34:58.391 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b730>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 19:00:55.506 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d9410>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 19:02:10.386 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d95b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 19:42:33.858 WARNING  Luftdaten response: Failed
2020-04-07 19:45:53.746 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 20:10:41.752 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 20:12:05.864 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 20:17:26.871 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c1530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 21:09:43.506 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43c1bf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:02:25.105 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bc70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:11:21.426 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:12:37.660 WARNING  Luftdaten response: Failed
2020-04-07 22:14:33.432 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:15:35.511 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d16d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:16:37.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:17:39.666 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1eb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:20:49.105 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439ba70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:22:05.265 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 22:30:01.078 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 22:37:39.921 WARNING  Luftdaten response: Failed
2020-04-07 22:40:44.275 WARNING  Luftdaten response: Failed
2020-04-07 23:01:46.711 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:07:42.551 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1270>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:08:44.626 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554efd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:13:16.890 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-07 23:19:59.677 WARNING  Luftdaten response: Failed
2020-04-07 23:28:06.827 WARNING  Luftdaten response: Failed
2020-04-07 23:40:40.785 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bf10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-07 23:41:42.866 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1370>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:03:07.352 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1450>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:09:19.831 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b690>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:12:12.625 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bf90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:15:59.450 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 00:21:24.306 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d19d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:25:41.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1ff0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:29:07.672 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:30:54.546 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1670>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:35:55.346 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d17f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:37:57.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:41:05.378 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 00:42:48.786 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bdd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:44:29.912 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439be10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:51:40.244 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 00:55:55.985 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1810>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 00:59:01.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d17f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:01:44.786 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d15f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:03:02.225 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b1b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:04:04.305 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:09:09.845 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:10:12.306 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1050>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:15:02.231 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439beb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:21:37.364 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:23:34.866 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:25:37.751 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e4f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:28:36.946 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:32:42.339 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:41:08.306 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b890>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:42:10.385 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bfb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 01:49:49.532 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 01:50:51.986 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d16f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:03:31.301 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:05:46.712 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b8b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:08:42.065 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:09:44.146 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:12:07.506 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ebf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:16:56.146 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43d1870>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:19:50.865 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b590>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:23:42.108 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:24:44.625 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43ca350>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:27:17.586 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43ca550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:28:19.666 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43cab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:31:57.265 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:34:41.106 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b950>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:40:29.612 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:41:47.346 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43cf250>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 02:49:40.035 WARNING  Exception sending to Luftdaten: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2020-04-08 02:52:59.346 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:00:49.746 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b330>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:02:00.786 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b7d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:04:40.151 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:09:33.545 WARNING  Luftdaten response: Failed
2020-04-08 03:10:35.986 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ec10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:13:32.626 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b890>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:30:51.986 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439bf70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:39:47.027 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b4b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 03:41:08.946 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:00:51.026 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b6d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:05:44.785 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b3b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:08:36.056 WARNING  Luftdaten response: Failed
2020-04-08 04:09:38.386 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439b530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 04:57:22.465 WARNING  Exception sending to Luftdaten: ('Connection aborted.', OSError(0, 'Error'))
2020-04-08 05:01:32.628 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb439be70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 05:11:29.105 WARNING  Exception sending to Luftdaten: HTTPSConnectionPool(host='api.luftdaten.info', port=443): Max retries exceeded with url: /v1/push-sensor-data/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb43ca1b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2020-04-08 14:05:20.146 WARNING  Exception sending to InfluxDB: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:05:20 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '380', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'x-platform-error-code': 'internal error'})
HTTP response body: {"code":"internal error","message":"unexpected error writing points to database: rpc error: code = Unauthenticated desc = transport: Get http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token?scopes=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpubsub: net/http: timeout awaiting response headers"}

2020-04-08 14:07:26.514 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:07:25 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:09:31.813 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:09:31 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:11:37.084 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:11:36 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:13:47.831 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:13:47 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:16:04.073 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:16:03 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:18:09.365 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:18:09 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:20:20.206 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:20:20 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:22:25.474 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:22:25 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-08 14:24:42.198 WARNING  Exception sending to InfluxDB: (504)
Reason: Gateway Time-out
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 08 Apr 2020 14:24:41 GMT', 'Content-Type': 'text/html', 'Content-Length': '164', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>

2020-04-10 15:55:53.799 INFO     enviroplus_exporter.py - Expose readings from the Enviro+ sensor by Pimoroni in Prometheus format

Press Ctrl+C to exit!

2020-04-10 15:55:54.182 INFO     Using compensating algorithm (factor=2.25) to account for heat leakage from Raspberry Pi board
2020-04-10 15:55:54.186 INFO     Sensor data will be posted to InfluxDB every 5 seconds
2020-04-10 15:55:54.195 INFO     Sensor data will be posted to Luftdaten every 30 seconds for the UID raspi-000000000808b651
2020-04-10 15:55:54.201 INFO     Listening on http://0.0.0.0:8000
sighmon commented 4 years ago

@shleeable I'm surprised at how flakey the endpoints are, especially Luftdaten. I also don't understand how the threads are getting stuck, might have to read more into how Python3 threads & requests interact.