Raspberry pi 4 & pip error : SSL error?

What is the problem?
couldnt fetch plugin on my brand new raspberry pi 4 with lastest stable octopi build

What did you already try to solve it?
reinstall twice, try to install pip manually,
try to curl https://octoprint.org/feeds/octopi.xml, https://plugins.octoprint.org and both works on my octopi

nslookup plugins.octoprint.org
Server: 192.168.42.1
Address: 192.168.42.1#53

Non-authoritative answer:
Name: plugins.octoprint.org
Address: 207.154.233.48

pi@octoprint:~/.octoprint/logs $ nslookup plugins.octoprint.org 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: plugins.octoprint.org
Address: 207.154.233.48
...

pi@octoprint:~/.octoprint/logs $ wget https://plugins.octoprint.org/plugins.json
--2019-12-17 00:12:10-- https://plugins.octoprint.org/plugins.json
Resolving plugins.octoprint.org (plugins.octoprint.org)... 207.154.233.48
Connecting to plugins.octoprint.org

(plugins.octoprint.org)|207.154.233.48|:443... connected.

HTTP request sent, awaiting response... 200 OK
Length: 123323 (120K) [application/json]
Saving to: ‘plugins.json’

plugins.json 100%[==================================================================================================================>] 120.43K --.-KB/s in 0.06s

2019-12-17 00:12:11 (1.90 MB/s) - ‘plugins.json’ saved [123323/123323]

Logs

2019-12-16 23:56:30,254 - octoprint.plugins.pluginmanager - ERROR - Could not fetch plugins from repository at https://plugins.octoprint.org/plugins.json: HTTPSConnectionPool(host='plugins.octoprint.org', p$
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 823, in _fetch_repository_from_url
    r = requests.get(repository_url, timeout=30)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='plugins.octoprint.org', port=443): Max retries exceeded with url: /plugins.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object a$
2019-12-16 23:56:30,258 - octoprint.plugins.announcements - ERROR - Could not fetch channel _important from https://octoprint.org/feeds/important.xml: HTTPSConnectionPool(host='octoprint.org', port=443): Ma$
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements/__init__.py", line 355, in _get_channel_data_from_network
    r = requests.get(url, timeout=30)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='octoprint.org', port=443): Max retries exceeded with url: /feeds/important.xml (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at$
2019-12-16 23:56:30,264 - octoprint.plugins.pluginmanager - ERROR - Could not fetch notices from `https://plugins.octoprint.org/notices.json`: HTTPSConnectionPool(host='plugins.octoprint.org', port=443): Max $
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager/__init__.py", line 891, in _fetch_notices_from_url
    r = requests.get(notices_url, timeout=30)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='plugins.octoprint.org', port=443): Max retries exceeded with url: /notices.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object a$
2019-12-16 23:56:30,267 - octoprint.plugins.announcements - ERROR - Could not fetch channel _releases from https://octoprint.org/feeds/releases.xml: HTTPSConnectionPool(host='octoprint.org', port=443): Max $
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements/__init__.py", line 355, in _get_channel_data_from_network
    r = requests.get(url, timeout=30)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='plugins.octoprint.org', port=443): Max retries exceeded with url: /feed.xml (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x$
2019-12-16 23:56:30,289 - octoprint.plugins.announcements - ERROR - Could not fetch channel _octopi from https://octoprint.org/feeds/octopi.xml: HTTPSConnectionPool(host='octoprint.org', port=443): Max retr$
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements/__init__.py", line 355, in _get_channel_data_from_network
    r = requests.get(url, timeout=30)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='octoprint.org', port=443): Max retries exceeded with url: /feeds/octopi.xml (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x$
2019-12-16 23:56:30,808 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-12-16 23:56:30,809 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-12-16 23:56:30,809 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-12-16 23:56:46,535 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 23.42ms
2019-12-16 23:56:46,563 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 8.07ms
2019-12-16 23:57:07,015 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 8.11ms
2019-12-16 23:57:07,047 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 7.99ms
2019-12-16 23:57:07,060 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 8.25ms
2019-12-16 23:57:07,073 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 8.05ms
2019-12-16 23:57:07,087 - tornado.access - WARNING - 409 GET /api/printer (::ffff:192.168.42.58) 8.44ms

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)
brand new install on the rpi4

i looks through the forum and google and couldnt find a lot of info on raspberry4 error ... i don't understand and sad!

You need octopi 0.17.0 for Pi 4 support :slight_smile:
https://storage.googleapis.com/octoprint/stable/octopi-buster-lite-0.17.0.zip

oh ? why isnt it on the main download page ? it's written Image compatible with Raspberry Pi A, B, A+, B+, 2B, 3A+, 3B, 3B+, 4B, Zero and Zero W.
where does this image come from ? thanks for your quick answer, i will try it ! and tag it has solved if that works!
thanks again :slight_smile:

Yeah that should be it.
You didn't mention what version you're using so I just wanted to make sure you got the right one.
Just flash it again - maybe something went wrong :wink:

i download it from here : https://octopi.octoprint.org/latest taken on OctoPrint.org - Download & Setup OctoPrint
but your link doesnt seems to come from the same sources, i will burn it on my sd and come back

My link is from the github of the maintainer of the octopi images

1 Like

same error ... damn i was hopeful ! i will look through the git of @guysoft
thanks for the hint anyway !

Just found this


seems like he had the same problem :slight_smile:

2 Likes

damn i suck at searching ... i'm kinda ashame, it looks indeed like the exact same error ... i will try !
Thanks a lot for your help !

and that was so simple ... i spent my evening looking through my network, configs and stuff ... and it was solved through such a simple change through the interface !

thanks a lot mate for the search since apparently i suck at it !

1 Like

You're welcome :slight_smile:

Happy printing :octopus: