Octoprint not starting after Trixie upgrade

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version

    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=19
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN

    trixie

  • Kernel version | uname --all

    Linux DietPi 6.12.57-current-rockchip64 #1 SMP PREEMPT Sun Nov 2 13:15:23 UTC 2025 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture

    arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

    ROCK 4 (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)

    USB-C power supply

  • SD card used | (EG: SanDisk ultra)

    Onboard EMMC

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)

    Octoprint

  • Was the software title installed freshly or updated/migrated?

    Octoprint is the same, OS upgraded from bookworm to trixie

  • Can this issue be replicated on a fresh installation of DietPi?

    Not tried…

    ← If you sent a “dietpi-bugreport”, please paste the ID here →

  • Bug report ID | echo $G_HW_UUID

    323a7fd9-08f7-441b-9787-0fb6743c0df7

Steps to reproduce

  1. Have a working dietpi and Octoprint install on bookworm (with no available updates)

  2. Upgrade OS to trixie by running

    sudo bash -c “$(curl -sSf ‘https://raw.githubusercontent.com/MichaIng/DietPi/dev/.meta/dietpi-trixie-upgrade’)”

  3. Follow onscreen instructions and assure no errors are present

  4. Wait until ‘You have successfully been upgraded to Trixie’ (or similar) message appears and all install steps are done.

  5. Reboot device

  6. Octoprint won’t start

Expected behaviour

  • Octoprint starts as usual automatically after a (re)boot or after manually running octoprint serve

Actual behaviour

  • Octoprint is not started automatically, and starting it manually throws an error.

Extra details

  • the following error is shown:

    root@DietPi:~# octoprint serve
    2025-11-23 23:21:57,341 - octoprint.startup - CRITICAL - There was a fatal error initializing OctoPrint:
    Traceback (most recent call last):
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/init.py”, line 96, in init_platform
    settings = init_settings(basedir, configfile, overlays=overlays)
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/init.py”, line 209, in init_settings
    from octoprint.settings import InvalidSettings, settings
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/settings/init.py”, line 36, in
    from octoprint.schema.config import Config
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/schema/config/init.py”, line 7, in
    from octoprint.vendor.with_attrs_docs import with_attrs_docs
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/vendor/with_attrs_docs.py”, line 7, in
    from .class_doc import extract_docs_from_cls_obj
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/vendor/class_doc.py”, line 14, in
    import more_itertools as mitertools
    ModuleNotFoundError: No module named ‘more_itertools’

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/cli/server.py”, line 112, in run_server
    components = init_platform(
    basedir,
    …<10 lines>…
    disable_color=disable_color,
    )
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/init.py”, line 98, in init_platform
    raise FatalStartupError(“Could not initialize settings manager”, cause=ex) from ex
    octoprint.FatalStartupError: Could not initialize settings manager: No module named ‘more_itertools’
    Traceback (most recent call last):
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/init.py”, line 96, in init_platform
    settings = init_settings(basedir, configfile, overlays=overlays)
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/init.py”, line 209, in init_settings
    from octoprint.settings import InvalidSettings, settings
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/settings/init.py”, line 36, in
    from octoprint.schema.config import Config
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/schema/config/init.py”, line 7, in
    from octoprint.vendor.with_attrs_docs import with_attrs_docs
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/vendor/with_attrs_docs.py”, line 7, in
    from .class_doc import extract_docs_from_cls_obj
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/vendor/class_doc.py”, line 14, in
    import more_itertools as mitertools
    ModuleNotFoundError: No module named ‘more_itertools’

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/cli/server.py”, line 112, in run_server
    components = init_platform(
    basedir,
    …<10 lines>…
    disable_color=disable_color,
    )
    File “/mnt/dietpi_userdata/octoprint/.local/lib/python3.13/site-packages/octoprint/init.py”, line 98, in init_platform
    raise FatalStartupError(“Could not initialize settings manager”, cause=ex) from ex
    octoprint.FatalStartupError: Could not initialize settings manager: No module named ‘more_itertools’

    There was a fatal error initializing OctoPrint: Could not initialize settings manager: No module named ‘more_itertools’

Thanks in advance for your help!

You probably installed a plugin which requires this additional module. Please try this:

sudo -u octoprint pip3 install -U --user more_itertools

But I’m running test installs to assure it is no core dependency that has been missed to be declared as such in OctoPrint or one of its dependencies: DietPi-Software test · MichaIng/DietPi@77e6c78 · GitHub

The import is actually done here:

And that package declares it as dependency:

OctoPrint vendors it in:

But does not declare it as dependency:

My install tests all succeed, so looks like this is called only in certain conditions.

It is imported here:

That however is imported at a lot of places: Code search results · GitHub

Hmm, in my logs the module is actually installed:

Collecting more-itertools>=10.5.0 (from octoprint)
  Downloading more_itertools-10.8.0-py3-none-any.whl.metadata (39 kB)

Ahh oh OctoPrint DOES define it as dependency, just with dash instead of underscore (which both works):

Okay, so why was it not installed in your case? :thinking:

If you did not install it manually yet, what does this return?

sudo -u octoprint pip3 freeze --user