Cannot update Plugins

What is the problem?

When connecting to the web interface I am told that there are updates for two plugins (Firmware Check and Pi Support), I click on "Install" and get the following output:

> Aktualisiere gerade, bitte warten.
> ++++++++++++++++++++++++++++++++++++++++++++++++
> Aktualisiere Firmware Check Plugin auf 2021.5.31
> ++++++++++++++++++++++++++++++++++++++++++++++++
> /opt/OctoPrint/bin/python -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/2021.5.31.zip --no-cache-dir
> Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
> Collecting https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/2021.5.31.zip
> Downloading https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/2021.5.31.zip (67 kB)
> WARNING: Ignoring invalid distribution -ctoprint-pisupport (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-firmwarecheck (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-pisupport (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-firmwarecheck (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-pisupport (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-firmwarecheck (/opt/OctoPrint/lib/python3.7/site-packages)
> ++++++++++++++++++++++++++++++++++++++++++++
> Aktualisiere Pi Support Plugin auf 2021.6.14
> ++++++++++++++++++++++++++++++++++++++++++++
> /opt/OctoPrint/bin/python -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint-PiSupport/archive/2021.6.14.zip --no-cache-dir
> Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
> Collecting https://github.com/OctoPrint/OctoPrint-PiSupport/archive/2021.6.14.zip
> WARNING: Ignoring invalid distribution -ctoprint-pisupport (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-firmwarecheck (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-pisupport (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-firmwarecheck (/opt/OctoPrint/lib/python3.7/site-packages)
> Downloading https://github.com/OctoPrint/OctoPrint-PiSupport/archive/2021.6.14.zip (53 kB)
> WARNING: Ignoring invalid distribution -ctoprint-pisupport (/opt/OctoPrint/lib/python3.7/site-packages)
> WARNING: Ignoring invalid distribution -ctoprint-firmwarecheck (/opt/OctoPrint/lib/python3.7/site-packages)
> Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint jetzt neu.

After restart of OctoPrint it reports the same two plugins, so I assume that they did not get installed

What did you already try to solve it?

Reboot the Pi, install the plugins with the shown command line on the Pi directly, also using "sudo".

Have you tried running in safe mode?

No, I do not know of a "Safe Mode".

Did running in safe mode solve the problem?

No Idea

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

browser.user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15
connectivity.connection_check: 172.28.0.225:53
connectivity.connection_ok: true
connectivity.enabled: true
connectivity.online: true
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: true
env.hardware.cores: 4
env.hardware.freq: 1400
env.hardware.ram: 969105408
env.os.bits: 32
env.os.id: linux
env.os.platform: linux
env.plugins.pi_support.model: Raspberry Pi 3 Model B Plus Rev 1.3
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 21.1.2
env.python.version: 3.7.3
env.python.virtualenv: true
octoprint.safe_mode: false
octoprint.version: 1.6.1
systeminfo.generator: systemapi

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

octoprint.log (59.4 KB)
plugin_softwareupdate_console.log (9.2 KB)

Corruption in the install, this is a bug with pip, Python's package manager as far as I know. Caused by an incomplete installation somewhere if I remember right, but that's not guaranteed... Try and uninstall them, or remove the offending packages manually (warning - this shouldn't break things, but make sure you have a backup first).

/opt/OctoPrint/bin/pip uninstall -ctoprint-pisupport

&

/opt/OctoPrint/bin/pip uninstall -ctoprint-firmwarecheck

If those error, try removing /opt/OctoPrint/lib/python3.7/site-packages/-ctoprint-pisupport manually - note it sometimes has the character ~ instead of - here, so maybe /opt/OctoPrint/lib/python3.7/site-packages/~ctoprint-pisupport.

Try also reinstalling OctoPrint (this may take a minute, there's a number of dependencies)

/opt/OctoPrint/bin/pip install --force-reinstall --no-cache-dir OctoPrint
1 Like

Thanks for responding, that was not the problem I had.

I figured it out now: As I followed your instruction to manually delete the plugins, I discovered that there where two temporary files which were named very similar (not the same as the Plugin), that were owned by "root" and so could not be deleted by the update manager.
I removed those two files and after that, the updater runs without any problems... so the issue can be closed.