Plugin repository unreachable

What is the problem?
One of my Octopi instances can no longer contact the repository

What did you already try to solve it?
Tried the connectivity check - ok
ssh into pi and try to ping a few places - ok, dns lookup ok

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)
Various plugins installed. Just stopped working, maybe after I uninstalled a plugin. Not really sure.

Thanks

That's very little data to go on. Perhaps a log?

Sorry for the lack of info.

I have looked through some of the logs and it seems to relate to this ssl error:

2019-01-13 17:57:14,926 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "Home"' for _http._tcp
2019-01-13 17:57:14,942 - octoprint.plugins.pluginmanager - ERROR - Could not fetch plugins from repository at https://plugins.octoprint.org/plugins.json: HTTPSConnectionPool(host='plugins.octoprint.org', port=443): Max retries exceeded with url: /plugins.json (Caused by SSLError(SSLError("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",),))

Thanks

If it's happening now, or next time it happens, try testing it from the shell:

curl --head https://plugins.octoprint.org/plugins.json

Also share the IP address(es) you get for that host, eg using host or nslookup.

Info below. Thanks

plugins.octoprint.org has address 207.154.233.48

Curl:

HTTP/1.1 200 OK
Server: nginx
Date: Mon, 21 Jan 2019 20:06:35 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 92913
Connection: keep-alive
Vary: Accept-Encoding
Last-Modified: Thu, 10 Jan 2019 09:05:15 GMT
ETag: "5c370acb-16af1"
Access-Control-Allow-Origin: *
Expires: Mon, 21 Jan 2019 20:16:35 GMT
Cache-Control: max-age=600
X-GitHub-Request-Id: 333C:7286:8898AE:BABD05:5C462649
Accept-Ranges: bytes
Via: 1.1 varnish
Age: 0
X-Served-By: cache-fra19133-FRA
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1548101196.830660,VS0,VE111
Vary: Accept-Encoding
X-Fastly-Request-ID: 9387ea66e261a808158af65c4663e02055451d6a

This is while it was failing? No errors.

Yes. From what I can tell it is something to do with a dependency that may have been removed or damaged when I uninstalled a plugin. I am just going to re imaged the card as it will be easy
Thanks