Error on Update

Got an Error during Update:

2022-03-31 10:58:24,136 - octoprint.server.api.files.timings - DEBUG - Entering octoprint.server.api.files._getFileList(u'local',filter=False,recursive=True,allow_from_cache=True)...
2022-03-31 10:58:24,143 - octoprint.filemanager.storage.timings - DEBUG - Entering octoprint.filemanager.storage._list_folder...
2022-03-31 10:58:24,148 - octoprint.filemanager.storage.timings - DEBUG - Entering octoprint.filemanager.storage._list_folder...
2022-03-31 10:58:24,151 - octoprint.filemanager.storage.timings - DEBUG - octoprint.filemanager.storage._list_folder(<octoprint.filemanager.storage.LocalFileStorage object at 0x719c50d0>,u'/home/pi/.octoprint/uploads/_archive',force_refresh=False,base=u'_archive/') took 1.52ms
2022-03-31 10:58:24,152 - octoprint.filemanager.storage.timings - DEBUG - octoprint.filemanager.storage._list_folder(<octoprint.filemanager.storage.LocalFileStorage object at 0x719c50d0>,u'/home/pi/.octoprint/uploads',force_refresh=False,base=u'') took 7.79ms
2022-03-31 10:58:24,157 - octoprint.server.api.files.timings - DEBUG - octoprint.server.api.files._getFileList(u'local',filter=False,recursive=True,allow_from_cache=True) took 16.66ms
2022-03-31 10:58:24,157 - octoprint.server.api.files.timings - DEBUG - Entering octoprint.server.api.files._getFileList(u'sdcard',allow_from_cache=True)...
2022-03-31 10:58:24,158 - octoprint.server.api.files.timings - DEBUG - octoprint.server.api.files._getFileList(u'sdcard',allow_from_cache=True) took 0.38ms
2022-03-31 11:03:44,037 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 11:18:44,039 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 11:33:44,041 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 11:47:42,832 - octoprint.plugins.telegram.listener - ERROR - Setting status: Got an exception while trying to connect to telegram API: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot931488490:AAFXgN4RghuyT42C5zLwtQWsOYrLWGIAogI/getUpdates?timeout=30&offset=1 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x64e40c70>: Failed to establish a new connection: [Errno 101] Network is unreachable',)). Waiting 2 minutes before trying again.
2022-03-31 11:48:44,044 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 12:03:44,047 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 12:18:44,050 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 12:33:44,052 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 12:48:44,056 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-03-31 13:02:41,927 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json
2022-03-31 13:02:46,126 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin DeleteAfterPrint
2022-03-31 13:02:46,128 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin statefulsidebar
2022-03-31 13:02:46,130 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin logging
2022-03-31 13:02:46,134 - octoprint.server.util.flask - DEBUG - Using translation plugin folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_file_check/translations from plugin file_check for locale de
2022-03-31 13:02:46,136 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin appkeys
2022-03-31 13:02:46,137 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_prompt
2022-03-31 13:02:46,139 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin telegram
2022-03-31 13:02:46,141 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin corewizard
2022-03-31 13:02:46,145 - octoprint.server.util.flask - DEBUG - Using translation plugin folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_pi_support/translations from plugin pi_support for locale de
2022-03-31 13:02:46,147 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin filemanager
2022-03-31 13:02:46,148 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_notification
2022-03-31 13:02:46,150 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin Change_Filament
2022-03-31 13:02:46,152 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pause_for_user_event
2022-03-31 13:02:46,154 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin dropbox_timelapse
2022-03-31 13:02:46,155 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin gcodeviewer
2022-03-31 13:02:46,157 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin softwareupdate
2022-03-31 13:02:46,159 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin announcements
2022-03-31 13:02:46,161 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin PrintTimeGenius
2022-03-31 13:02:46,163 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pluginmanager
2022-03-31 13:02:46,164 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin backup
2022-03-31 13:02:46,194 - octoprint.server.util.flask - DEBUG - Using translation core folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/translations for locale de
2022-03-31 13:02:49,445 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin DeleteAfterPrint
2022-03-31 13:02:49,449 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin statefulsidebar
2022-03-31 13:02:49,452 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin logging
2022-03-31 13:02:49,458 - octoprint.server.util.flask - DEBUG - Using translation plugin folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_file_check/translations from plugin file_check for locale de
2022-03-31 13:02:49,461 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin appkeys
2022-03-31 13:02:49,464 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_prompt
2022-03-31 13:02:49,467 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin telegram
2022-03-31 13:02:49,471 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin corewizard
2022-03-31 13:02:49,478 - octoprint.server.util.flask - DEBUG - Using translation plugin folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_pi_support/translations from plugin pi_support for locale de
2022-03-31 13:02:49,482 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin filemanager
2022-03-31 13:02:49,485 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin action_command_notification
2022-03-31 13:02:49,488 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin Change_Filament
2022-03-31 13:02:49,491 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pause_for_user_event
2022-03-31 13:02:49,494 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin dropbox_timelapse
2022-03-31 13:02:49,497 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin gcodeviewer
2022-03-31 13:02:49,501 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin softwareupdate
2022-03-31 13:02:49,504 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin announcements
2022-03-31 13:02:49,508 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin PrintTimeGenius
2022-03-31 13:02:49,511 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin pluginmanager
2022-03-31 13:02:49,514 - octoprint.server.util.flask - DEBUG - No translations for locale de from plugin backup
2022-03-31 13:02:49,563 - octoprint.server.util.flask - DEBUG - Using translation core folder /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/translations for locale de
2022-03-31 13:02:49,576 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.7.3...
2022-03-31 13:03:06,305 - 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 1828, in _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 144, in perform_update
    "Error while executing pip install", (stdout, stderr)
