Can't Update OctoPrint 1.4.0

What is the problem?

I can't update OctoPi 0.17.0 with OctoPrint 1.4.0 to a new version

What did you already try to solve it?

I tryed the integrated Update via the Webinterface and

~/oprint/bin/pip install --force-reinstall OctoPrint==1.10.2 --no-cache-dir

via SSH.

Have you tried running in safe mode?

yes

Did running in safe mode solve the problem?

no

Systeminfo Bundle

Octoprint 1.4.0 does not support Systeminfo Bundles

Additional information about your setup

OctoPrint 1.4.0
OctoPi 0.17.0
running on a RaspberryPi 3

This is the error i got on the shell:

pi@octopi:~ $ ~/oprint/bin/pip install --force-reinstall OctoPrint==1.10.2 --no-cache-dir
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at Release process - pip documentation v24.3.dev0
Looking in indexes: Simple index, piwheels - Simple index
ERROR: Could not find a version that satisfies the requirement OctoPrint==1.10.2 (from versions: 1.3.11, 1.3.12rc1, 1.3.12rc3, 1.3.12, 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0rc5, 1.4.0rc6, 1.4.0, 1.4.1rc1, 1.4.1rc2, 1.4.1rc3, 1.4.1rc4, 1.4.1, 1.4.2, 1.5.0rc1, 1.5.0rc2, 1.5.0rc3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.6.0rc1, 1.6.0rc2, 1.6.0rc3, 1.6.0, 1.6.1, 1.7.0rc1, 1.7.0rc2, 1.7.0rc3, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for OctoPrint==1.10.2
WARNING: You are using pip version 19.3.1; however, version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I would recommend the following process, which has always worked for me:

  • Make a backup of your configuration in your current OctoPrint and download that to your PC. If your backup is large with many gcode, image and perhaps timelapse files, you should create a smaller one containing just the config and no other files, as there is a size limit for the backups that can be restored via the setup assistant. You can restore the bigger backup later from the command line if that is necessary.

  • Grab the latest OctoPi image and flash it to your SD card, see the instructions on the OctoPrint homepage for the necessary steps.

  • Boot your Pi with the newly flashed SD card.

  • During setup with the assistant and the web interface you can load the backup you created earlier and restore the config from your previous setup, including printer settings and plugins.

Yeah... that's what I was trying to avoid.
Thanks for the reply, will go that route if nothing else comes up.

If you consider the time and effort spent solving all the problems with version incompatibilities across several OctoPi/OctoPrint versions the process via re-flash and backup restore is actually faster, I think. :slight_smile:

Pretty sure you'r right.
I was just hoping for someone to be like "oh yeah we know about that. ssh into that thing and do
sh ~/.supersecret/adminscripts/donttouchme/fix_all.sh"

The script here should be compatible with OctoPi 0.17.

I would still recommend creating the backups as mentioned and have those downloaded prior to the process. The script can be reverted, but better safe than sorry.

That worked like a charm! Thank you!