Octoprint server does not start after error while adding and updating plugins and octoprint

hmm, first line throwssome import error...

Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 8, in <module>
    sys.exit(main())
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/__init__.py", line 1008, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 273, in enable_safemode
    overlays=get_ctx_obj_option(ctx, "overlays", None),
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/__init__.py", line 203, in init_settings
    from octoprint.settings import InvalidSettings, settings
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/settings/__init__.py", line 35, in <module>
    from octoprint.schema.config import Config
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/schema/__init__.py", line 4, in <module>
    from pydantic import BaseModel as PydanticBaseModel
  File "pydantic/__init__.py", line 2, in init pydantic.__init__
  File "pydantic/dataclasses.py", line 41, in init pydantic.dataclasses
    # +---------+-----------------------------------------+
ImportError: cannot import name dataclass_transform

and it refuses to boot. doesn't even generate any new log entries. the los is still the same as yesterday.

at this point, i think about wiping that thing and importing the data and statistics i want to keep/reimplant... no log, no info, no safemode.... i think it is dead for real? still wondering, what exactly killed it! :headstone: :skull_and_crossbones:

The easiest path is a new octopi image, they are very reliable and stable.

Hi!
I'm new at this community, thanks for the support!

I have the exact same Issue described here. Upgrade to v1.9 and then my system stop booting. Can't restart via SSH and no clear error is shown on the log file. I've installed v1.8 with my new printer a week ago!

My log is attached.
Octoprint.log (10.4 KB)

Any chance to avoid reinstalling?

Thank you!!

Hello @adyannu !

Please always share the systeminfo bundle. It contains other logs for more information.
BTW: This octoprint.log is crippled. Should be more.


You have an untervoltage and throttling issue with your Pi:

2023-05-25 14:42:38,559 - octoprint.plugins.pi_support - WARNING - This Raspberry Pi is reporting problems that might lead to bad performance or errors caused by overheating or insufficient power.
!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are capable of supplying enough voltage and current to your Pi.
|      throttle_state: '0x50005'

See here:

As long this untervoltage is not fixed, a new installation makes no sense at all.

Hi Adyannu,

please include the system info bundle too.

Thanks

As I already said :face_with_raised_eyebrow:

Sorry, didnt see that, was drafting while you posted ! :face_with_open_eyes_and_hand_over_mouth:

Hi @jattie.

I can't access the web interface and I ran octoprint systeminfo. but got no output. I'm sorry :confused:

This is muy full log file:
octoprint.log (17.2 KB)

Version 1.8 was installed and running for +7 days almost non-stop without issues until I ran the upgrade. I'll try with another PSU but maybe this issue (also reported by another user) is not related to undervoltage.

Can you please, as @jattie and I said, share the systeminfo bundle. The octoprint.log does not contain updaing prodedure data.

I tried to generate it via SSH but nothing happens, no file is generated.

Recovery page and web interface are both down, can't download the bundle. Can you guide me how to get the Systeminfo bundle in this condition so I can share it with you?

That's bad.

Where you found the octoprint.log, there are also other logs.

Please share the last two plugin_pluginmanager_console.log.

a forced reinstall might help, maybe not. but the steps would be to SSH to the pi and run these commands for your setup @adyannu

source /home/admin/oprint/bin/activate
pip install --force-reinstall --no-cache-dir octoprint
deactivate
sudo service octoprint restart
2 Likes

I have only one and it is empty: 0 bytes.

But here is the plugin_softwareupdate_console.log with details from the upgrade.
plugin_softwareupdate_console.log (27.4 KB)

Any other from the list?

@jneilliii I have tried this and it worked for me!

I have my OctoPi up & running again. Thank you all for the support!!

2 Likes

There is a fair amount of null characters (I think) at the end of that log that might indicate that during the upgrade, your system crashed - perhaps it lost power or something. Not able to tell for definite, but it gets most of the way through the upgrade before dying. A force reinstall working would also imply that the upgrade just failed the first time - it does happen in the odd case every release.

sooo, mine is a candidate for a new image his is running again? should i make as solved then?
(sounds kinda salty, but not ment to be :slight_smile: its all fine!)

or does anyone have another idea for my octopi? cant even force-install with pip from octopi or python, since pip is not recognized at all ^^; feels real bad

Did you correctly activate your virtual environment first without errors? In your case you must run

source /home/pi/oprint/bin/activate

Then the force-reinstall:

pip install --force-reinstall --no-cache-dir octoprint
2 Likes

was about to say, 'no such directory, till i saw the missing 'o' from oprint.

source /home/pi/oprint/bin/activate
pip install --force-reinstall --no-cache-dir octoprint

also did a:

/home/pi/oprint/bin/python3 -m pip install --upgrade pip

since my version seemed kinda outdated and the installation mentioned pip changed

and we got a webinterface booted in safemode like it should!
its also running stable without safemode now. looks like the update did break something...
thats some dark necromantic stuff we just did...

sir, i owe you a coffee!
(please edit the o into your response, so i can mark it as a solution for other peeps <3)

That missing o was indeed a typo, apologies!

1 Like

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