UpdateError: Error while executing pip install
2022-03-31 13:03:06,308 - octoprint.events.fire - DEBUG - Firing event: plugin_softwareupdate_update_failed (Payload: {u'to_version': u'1.7.3', u'from_version': u'1.6.1', u'target': u'octoprint'})
2022-03-31 13:03:06,310 - octoprint.events - DEBUG - Sending action to <bound method PrinterStateConnection._onEvent of <octoprint.server.util.sockjs.PrinterStateConnection object at 0x65496bd0>>
2022-03-31 13:03:06,319 - octoprint.plugin - DEBUG - Calling on_event on action_command_notification
2022-03-31 13:03:06,320 - octoprint.plugin - DEBUG - Calling on_event on action_command_prompt
2022-03-31 13:03:06,322 - octoprint.plugin - DEBUG - Calling on_event on announcements
2022-03-31 13:03:06,328 - octoprint.plugin - DEBUG - Calling on_event on file_check
2022-03-31 13:03:06,329 - octoprint.plugin - DEBUG - Calling on_event on pluginmanager
2022-03-31 13:03:06,332 - octoprint.plugin - DEBUG - Calling on_event on softwareupdate
2022-03-31 13:03:06,333 - octoprint.plugin - DEBUG - Calling on_event on DeleteAfterPrint
2022-03-31 13:03:06,335 - octoprint.plugin - DEBUG - Calling on_event on PrintTimeGenius
2022-03-31 13:03:06,336 - octoprint.plugin - DEBUG - Calling on_event on dropbox_timelapse
2022-03-31 13:03:06,337 - octoprint.plugin - DEBUG - Calling on_event on telegram
2022-03-31 13:03:44,057 - octoprint.server.heartbeat - INFO - Server heartbeat <3

plugin_softwareupdate_console.log seems like it would be useful. When you find that file & the error, please use the search bar of the forum before posting to see if you can figure it out yourself.

