Not starting up after 3 restarts PI OCTOPRINT

What is the problem?

ModuleNotFoundError: No module named 'octoprint'

What did you already try to solve it?

YES

Have you tried running in safe mode?

YES

Did running in safe mode solve the problem?

NO

Complete Logs are lower

login as: pi pi@192.168.1.42's password: Linux octopi 5.4.79-v7l+ #1373 SMP Mon Nov 23 13:27:40 GMT 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Apr 24 12:55:20 2021
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'octoprint'


Access OctoPrint from a web browser on your network by navigating to any of:

http://octopi.local
http://192.168.1.42

https is also available, with a self-signed certificate.

This image comes without a desktop environment installed because it's not
required for running OctoPrint. If you want a desktop environment you can
install it via

sudo /home/pi/scripts/install-desktop

OctoPrint version : unknown
OctoPi version : 0.18.0

pi@octopi:~ ModuleNotFoundError: No module named 'octoprint' -bash: ModuleNotFoundError:: command not found pi@octopi:~ ~/oprint/bin/python --version
Python 3.7.3
pi@octopi:~ ~/oprint/bin/pip install --force-reinstall --no-cache-dir octoprin t Traceback (most recent call last): File "/home/pi/oprint/bin/pip", line 5, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip' pi@octopi:~ sudo service octoprint restart
pi@octopi:~ ~/oprint/bin/python -m pip install --force-reinstall --no-cache-di r octoprint /home/pi/oprint/bin/python: No module named pip pi@octopi:~ ls ~
mjpg-streamer OctoPrint oprint scripts upgrade.py

octoprint.log (731.3 KB) plugin_pluginmanager_console.log (227.0 KB)

Additional information about your setup

I did use search to find out why its not working tried lot of ways and checks - nothing helps - it just stopped working.
running on PI 4 B. did try to reinstall PIP - did not help. it just stopped.
in log my camera stopped working - but that`s not should be an issue that octoprint starts.

all systems are updated to latest versions and it was running for 12h

The OctoPrint server is currently not running

If you just started up your Raspberry Pi, please wait a couple of seconds, then try to refresh this page.

If the issue persists, please log into your Raspberry Pi via SSH and check the following:

  • Verify that the process is running: ps -ef | grep -i octoprint | grep -i python should show a python process:

pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi 1441 1 6 11:12 ? 00:00:15 /home/pi/oprint/bin/python
/home/pi/oprint/bin/octoprint --host=127.0.0.1 --port=5000

  • If it isn't, the question is why. Take a look into ~/.octoprint/logs/octoprint.log , there might be an error logged in there that helps to determine what's wrong.
  • You might also want to try if you can restart the server (if no obvious error is visible): sudo service octoprint restart .

If all that doesn't help to trouble shoot the issue, you can seek support on the OctoPrint Community Forum. Please provide your OctoPi and OctoPrint versions as well as your octoprint.log and explain what you already tried and observed as detailed as possible.

NEVERMIND i just reinstall all system with all plugins....

With a camera, make sure it didn't fill the filesystem full. Ssh in and do df -h. If any are at 100% then the file system is full and octoprint will not start. Also, use the link on the word logs in the forum to get the logs needed to troubleshoot. Otherwise, anything is just a guess

1 Like

logs was uploaded - others was just empty.
thx for hitch - in case if it will happen I will check filesystem file

HI, i`m back with same problem.
tyerd to reinstall it..

pi@octopi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        31G  2.3G   27G   8% /
devtmpfs        3.7G     0  3.7G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G   17M  3.9G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   54M  199M  22% /boot
tmpfs           783M     0  783M   0% /run/user/1000
pi@octopi:~ $

log is attached.
any help will be helpfull - any data will be provided - even password from my bank account :slight_smile:
octoprint.log (123.3 KB)

update:
in deamon found this.

pi@octopi:~/oprint/bin $ tail /var/log/daemon.log
Apr 30 22:44:19 octopi systemd[1]: Started The snappy web interface for your 3D                                                           printer.
Apr 30 22:44:19 octopi octoprint[1112]: Traceback (most recent call last):
Apr 30 22:44:19 octopi octoprint[1112]:   File "/home/pi/oprint/bin/octoprint",                                                           line 5, in <module>
Apr 30 22:44:19 octopi octoprint[1112]:     from octoprint import main
Apr 30 22:44:19 octopi octoprint[1112]: ModuleNotFoundError: No module named 'oc                                                          toprint'
Apr 30 22:44:19 octopi systemd[1]: octoprint.service: Main process exited, code=                                                          exited, status=1/FAILURE
Apr 30 22:44:19 octopi systemd[1]: octoprint.service: Failed with result 'exit-c                                                          ode'.
Apr 30 22:44:39 octopi systemd[1]: Starting Cleanup of Temporary Directories...
Apr 30 22:44:39 octopi systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Apr 30 22:44:39 octopi systemd[1]: Started Cleanup of Temporary Directories.

pi@octopi:/ $ python --version
Python 2.7.16

I don't see anything related to your problem in the logs.
Could be a failing sd card.
Maybe @Charlie_Powell has another idea.

pi@octopi:~ $ ps -ef | grep -i octoprint                                        
pi         685   666  1 08:16 pts/0    00:00:00 grep --color=auto -i octoprint
pi@octopi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        31G  3.0G   27G  11% /
devtmpfs        3.7G     0  3.7G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G   17M  3.9G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   54M  199M  22% /boot
tmpfs           783M     0  783M   0% /run/user/1000
pi@octopi:~ $

after running around fireplace and dancing i got it in process status in - but i still not starting up.

OK guys, I`m gonna install it on new sd card Class 10 64GB.
there is any log files or commands which i need to run extra to get more info if this type again happens???
who can advise something?

I have 1 more question guy`s
how I can backup already configured image?
and then restore it?
i have a idea of make config fully and just backup it - and when it happens again I just can restore it