Dosn't start after Update 1.9.2

What is the problem?

The octoprint service won't start.

What did you already try to solve it?

Tried restarting the service

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No

Systeminfo Bundle

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

I get this error: 2023-10-05 06:02:51,301 - octoprint.startup - CRITICAL - Could not initialize settings manager: Argument 'bases' has incorrect type (expected list, got tuple)
2023-10-05 06:02:51,301 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint.
Could not initialize settings manager: Argument 'bases' has incorrect type (expected list, got tuple)
There was a fatal error starting up OctoPrint.

Rolling back to 1.8.6 fixes the problem.

3 Likes

Same here, just did an update to 1.9.2 and the service doesn't start anymore.

Maybe related to:

Okt 05 06:02:39 octopi systemd[1]: Started The snappy web interface for your 3D printer.
Okt 05 06:02:39 octopi octoprint[933]: 2023-10-05 06:02:39,624 - octoprint.startup - CRITICAL - Could not initialize settings manager: Argument 'bases' has incorrect type (expected list, got tuple)
Okt 05 06:02:39 octopi octoprint[933]: 2023-10-05 06:02:39,624 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint.
Okt 05 06:02:39 octopi octoprint[933]: Could not initialize settings manager: Argument 'bases' has incorrect type (expected list, got tuple)
Okt 05 06:02:39 octopi octoprint[933]: There was a fatal error starting up OctoPrint.
Okt 05 06:02:39 octopi systemd[1]: octoprint.service: Succeeded.

Any help is highliy appreciated since Octoprint doesn't work anymore.
Tanks a lot!

How could I do a rollback on the console?

What is the problem?

Octoprint doen't start after Update

What did you already try to solve it?

i try the things shown in the browser

  1. Login via ssh und try "ps -ef | grep -i octoprint | grep -i python" -> no answer
  2. ~/.octoprint/logs/octoprint.log -> no error
  3. sudo service ocotoprint restart
  4. reboot

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No

Additional information about your setup

OctoPrint: 1.9.2
OctoPi: 0.18.0
Creality CR6, Default Firmeware
Browser: Chrome, latest Version
Operating System: MS Win 11

