What is the problem?
OctoPrint exits after trying to start up.
What did you already try to solve it?
I tried to redo the Optional: Webcam steps in Setting up OctoPrint on a Raspberry Pi running Raspbian or Raspberry Pi OS that I did before it stopped working.
Have you tried running in safe mode?
Yes. It would restart in Safe mode because it had a problem in the last attempt to start. I also manually used the --safe flag to start.
Did running in safe mode solve the problem?
No. It still exits.
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
octoprint-systeminfo-20220203150323.zip (12.8 KB)
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
OctoPrint v1.7.3
RaspberryPi Model B Rev2
Raspbian GNU/Linux 11 (bullseye)
Creality Ender-3
Marlin v1.0.1 2020-04-25
MacBook Pro (15-inch, 2018)
Mac OS 10.15.7
Chrome Version 97.0.4692.99 (Official Build) (x86_64)
Basically, I had OctoPrint running fine on my Pi and decided to set up a Logitech C270 webcam on it so proceeded to follow the steps for the Optional: Webcam setup.
I successfully downloaded and compiled MJPG-Streamer.
I was able to start the webcam server.
And, I cold see the 5fps stream pointing my browser to 'http://octopi.local:8080/?action=stream'.
I also followed the steps for Autostarting the webcam including editing config.yaml.
Everything seemed fine... until it wasn't.
*Other things I did that may or may not have caused this error:
1: electrical tape over the 5v pin on my USB-A cable going from the pi to the ender3,
2: attached a usb hub to the pi to connect both the webcam and printer (the usb wifi dongle was in the other usb port)