Error when upgrading from 1.3.12 to 1.4.2 via "Update Now" button

What is the problem?

am running OctoPi on a Raspberry Pi 3 . I've been running it for a couple of months now. When I got the notification about 1.4.0, I clicked "Update now" but this time I got an error.

Complete Logs

2020-08-19 05:43:00,114 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.4.2...
2020-08-19 05:43:00,147 - octoprint.util.pip - ERROR - Error while trying to run command /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/foosel/OctoPrint/archive/1.4.2.zip --no-cache-dir
2020-08-19 05:43:00,149 - octoprint.plugins.softwareupdate - ERROR - Update of octoprint can not be performed, please also check plugin_softwareupdate_console.log for possible causes of this
Traceback (most recent call last):
File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/init.py", line 987, in _perform_update
update_result = updater.perform_update(target, populated_check, target_version, log_cb=self._log, online=online)
File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/updaters/pip.py", line 116, in perform_update
raise exceptions.UpdateError("Error while executing pip install", (stdout, stderr))
UpdateError
2020-08-19 05:43:00,581 - octoprint.plugins.tracking - INFO - Sent tracking event update_failed, payload: {'to_version': u'1.4.2', 'from_version': u'1.3.12', 'target': 'octoprint'}
2020-08-19 05:48:44,228 - octoprint.server.heartbeat - INFO - Server heartbeat <3

I tried to update the TheSpaghettiDetective pluggin and I get same error:

2020-08-19 05:39:12,956 - octoprint.plugins.softwareupdate - INFO - Starting update of TheSpaghettiDetective to 1.3.3...
2020-08-19 05:39:12,996 - octoprint.util.pip - ERROR - Error while trying to run command /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/TheSpaghettiDetective/OctoPrint-TheSpaghettiDetective/archive/1.3.3.zip --no-cache-dir
2020-08-19 05:39:12,996 - octoprint.plugins.softwareupdate - ERROR - Update of TheSpaghettiDetective can not be performed, please also check plugin_softwareupdate_console.log for possible causes of this
Traceback (most recent call last):
File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/init.py", line 987, in _perform_update
update_result = updater.perform_update(target, populated_check, target_version, log_cb=self._log, online=online)
File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/updaters/pip.py", line 116, in perform_update
raise exceptions.UpdateError("Error while executing pip install", (stdout, stderr))
UpdateError/small>

Thanks,

The (partial) log contains this hint:

Please post the plugin_softwareupdate_console.log, preferably as a link, not pasted into the thread.

2020-08-19 05:39:12,930 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/foosel/OctoPrint/archive/1.4.2.zip --no-cache-dir
2020-08-19 05:39:12,962 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/TheSpaghettiDetective/OctoPrint-TheSpaghettiDetective/archive/1.3.3.zip --no-cache-dir
2020-08-19 05:42:47,955 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/TheSpaghettiDetective/OctoPrint-TheSpaghettiDetective/archive/1.3.3.zip --no-cache-dir
2020-08-19 05:43:00,127 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/foosel/OctoPrint/archive/1.4.2.zip --no-cache-dir<\small>

octoprint (2).log (181.8 KB) plugin_softwareupdate_console (1).log (738 Bytes)

Hi,

I could not figure out from the log was it wrong .
Anyone have a idea ?

Try to update it via ssh.
Log in and run

~/oprint/bin/pip install --force-reinstall OctoPrint==1.4.2
sudo service octoprint restart

Thanks it worked.
Is got that warning
WARNING: You are using pip version 19.3.1; however, version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Should I update pip ?

Thanks for the help.

Updating pip is not necessary, but should not do harm either.

1 Like