************************* octoprint.log *****************************
2023-10-05 09:36:40,943 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2023-10-05 09:36:41,010 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2023-10-05 09:36:41,010 - octoprint.server - INFO - OctoPrint 1.8.7
2023-10-05 09:36:41,013 - octoprint.plugin.core - INFO - 18 plugin(s) registered with the system:
| Action Command Notification Support (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/action_command_notification
| Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/action_command_prompt
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/announcements
| Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/tracking
| Application Keys Plugin (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/appkeys
| Backup & Restore (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/backup
| Core Wizard (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/corewizard
| Discovery (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/discovery
| Error Tracking (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/errortracking
| Event Manager (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/eventmanager
| File Check (2021.2.23) (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint_file_check
| Firmware Check (2021.10.11) (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint_firmware_check
| GCode Viewer (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/gcodeviewer
| Logging (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/logging
| Pi Support Plugin (2022.6.13) (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint_pi_support
| Plugin Manager (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/pluginmanager
| Software Update (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/softwareupdate
| Virtual Printer (bundled) = /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins/virtual_printer
Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2023-10-05 09:36:41,045 - octoprint.environment - INFO - Detected environment is Python 3.7.3 under Linux (linux). Details:
| hardware:
| cores: 4
| freq: 1400.0
| ram: 915718144
| os:
| bits: 32
| id: linux
| platform: linux
| plugins:
| pi_support:
| model: Raspberry Pi 3 Model B Plus Rev 1.3
| octopi_version: 0.18.0
| throttle_check_enabled: true
| throttle_check_functional: true
| throttle_state: '0x0'
| python:
| pip: 20.3.3
| version: 3.7.3
| virtualenv: /home/pi/oprint
2023-10-05 09:36:41,046 - octoprint.server - INFO - ------------------------------------------------------------------------------
2023-10-05 09:37:16,064 - octoprint.plugins.softwareupdate - INFO - Fetching check overlays from https://plugins.octoprint.org/update_check_overlay.json
2023-10-05 09:39:32,056 - octoprint.filemanager.analysis - INFO - Analysis of entry local:Romy/Anime/CCR6SE_SATORU ML.gcode finished, needed 185.07s
2023-10-05 09:39:35,736 - octoprint.server.preemptive_cache - INFO - ... done in 182.76s
2023-10-05 09:50:09,046 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.49.176
2023-10-05 09:50:20,162 - octoprint.access.users - INFO - Logged in user: lv_admin
2023-10-05 09:50:20,165 - octoprint.server.api - INFO - Actively logging in user lv_admin from ::ffff:192.168.49.176
2023-10-05 09:50:20,244 - octoprint.server.util.flask - INFO - Passively logging in user lv_admin from ::ffff:192.168.49.176
2023-10-05 09:50:20,245 - octoprint.access.users - INFO - Logged in user: lv_admin
2023-10-05 09:50:20,323 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.49.176
2023-10-05 09:50:21,272 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.49.176
2023-10-05 09:50:21,303 - octoprint.server.util.flask - INFO - Passively logging in user lv_admin from ::ffff:192.168.49.176
2023-10-05 09:50:21,303 - octoprint.access.users - INFO - Logged in user: lv_admin
2023-10-05 09:50:23,004 - octoprint.server.util.sockjs - INFO - User lv_admin logged in on the socket from client ::ffff:192.168.49.176
###...(no Links allowed)
2023-10-05 09:50:26,782 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2023-10-05 09:50:27,928 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2023-10-05 09:50:53,326 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.9.2...
2023-10-05 09:51:40,944 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2023-10-05 09:52:44,963 - octoprint.plugins.softwareupdate - INFO - Update of octoprint to 1.9.2 successful!
2023-10-05 09:52:45,025 - octoprint.plugins.softwareupdate - INFO - Starting update of pi_support to 2023.7.31...
2023-10-05 09:52:51,807 - octoprint.plugins.softwareupdate - INFO - Update of pi_support to 2023.7.31 successful!
2023-10-05 09:52:51,884 - octoprint.plugins.softwareupdate - INFO - Saved update log to disk
2023-10-05 09:52:51,905 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2023-10-05 09:52:51,909 - octoprint.plugins.softwareupdate - INFO - Restarting...
2023-10-05 09:52:52,050 - octoprint.server - INFO - Shutting down...
2023-10-05 09:52:52,769 - octoprint.server - INFO - Calling on_shutdown on plugins
2023-10-05 09:52:52,771 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2023-10-05 09:52:52,781 - octoprint.events - INFO - Event loop shut down
2023-10-05 09:52:52,836 - octoprint.server - INFO - Goodbye!
************************* octoprint.log *****************************

kindly regards,
Lars

i downgrade to the old 1.8.7 and it works fine :slight_smile:

Yeah, seems to be the same issue. To roll back: How can I revert to an older version of the OctoPrint installation on my OctoPi image?

Same issue here... about to try downgrading.

try manually running octoprint to get the actual error message. there are some known issues that might be impacting your setup and could be easily fixed. another approach is just forcing a reinstall of the latest version.

manually starting octoprint

sudo service octoprint stop
source /home/pi/oprint/bin/activate
octoprint serve

force reinstall

sudo service octoprint stop
source /home/pi/oprint/bin/activate
pip install --force-reinstall --no-cache-dir octoprint
deactivate
sudo service octoprint start

@PrintedWeezl maybe merge this one with the other issue...

1 Like

If the issue is related to Octoprint 1.9.2 failed to start on RPi. New install - #4 by Mikhail_Ryzhov then the fix mentioned there would be as follows.

sudo service octoprint stop
source /home/pi/oprint/bin/activate
pip install pydantic==1.10.12
deactivate
sudo service octoprint start

@foosel are you aware of an upstream issue?

3 Likes

No, but @PrintedWeezl just looped me in and I'll take a look on Monday.

3 Likes

This looks like the related bug: Argument 'bases' has incorrect type · Issue #7689 · pydantic/pydantic · GitHub

1 Like

Hello johnnyguitar,
thank you very much for your assistance! That link from you helped me and it worked like a charm.

Rollback to 1.9.1 didn't help either but rolling back to 1.8.7 made the system work again:

! Do this as the standard user that octoprint runs and not as root!

    ~/oprint/bin/pip install https://github.com/OctoPrint/OctoPrint/archive/1.8.7.zip
    sudo service octoprint restart

Hope that helps somebody!

johnnyguitar7 has already marked my post as solution to his 1.9.2 issue. Rather than moving backwards use that post to resolve until Gina has a chance to look and release new update.

Thanks, confirmed that this fixes my attempt to update from 1.8.x to 1.9.2

I had an identical issue after updating using the option in the notification for the new version. This solved the problem, thanks!

Will I need to undo this in any way for a future update?

Would it be helpful to provide the startup errors I got when attempting to start the service manually?

1 Like

No, the devs of pydantic are aware of the issue and @foosel will probably pin the working version for now.
That means after the next OctoPrint patch everyone will update or to or stay on the older working version of pydantic and hopefully in the future the problem will be fully resolved.

1 Like

What do you do if you can't even login after the update? I tried to ssh in, and I also connected a monitor and keyboard and tried logging in that way and after the 1.9.2 update it says my login is incorrect. It was the correct login minutes before when I logged in and used it to start the update, so why does it not work now? Did 1.9.2 trash the install completely? Am I going to have to start over completely from scratch?

Hello @SPElectronics !

You noticed this?

The login to SSH is not the same as that from the OctoPrint web interface. The default (if not set during flashing in pi imager advanced settings) is username pi and password raspberry.

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