2022-03-31 13:02:49,594   /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint-Legacy/archive/1.7.3.zip --no-cache-dir
2022-03-31 13:02:52,900 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2022-03-31 13:02:52,901 > Collecting https://github.com/OctoPrint/OctoPrint-Legacy/archive/1.7.3.zip
2022-03-31 13:02:53,906 > Downloading https://github.com/OctoPrint/OctoPrint-Legacy/archive/1.7.3.zip
2022-03-31 13:03:00,328 > Requirement already satisfied: OctoPrint-FileCheck>=2021.2.23 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (2021.2.23)
2022-03-31 13:03:00,329 > Collecting OctoPrint-FirmwareCheck>=2021.10.11 (from OctoPrint==1.7.3)
2022-03-31 13:03:02,817 > Downloading https://files.pythonhosted.org/packages/53/1a/6b0aa071e4c36478008041bb5ef071b1d3299c98379d51e0f323da9a374e/OctoPrint_FirmwareCheck-2021.10.11-py2.py3-none-any.whl
2022-03-31 13:03:02,819 > Requirement already satisfied: OctoPrint-PiSupport>=2021.10.28 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (2021.10.28)
2022-03-31 13:03:02,821 > Requirement already satisfied: markupsafe<2.0,>=1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.1.0)
2022-03-31 13:03:02,821 > Requirement already satisfied: markdown<3.2,>=3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (3.1.1)
2022-03-31 13:03:02,822 > Requirement already satisfied: wrapt<1.13,>=1.12.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.12.1)
2022-03-31 13:03:02,822 > Collecting flask<2,>=1.1.4 (from OctoPrint==1.7.3)
2022-03-31 13:03:02,823 > Downloading https://files.pythonhosted.org/packages/e8/6d/994208daa354f68fd89a34a8bafbeaab26fda84e7af1e35bdaed02b667e6/Flask-1.1.4-py2.py3-none-any.whl (94kB)
2022-03-31 13:03:02,823 > Collecting Jinja2<3,>=2.11.3 (from OctoPrint==1.7.3)
2022-03-31 13:03:03,827 > Downloading https://files.pythonhosted.org/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125kB)
2022-03-31 13:03:03,828 > Requirement already satisfied: Flask-Login<0.6,>=0.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (0.5.0)
2022-03-31 13:03:03,831 > Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.0.0)
2022-03-31 13:03:03,832 > Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (2.0)
2022-03-31 13:03:03,833 > Requirement already satisfied: werkzeug<2,>=1.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.0.1)
2022-03-31 13:03:03,833 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.1.0)
2022-03-31 13:03:03,834 > Requirement already satisfied: cachelib<0.2,>=0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (0.1)
2022-03-31 13:03:03,835 > Collecting PyYAML<6,>=5.4.1 (from OctoPrint==1.7.3)
2022-03-31 13:03:04,954 > Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
2022-03-31 13:03:06,278 > Installing build dependencies: started
2022-03-31 13:03:06,282 > Installing build dependencies: finished with status 'error'
2022-03-31 13:03:06,283 > Complete output from command /home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-swTYJL/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython:
2022-03-31 13:03:06,284 > Traceback (most recent call last):
2022-03-31 13:03:06,285 > File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2022-03-31 13:03:06,286 > "__main__", fname, loader, pkg_name)
2022-03-31 13:03:06,287 > File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2022-03-31 13:03:06,287 > exec code in run_globals
2022-03-31 13:03:06,288 > File "/home/pi/oprint/lib/python2.7/site-packages/pip/__main__.py", line 16, in <module>
2022-03-31 13:03:06,289 > from pip._internal import main as _main  # isort:skip # noqa
2022-03-31 13:03:06,290 > File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/__init__.py", line 19, in <module>
2022-03-31 13:03:06,291 > from pip._vendor.urllib3.exceptions import DependencyWarning
2022-03-31 13:03:06,292 > File "/home/pi/oprint/lib/python2.7/site-packages/pip/_vendor/urllib3/__init__.py", line 26, in <module>
2022-03-31 13:03:06,293 > from logging import NullHandler
2022-03-31 13:03:06,294 > ImportError: cannot import name NullHandler
2022-03-31 13:03:06,294 > 
2022-03-31 13:03:06,295 > ----------------------------------------
2022-03-31 13:03:06,300 ! Command "/home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-swTYJL/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython" failed with error code 1 in None

NullHandler?

installed the log-cleaner, now it came further, but not finished

Exception:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
status = self.run(options, args)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
session=session, autobuilding=True
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 886, in build
assert have_directory_for_build
AssertionError
Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte konsultiere <code>octoprint.log</code> und <code>plugin_softwareupdate_console.log</code> für Details.
2022-03-31 14:59:26,978 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.7.3...
2022-03-31 14:59:28,927 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2022-03-31 14:59:28,929 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2022-03-31 14:59:28,930 - octoprint.util.pip - INFO - ==> pip ok -> yes
2022-03-31 15:01:04,573 - 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 1828, in _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 144, in perform_update
    "Error while executing pip install", (stdout, stderr)
UpdateError: Error while executing pip install
2022-03-31 15:01:03,743 > Downloading https://files.pythonhosted.org/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl
2022-03-31 15:01:04,566 ! Exception:
2022-03-31 15:01:04,567 ! Traceback (most recent call last):
2022-03-31 15:01:04,568 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
2022-03-31 15:01:04,568 ! status = self.run(options, args)
2022-03-31 15:01:04,569 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
2022-03-31 15:01:04,569 ! session=session, autobuilding=True
2022-03-31 15:01:04,570 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 886, in build
2022-03-31 15:01:04,570 ! assert have_directory_for_build
2022-03-31 15:01:04,571 ! AssertionError

:slight_smile:

1 Like

I know, I did

thinking of updating python from 2.7 ? how do I do that?

Not sure if it helps with your problem, but that's how you do it

1 Like

The FAQ explains all the available options, the blog post is getting quite old now:

1 Like

made a new image with Raspi Imager and settings shown in the post
after booting I see the version 1.7.3 ?

Is that a question/problem? That's exactly as expected.

was thinking it is now 0.18 and pyton 3 ?

how do I get to 0.18?

The OS version you have installed is OctoPi 0.18. OctoPrint is 1.7.3. Look in the bottom left corner of the UI.

1 Like

yes, octopi
so I do not get it, what is the difference?

Octopi is the complete build for the SD card. Has the Raspberry pi OS and all supporting packages. Octoprint is the application that runs. So latest Octopi build is 0.18. It has the latest octoprint in it, which is version 1.7.3

Perfect, THX! running!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.