Network error while checking for updates


#1

What is the problem?
Software update gives this error on every item
What did you already try to solve it?
Manual update, pip re install, reflash of SD, change of DNS
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)
Octpi 0.14
Updated to dev -OctoPrint: 1.4.0.dev806+g03d421c trying to solve issue with no help
Pi 3
Network cable plugged directly into main router

All functions work perfectly including accessing Octoprint from outside the network. Installing plugins works perfectly.


#2

What error? Also please share your logs, both the application log and the software update log. See


#3

The error is - Network error while checking for updates, thats exactly what it says on every item. But when you hit check for updates the box pops up and says up to date but they are not.


#4

There's no way to help you unless you share your logs.


#5

I am trying to upload the log but it wont let me I am looking for a alternative upload service


#6

https://drive.google.com/file/d/1YxihGkIl6jSGAziPHVLoA1-KTHQ9QFkU/view?usp=sharing


#7

the only log i see for software update is blank when you open it, is there any other log you would want other then the main one?


#8

Looks like it isn't even trying to start the software update because it's already falling on its face while looking for updates.

Since it requires an SSL connection to the Github servers to work for that, I suggest to check item 1 and 3 here:

but instead of testing if you can reach plugins.octoprint.org to test if you can reach api.github.com. Also check and provide what output a

~/oprint/bin/python -c "import requests; r=requests.get('https://api.github.com'); print(repr(r))"

produces.


#9

Set time to UTC and verified time

Pinging all three locations come out good

pi@octopi:~ $ pi@octopi:~ $ ~/oprint/bin/python -c "import requests; r=requests.get('https://api.github.com'); print(repr(r))"
-bash: pi@octopi:~: command not found
pi@octopi:~ $ Traceback (most recent call last):
-bash: syntax error near unexpected token `most'
pi@octopi:~ $   File "<string>", line 1, in <module>
-bash: syntax error near unexpected token `newline'
pi@octopi:~ $   File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/api.py", line 72, in get
-bash: File: command not found
pi@octopi:~ $     return request('get', url, params=params, **kwargs)
-bash: syntax error near unexpected token `('
pi@octopi:~ $   File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/api.py", line 58, in request
-bash: File: command not found
pi@octopi:~ $     return session.request(method=method, url=url, **kwargs)
-bash: syntax error near unexpected token `('
pi@octopi:~ $   File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 508, in request
-bash: File: command not found
pi@octopi:~ $     resp = self.send(prep, **send_kwargs)
-bash: syntax error near unexpected token `('
pi@octopi:~ $   File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 618, in send
-bash: File: command not found
pi@octopi:~ $     r = adapter.send(request, **kwargs)
-bash: syntax error near unexpected token `('
pi@octopi:~ $   File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/adapters.py", line 506, in send
-bash: File: command not found
pi@octopi:~ $     raise SSLError(e, request=request)
-bash: syntax error near unexpected token `('
pi@octopi:~ $ requests.exceptions.SSLError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))
-bash: syntax error near unexpected token `('

#10
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))

You are definitely getting an SSL certificate validation error though, just as I feared. If the date and time are indeed correct then I'm unsure right now how best to narrow the cause of this down further. Maybe someone else has an idea.


#11

Yha i just read that at the bottom, at least i am closer to the issue


#12

Got it - It was a DNS error on the Pi, I ran int the same issue on a Pi running Pi-Star on a friend of mines network. Even tho Octoprint's connectivity setting is checking 8.8.8.8 it was using 192.168.1.1 and falling flat on it's face.

I did the following to it

I edited

/etc/network/interfaces

to add

dns-nameservers 8.8.4.4 208.67.222.222

And software update is working now

running your command above now equals

<Response [200]>

I think it is a Netgear router issue with Raspberry Pi's since his issue started when he changed to one and I am running the same model since last year.


#13

Perfect! Don't forget to mark your answer as the solution so others facing the same issue might find it easily.