Device reports API not ready
Last upload of data was around 26th OCT, initially I thought this was due to running out of data, I added and continued to drive looking for data still nothing.
On trying to check status via https://my.autopi.io it reports “No connection to the device” and the local site cannot be found and just sits cycling.
The wifi connection still works as the car satnav is able to obtain traffic updates etc and I can ssh in as the pi user but think this has no access to the minion utils? When ssh’d in and I try commands like autopi status etc it simply reports API not ready.
Currently running this from a constant current/voltage psu on the desk and have downloaded the log from /var/log/salt/minion and I can see something went wrong here
2018-10-27 08:39:01,947 [salt.loaded.int.module.cmdmod:394 ][INFO ][945] Executing command ‘vcgencmd measure_temp’ in directory ‘/root’
2018-10-27 08:39:03,839 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:08,215 [salt.utils.schedule:1376][INFO ][329] Running scheduled job: _cloud_upload
2018-10-27 08:39:09,919 [cloud_cache :110 ][INFO ][953] Uploading batch of size 13
2018-10-27 08:39:10,506 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:16,041 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:21,449 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:22,821 [messaging :518 ][INFO ][739] Triggering event with tag ‘engine/running’: {}
2018-10-27 08:39:26,949 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:32,309 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:37,732 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:43,208 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:48,680 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:54,136 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:39:59,639 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:40:00,211 [salt.utils.schedule:1376][INFO ][329] Running scheduled job: RPi Temperature
2018-10-27 08:40:01,174 [messaging :518 ][INFO ][739] Triggering event with tag ‘engine/stopped’: {}
2018-10-27 08:40:02,278 [salt.loaded.int.module.cmdmod:394 ][INFO ][957] Executing command ‘vcgencmd measure_temp’ in directory ‘/root’
2018-10-27 08:40:03,693 [messaging :518 ][INFO ][739] Triggering event with tag ‘battery/charging_slow’: {‘voltage’: 13.2, ‘level’: 100}
2018-10-27 08:40:04,111 [salt.utils.schedule:575 ][INFO ][329] Added new job _sleep_timer/engine_stopped to scheduler
2018-10-27 08:40:05,341 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:40:08,213 [salt.utils.schedule:1376][INFO ][329] Running scheduled job: _cloud_upload
2018-10-27 08:40:08,664 [messaging :518 ][INFO ][739] Triggering event with tag ‘battery/discharging’: {‘voltage’: 12.8, ‘level’: 100}
2018-10-27 08:40:09,671 [cloud_cache :110 ][INFO ][965] Uploading batch of size 11
2018-10-27 08:40:11,014 [salt.loaded.ext.engines.tracking_manager:131 ][WARNING ][731] No GNSS location available: {‘reason’: ‘Not fixed now’, ‘type’: ‘CME’}
2018-10-27 08:40:11,255 [cloud_cache :129 ][ERROR ][965] Failed to upload batch
Traceback (most recent call last):
File “/var/cache/salt/minion/extmods/utils/cloud_cache.py”, line 118, in upload_pending_batch
res = requests.post(url, data=payload, headers=headers)
File “/usr/lib/python2.7/dist-packages/requests/api.py”, line 110, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python2.7/dist-packages/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/adapters.py”, line 497, in send
raise SSLError(e, request=request)
SSLError: (“bad handshake: SysCallError(104, ‘ECONNRESET’)”,)
2018-10-27 08:40:11,309 [salt.utils.schedule:927 ][ERROR ][965] Unhandled exception running cloud.upload_batch
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/salt/utils/schedule.py”, line 894, in handle_func
ret[‘return’] = self.functions[func](*args, **kwargs)
File “/var/cache/salt/minion/extmods/modules/cloud.py”, line 39, in upload_batch
batch = cloud_cache.upload_pending_batch(_options(), url, auth_token)
File “/var/cache/salt/minion/extmods/utils/cloud_cache.py”, line 118, in upload_pending_batch
res = requests.post(url, data=payload, headers=headers)
File “/usr/lib/python2.7/dist-packages/requests/api.py”, line 110, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python2.7/dist-packages/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/adapters.py”, line 497, in send
raise SSLError(e, request=request)
SSLError: (“bad handshake: SysCallError(104, ‘ECONNRESET’)”,)
For info the wifi connection is intermittent, as the ssh connection gets closed regularly I can mail the whole log if required its around 3mb but any thoughts?
Your environment
- anyway I can find this without the dashboard? which is not working
Steps to reproduce
No idea - sorry it just stopped
Expected behaviour
Normal access via my.autopi.io and regular upload of data
Actual behaviour
No upload, no communication nor “life”
Do’s & dont’s
- Do not write your unit-id anywhere.