Need help for "The OctoPrint server is currently not running"

After a fresh new complet reinstall... I update HomeAssistant Discovery and I use the emergency stop plugin... and octoprint did'nt restart properly.

I try: sudo service restart
did'nt work
I try: ps -ef | grep -i octoprint | grep -i python
nothing hapen
I try to force a reinstaltion
a got a error
I try the safemode
a got "Kill"

Nothing new or error in the log

Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2021-10-19 12:07:04,520 - 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_state: '0x0'
| python:
| pip: 20.3.3
| version: 3.7.3
| virtualenv: /home/pi/oprint
2021-10-19 12:07:04,520 - octoprint.server - INFO - ------------------------------------------------------------------------------
2021-10-19 12:07:15,287 - octoprint.plugins.tracking - INFO - Sent tracking event pong, payload: {'version': '1.7.0', 'os': 'linux', 'bits': 32, 'python': '3.7.3', 'pip': '20.3.3', 'cores': 4, 'freq': 1400.0, 'ram': 915718144, 'pi_model': 'Raspberry Pi 3 Model B Plus Rev 1.3', 'octopi_version': '0.18.0', 'plugins':blush:
2021-10-19 12:07:15,653 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 86411, 'printer_state': 'OFFLINE'}
2021-10-19 12:22:04,494 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 12:22:15,418 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 87311, 'printer_state': 'OFFLINE'}
2021-10-19 12:37:04,496 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 12:37:15,452 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 88211, 'printer_state': 'OFFLINE'}
2021-10-19 12:52:04,497 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 12:52:15,446 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 89111, 'printer_state': 'OFFLINE'}
2021-10-19 13:07:04,498 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 13:07:15,480 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 90011, 'printer_state': 'OFFLINE'}
2021-10-19 13:22:04,499 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 13:22:15,413 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 90911, 'printer_state': 'OFFLINE'}
2021-10-19 13:37:04,501 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 13:37:15,478 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 91811, 'printer_state': 'OFFLINE'}
2021-10-19 13:52:04,502 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 13:52:15,441 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 92711, 'printer_state': 'OFFLINE'}
2021-10-19 14:07:04,505 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 14:07:15,437 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 93611, 'printer_state': 'OFFLINE'}
2021-10-19 14:22:04,506 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 14:22:15,439 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 94511, 'printer_state': 'OFFLINE'}
2021-10-19 14:37:04,507 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 14:37:15,459 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 95411, 'printer_state': 'OFFLINE'}
2021-10-19 14:52:04,508 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 14:52:15,434 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 96311, 'printer_state': 'OFFLINE'}
2021-10-19 15:07:04,509 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 15:07:15,455 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 97211, 'printer_state': 'OFFLINE'}
2021-10-19 15:22:04,511 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-10-19 15:22:15,456 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 98111, 'printer_state': 'OFFLINE'}
2021-10-19 15:28:08,118 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.1.30
2021-10-19 15:37:04,512 - octoprint.server.heartbeat - INFO - Server heartbeat <3

Try running ~/oprint/bin/octoprint serve, and then copy all the output it produces and paste it here.

thanbks for the repply

pi@octopi:~ $ ~/oprint/bin/octoprint serve
Killed

samething of when i try the safemode

pi@octopi:~ sudo service octoprint status ● octoprint.service - The snappy web interface for your 3D printer Loaded: loaded (/etc/systemd/system/octoprint.service; enabled; vendor preset: enabled) Active: failed (Result: signal) since Tue 2021-10-19 20:57:53 BST; 12min ago Process: 351 ExecStart=/home/pi/oprint/bin/octoprint serve --host={HOST} --port=${PORT} (code=killed, signal=KILL)
Main PID: 351 (code=killed, signal=KILL)

Oct 19 20:56:50 octopi systemd[1]: Started The snappy web interface for your 3D printer.
Oct 19 20:57:53 octopi systemd[1]: octoprint.service: Main process exited, code=killed, status=9/KILL
Oct 19 20:57:53 octopi systemd[1]: octoprint.service: Failed with result 'signal'.

[ 54.426574] Out of memory: Killed process 375 (octoprint) total-vm:945944kB, anon-rss:838976kB, file-rss:8kB, shmem-rss:0kB, UID:1000 pgtables:928kB oom_scor e_adj:0

I will reinstall it.... again

How many GBs has the SD card?

Out of memory is not the same as out of the SD card storage, we are talking RAM here. It shouldn't be using 1GB of RAM, OctoPrint and the OS is usually under 500mb.

What else have you installed on the Pi? Something is leaking memory somewhere - run htop and sort by memory to find out what is using it.

1 Like

16.. use at 20% before I reinstall it

This append after a HomeAssistant Discovery update. I can't tell you more than that.

Sounds like something in the home assistant directory update changed something... Something that's not installed by octoprint, but is needed by it
And that's why it's recommended to not run other "heavy" apps with it

Home assistant discovery is a plugin, it shouldn't be too heavy, but maybe it's broken and has a memory leak issue or something.

Running htop and finding the highest RAM usage will help to try and find out what it has the problem.

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