SSL Error after upgrading packages

Hello,

my ground station does not connect to the network any longer.
I think the reason is that I upgraded packages using apt-get.
I am using the Raspbian image. I get the following error:

Jul 16 16:59:31 raspberrypi satnogs-client[562]: 2018-07-16 16:59:31,430 - apscheduler.executors.default - ERROR - Job “get_jobs (trigger: interval[0:01:00], next run at: 2018-07-16 17:00:31 UTC)” raised an exception
Jul 16 16:59:31 raspberrypi satnogs-client[562]: Traceback (most recent call last):
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/apscheduler/executors/base.py”, line 125, in run_job
Jul 16 16:59:31 raspberrypi satnogs-client[562]: retval = job.func(*job.args, **job.kwargs)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/satnogsclient/scheduler/tasks.py”, line 175, in get_jobs
Jul 16 16:59:31 raspberrypi satnogs-client[562]: verify=settings.SATNOGS_VERIFY_SSL, timeout=45)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/requests/api.py”, line 72, in get
Jul 16 16:59:31 raspberrypi satnogs-client[562]: return request(‘get’, url, params=params, **kwargs)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/requests/api.py”, line 58, in request
Jul 16 16:59:31 raspberrypi satnogs-client[562]: return session.request(method=method, url=url, **kwargs)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/requests/sessions.py”, line 508, in request
Jul 16 16:59:31 raspberrypi satnogs-client[562]: resp = self.send(prep, **send_kwargs)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/requests/sessions.py”, line 618, in send
Jul 16 16:59:31 raspberrypi satnogs-client[562]: r = adapter.send(request, **kwargs)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/requests/adapters.py”, line 506, in send
Jul 16 16:59:31 raspberrypi satnogs-client[562]: raise SSLError(e, request=request)
Jul 16 16:59:31 raspberrypi satnogs-client[562]: SSLError: HTTPSConnectionPool(host=‘network-dev.satnogs.org’, port=443): Max retries exceeded with url: /api/jobs/?ground_station=233 (Caused by SSLError(SSLError(“bad handshake: Error([(’’, ‘osrandom_rand_bytes’, ‘getrandom() initialization failed.’)],)”,),))

Any help is appreciated. Thanks!

1 Like

This problem is being discussed at https://gitlab.com/librespacefoundation/satnogs/satnogs-client-ansible/issues/29. No permanent solution yet, but the solution in the mean time is to restart satnogs-client after reboot with sudo service satnogs-client restart.

I forgot to check the issues on gitlab for this error.
At first restarting the service didn’t help. Then I disabled he SSL verification which helped. After reenabling SSL the connection seems to work anyway. Strange behaviour :expressionless:

Thanks for your help!