How can I revert to an older version of the OctoPrint installation on my OctoPi image?

:spiral_notepad: Note

The following assumes you are tracking releases (the default) and not git commits. If you are doing the latter, please refer to the note at the end of this article.

You'll first need to ssh into your Pi or optionally connect it to an external keyboard and monitor and open a command line terminal.

:warning: Warning

Do not use sudo for the pip command below!

If you need sudo in order to update OctoPrint, you broke something on your OctoPi installation (probably by using sudo accidentally earlier) and you need to fix your permissions, not just blindly put sudo in front of commands until stuff works.

  1. ~/oprint/bin/pip install<old_version>.zip
  2. sudo service octoprint restart

Replace <old_version> above by the version you want to downgrade to, e.g. 1.3.6.

You'll want to click "Ignore" on the update notification. If you want to update to the current OctoPrint version at a later date again, you can do so via the Software Update plugin in the Settings dialog or manually.

If you are tracking git commits instead of releases, you'll instead want to modify your checked out copy and install that:

cd ~/OctoPrint
source ~/oprint/bin/activate
git reset --hard <old_version>
python clean
pip install .
sudo service octoprint restart
1 Like