Skip to content
Fixes an issue in OctoPrint 1.2.7 that prevents updating
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
octoprint_updatefix127 Only show notification and dialog if admin Dec 7, 2015
.editorconfig Initial commit Dec 2, 2015
.gitignore Initial commit Dec 2, 2015
MANIFEST.in Initial commit Dec 2, 2015
README.md Some changes to the README, mostly better phrasing Dec 2, 2015
requirements.txt Initial commit Dec 2, 2015
setup.py Initial commit Dec 2, 2015

README.md

OctoPrint Updatefix 1.2.7

This plugin fixes an issue in OctoPrint 1.2.7's software updater, causing updates of OctoPrint itself to fail.

The plugin monkey-patches the bug causing this issue with the same fix that is present in 1.2.8, but only for the affected version 1.2.7. Once version 1.2.8 (which ships with the fix) is detected, the plugin uninstalls itself during startup utilizing the plugin manager.

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/OctoPrint/OctoPrint-Updatefix-1.2.7/archive/master.zip

How does it work?

After installing the plugin and restarting, the plugin will check if you are running OctoPrint version 1.2.7 or 1.2.8.

If you are running 1.2.7, it will apply the necessary fix to the loaded class of the Software Update Plugin during start-up of the server (via so called monkey patching). Once your server has started you may then update as usual.

If the plugin detects version 1.2.8 as running, it will uninstall itself and restart the server (since it's not necessary any more).

If you are running neither 1.2.7 nor 1.2.8, the plugin will not do anything but change its name and description to hint at the fact that it should be uninstalled.

Usually the process will look like the following:

  1. You are running 1.2.7.
  2. You install the plugin and are prompted to restart the server.
  3. You restart the server.
  4. You perform the update to 1.2.8. The server is restarted.
  5. The plugin detects you are now running 1.2.8. It uninstalls itself and restarts the server.
  6. You have a clean 1.2.8 install.
You can’t perform that action at this time.