Updating from 1.3.10 to 1.3.11 through web interface broke octoprint

What is the problem?
Trying to update to version 1.3.11, I was updating through the web interface and then got redirected to the page "OctoPrint is not currently running". It never restarted itself.

This is the tail of my octoprint.log

2019-05-14 17:35:53,047 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 0.6s
2019-05-14 17:35:53,731 - octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 0.58s
2019-05-14 17:35:54,473 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2019-05-14 17:35:54,507 - octoprint.server.util.sockjs - INFO - User root logged in on the socket from client ::ffff:192.168.2.218
2019-05-14 17:36:07,087 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.3.11...

What did you already try to solve it?

I tried restarting it with
sudo service octoprint restart
Which did nothing.

I also ran the grep command on the "Octoprint is not running" page which did not show a process running.

After about 15 min, tried manually updating from here - How can I update the OctoPrint installation on my OctoPi image?
This just built the wheel but did not install it, it said pip was out of date.

I am hesitant to restart the pi itself in case the update is still running in the background. I'm not sure if it just takes a really long time (over a half hour) or what.

-edit- I restarted it after about 40 minutes since I've built and installed OpenCV in less that time before, and I think that it broke it. On restart, the Pi throws an error and still does not work in the web.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name get_versions

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

    http://octopi.local
    http://192.168.2.77

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.16.0
------------------------------------------------------------------------------

-Update 2- After messing with it for a long time, I've made no progress. I found the softwareupdate log and this is the tail end of it. It appears that the update ran for about a minute than hung, so my restart 40 min later didn't really matter. Everything seems fine from the logs? Except a pip update message. However, octoprint is dead in the water for me. I'm going to have to redo the SD card entirely, nothing I've tried (including installing through various command line attempts) has helped. No matter what I did, the tail of octoprint.log never changed so something's not connected there.

2019-05-14 17:37:50,896 > Found existing installation: OctoPrint 1.3.10
2019-05-14 17:37:51,898 > Uninstalling OctoPrint-1.3.10:
2019-05-14 17:37:51,899 > Successfully uninstalled OctoPrint-1.3.10
2019-05-14 17:37:51,900 > Running setup.py install for OctoPrint: started
2019-05-14 17:37:57,019 > Running setup.py install for OctoPrint: finished with status 'done'
2019-05-14 17:37:57,020 > Successfully installed Click-7.0 Flask-Assets-0.12 Flask-Babel-0.12.2 Flask-Principal-0.4.0 OctoPrint-1.3.11 PyYAML-5.1 cachelib-0.1 chainmap-1.0.3 emoji-0.5.2 future-0.17.1 futures-3.2.0 markdown-3.0.1 monotonic-1.5 pkginfo-1.5.0.1 psutil-5.6.2 pylru-1.2.0 rsa-4.0 scandir-1.10.0 semantic-version-2.6.0 sentry-sdk-0.7.7 typing-3.6.6 watchdog-0.9.0 websocket-client-0.56.0 werkzeug-0.15.3 wrapt-1.11.1
2019-05-14 17:37:58,736 ! You are using pip version 19.0.1, however version 19.1.1 is available.
2019-05-14 17:37:58,873 ! You should consider upgrading via the 'pip install --upgrade pip' command.
(oprint) pi@octopi:~/.octoprint/logs $

No idea what happened, but this kind of sucks.

Additional information about your setup
I was upgrading to version 1.3.11 from version 1.3.10

I am new to using octoprint but not to 3d printing/pis in general.

In the log dir there's a plugin_softwareupdate_console.log. Share that whole thing.

Hi,

same issue as you but my system was able to update, I was printing OK yesterday night after update but when I switched off the printer then Octoprint service doesn't start up.
If I send " sudo service octoprint restart" octoprint doesn't start but no error or info about it at octoprint.log

2019-05-14 21:25:18,740 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.3.11...
2019-05-14 21:25:49,211 - octoprint.plugins.softwareupdate - INFO - Update of octoprint to 1.3.11 successful!
2019-05-14 21:25:49,299 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2019-05-14 21:25:49,302 - octoprint.plugins.softwareupdate - INFO - Restarting...
2019-05-14 21:25:49,443 - octoprint.server - INFO - Shutting down...
2019-05-14 21:25:49,971 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2019-05-14 21:25:49,976 - octoprint.events - INFO - Event loop shut down
2019-05-14 21:25:49,992 - octoprint.server - INFO - Goodbye!
2019-05-14 21:25:52,499 - octoprint.startup - INFO - ******************************************************************************
2019-05-14 21:25:52,501 - octoprint.startup - INFO - Starting OctoPrint 1.3.11
2019-05-14 21:25:52,502 - octoprint.startup - INFO - ******************************************************************************
2019-05-14 21:25:52,563 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2019-05-14 21:25:52,870 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2019-05-14 21:25:52,907 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-05-14 21:25:54,919 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 23 hook handlers
2019-05-14 21:25:55,373 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-05-14 21:25:55,399 - octoprint.server - INFO - Intermediary server started
2019-05-14 21:25:55,400 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-05-14 21:25:55,621 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 23 hook handlers
2019-05-14 21:25:55,672 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-05-14 21:25:56,192 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-05-14 21:25:56,364 - octoprint.plugins.softwareupdate - INFO - Version cache was created for another version of OctoPrint, not using it
2019-05-14 21:25:57,781 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2019-05-14 21:25:59,187 - octoprint.util.pip - INFO - Version of pip is 8.1.1
2019-05-14 21:25:59,188 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-05-14 21:25:59,189 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-05-14 21:25:59,194 - octoprint.plugin.core - INFO - Initialized 15 plugin implementation(s)
2019-05-14 21:25:59,204 - octoprint.plugin.core - INFO - 15 plugin(s) registered with the system:
|  Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  Error Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/errortracking
|  Force Login (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/forcelogin
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  Pi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
|  Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
2019-05-14 21:25:59,218 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 901685248
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Rev 1.2
|      octopi_version: 0.13.0
|  python:
|    pip: 8.1.1
|    version: 2.7.9
|    virtualenv: /home/pi/oprint
2019-05-14 21:25:59,228 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2019-05-14 21:25:59,244 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2019-05-14 21:25:59,700 - octoprint.server - INFO - Shutting down intermediary server...
2019-05-14 21:25:59,908 - octoprint.server - INFO - Intermediary server shut down
2019-05-14 21:25:59,910 - octoprint.events - INFO - Processing startup event, this is our first event
2019-05-14 21:25:59,911 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2019-05-14 21:25:59,915 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-05-14 21:25:59,922 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-05-14 21:26:00,023 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-05-14 21:26:00,176 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-05-14 21:26:00,462 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2019-05-14 21:26:00,466 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2019-05-14 21:26:00,484 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial port"
2019-05-14 21:26:00,491 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Connecting"
2019-05-14 21:26:00,489 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _http._tcp
2019-05-14 21:26:00,504 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2019-05-14 21:26:00,506 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _octoprint._tcp
2019-05-14 21:26:00,518 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2019-05-14 21:26:00,599 - 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.
2019-05-14 21:26:00,606 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2019-05-14 21:26:00,840 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-05-14 21:26:01,080 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-05-14 21:26:01,565 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2019-05-14 21:26:02,353 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2019-05-14 21:26:02,355 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-05-14 21:26:02,355 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-05-14 21:26:02,465 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.39
2019-05-14 21:26:02,573 - octoprint.server.util.flask - INFO - Passively logging in user admin from 192.168.1.39
2019-05-14 21:26:02,628 - tornado.access - WARNING - 404 GET /api/plugin/octopi_support (192.168.1.39) 14.67ms
2019-05-14 21:26:02,973 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2019-05-14 21:26:04,767 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Operational"
2019-05-14 21:26:04,772 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2019-05-14 21:26:04,848 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin 1.1.9 (Github)"
2019-05-14 21:26:04,852 - octoprint.util.comm - INFO - Firmware states that it supports temperature autoreporting
2019-05-14 21:26:08,353 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages/ (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-05-14 21:26:08,353 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-05-14 21:26:08,369 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2019-05-14 21:26:08,532 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://octopi.local/'}
2019-05-14 21:26:18,335 - octoprint.server.preemptive_cache - INFO - ... done in 9.80s
2019-05-14 21:26:46,177 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.39
2019-05-14 21:26:46,498 - octoprint.server.util.flask - INFO - Passively logging in user admin from 192.168.1.39
2019-05-14 21:26:50,745 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.39
2019-05-14 21:26:50,850 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.39
2019-05-14 21:26:52,767 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.39
2019-05-14 21:26:52,910 - octoprint.server.util.flask - INFO - Passively logging in user admin from 192.168.1.39
2019-05-14 21:26:55,371 - octoprint.server.util.sockjs - INFO - User admin logged in on the socket from client 192.168.1.39
2019-05-14 21:27:11,001 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 75}
2019-05-14 21:27:11,452 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'python': '2.7.9', 'ram': 901685248, 'octopi_version': '0.13.0', 'version': u'1.3.11', 'pip': '8.1.1', 'cores': 4, 'freq': 1200.0, 'pi_model': 'Raspberry Pi 3 Model B Rev 1.2', 'os': 'linux'}
2019-05-14 21:27:31,432 - octoprint.printer.standard.job - INFO - Print job selected - origin: local, path: Full-Size-129db-Whistle-No-Wings-V2.gcode, owner: admin, user: admin
2019-05-14 21:27:31,581 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Starting"
2019-05-14 21:27:31,587 - octoprint.printer.standard.job - INFO - Print job started - origin: local, path: Full-Size-129db-Whistle-No-Wings-V2.gcode, owner: admin, user: admin
2019-05-14 21:27:31,596 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2019-05-14 21:27:31,629 - octoprint.util.comm - INFO - Changing monitoring state from "Starting" to "Printing"
2019-05-14 21:27:32,002 - octoprint.plugins.tracking - INFO - Sent tracking event print_started, payload: {'origin': 'local', 'throttled_now': False, 'throttled_mask': 327680, 'file': '901c6f0b9e0d34969098d98eef679aaa12489576', 'throttled_past': True}
2019-05-14 21:27:33,770 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, will adjust timeouts and set busy interval accordingly
2019-05-14 21:29:32,346 - octoprint.util.comm - INFO - Telling the printer to set the busy interval to our "communicationBusy" timeout - 1s = 2s
2019-05-14 21:40:55,376 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 21:42:10,832 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 975}
2019-05-14 21:55:55,378 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 21:57:10,853 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1875}
2019-05-14 21:57:52,412 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.39
2019-05-14 22:10:55,380 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 22:12:11,130 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 2775}
2019-05-14 22:25:55,383 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 22:27:10,939 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 3675}
2019-05-14 22:33:03,024 - octoprint.util.comm - INFO - Finished in 3931.444 s.
2019-05-14 22:33:03,026 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Finishing"
2019-05-14 22:33:03,039 - octoprint.printer.standard.job - INFO - Print job done - origin: local, path: Full-Size-129db-Whistle-No-Wings-V2.gcode, owner: admin
2019-05-14 22:33:03,106 - octoprint.util.comm - INFO - Changing monitoring state from "Finishing" to "Operational"
2019-05-14 22:33:03,648 - octoprint.plugins.tracking - INFO - Sent tracking event print_done, payload: {'origin': 'local', 'throttled_mask': 327680, 'elapsed': 3931, 'file': '901c6f0b9e0d34969098d98eef679aaa12489576', 'throttled_now': False, 'throttled_past': True}
2019-05-14 22:40:55,385 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 22:42:11,206 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 4575}
2019-05-14 22:55:55,387 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 22:57:10,900 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 5475}
2019-05-14 23:10:55,390 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 23:12:11,179 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 6375}
2019-05-14 23:25:55,392 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-05-14 23:27:10,861 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 7276}

Thanks and regards,

Dani.

Same issue here, service is active but exited. Never started well after upgraded to 1.3.11.

Tried to install octoprint from source, but while running "./venv/bin/python setup.py install" I got the following error:
"error: urllib3 1.25.2 is installed but urllib3<1.25,>=1.21.1 is required by set(['requests'])"

Seconding this. Also octoprint.log. And also the output of manually running OctoPrint from command line - on OctoPi:

sudo service octoprint stop
~/oprint/bin/octoprint serve

"X doesn't work" won't get it solved. Sharing information might.

pi@octopi:~ $ sudo service octoprint stop
pi@octopi:~ $ ~/oprint/bin/octoprint serve
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 9, in <module>
    load_entry_point('OctoPrint==1.3.11', 'console_scripts', 'octoprint')()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/__init__.py", line 605, in main
    from octoprint.util.fixes import patch_sarge_async_on_py2
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/__init__.py", line 34, in <module>
    from past.builtins import basestring, unicode
  File "/home/pi/oprint/local/lib/python2.7/site-packages/past/builtins/__init__.py", line 54, in <module>
    from past.builtins.misc import (apply, chr, cmp, execfile, intern, oct,
ValueError: bad marshal data (unknown type code)

same problem here!!!

@Dani_Diaz That looks like something on your file system got corrupted, possibly due to just yanking power instead of doing a proper shutdown first, or due to an SD card getting too old for service.

@Martin_Polack

1 Like

log files attached

for me the manual running show nothing:

------------------------------------------------------------------------------
OctoPrint version : 1.3.11
OctoPi version    : 0.15.1
------------------------------------------------------------------------------

pi@octopi:~ $ sudo su
[sudo] password for pi:
root@octopi:/home/pi# mc

root@octopi:/home/pi/oprint/bin# ./octoprint serve
root@octopi:/home/pi/oprint/bin# ^

octoprint.log (408 KB)

plugin_softwareupdate_console.log (68 KB)

@Akos_Zambori You should not be running that as root. Where did I say to become root? NEVER run OctoPrint as root! Now drop the sudo, do that again please and share the output. And if you've been doing stuff as root that you shouldn't have been doing as root before you might have to fix your permissions.

2 Likes

thanks but nothing changes, even the log files untouched after trying this:

------------------------------------------------------------------------------
OctoPrint version : 1.3.11
OctoPi version    : 0.15.1
------------------------------------------------------------------------------

pi@octopi:~ $ mc

pi@octopi:~/oprint/bin $ ./octoprint serve
pi@octopi:~/oprint/bin $ service octoprint status
Γ’ octoprint.service - LSB: OctoPrint daemon
   Loaded: loaded (/etc/init.d/octoprint; generated; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-05-15 08:23:35 UTC; 27min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4482 ExecStop=/etc/init.d/octoprint stop (code=exited, status=0/SUCCESS)
  Process: 4422 ExecStart=/etc/init.d/octoprint start (code=exited, status=0/SUCCESS)

May 15 08:21:26 octopi systemd[1]: Starting LSB: OctoPrint daemon...
May 15 08:21:26 octopi systemd[1]: Started LSB: OctoPrint daemon.
May 15 08:23:35 octopi systemd[1]: Stopping LSB: OctoPrint daemon...
May 15 08:23:35 octopi systemd[1]: Stopped LSB: OctoPrint daemon.
pi@octopi:~/oprint/bin $ service octoprint stop
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'octoprint.service'.
Authenticating as: root
Password:
==== AUTHENTICATION COMPLETE ===
pi@octopi:~/oprint/bin $ service octoprint status
Γ’ octoprint.service - LSB: OctoPrint daemon
   Loaded: loaded (/etc/init.d/octoprint; generated; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-05-15 08:23:35 UTC; 28min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4482 ExecStop=/etc/init.d/octoprint stop (code=exited, status=0/SUCCESS)
  Process: 4422 ExecStart=/etc/init.d/octoprint start (code=exited, status=0/SUCCESS)

May 15 08:21:26 octopi systemd[1]: Starting LSB: OctoPrint daemon...
May 15 08:21:26 octopi systemd[1]: Started LSB: OctoPrint daemon.
May 15 08:23:35 octopi systemd[1]: Stopping LSB: OctoPrint daemon...
May 15 08:23:35 octopi systemd[1]: Stopped LSB: OctoPrint daemon.
pi@octopi:~/oprint/bin $ ./octoprint serve
pi@octopi:~/oprint/bin $ service octoprint status
Γ’ octoprint.service - LSB: OctoPrint daemon
   Loaded: loaded (/etc/init.d/octoprint; generated; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-05-15 08:23:35 UTC; 28min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4482 ExecStop=/etc/init.d/octoprint stop (code=exited, status=0/SUCCESS)
  Process: 4422 ExecStart=/etc/init.d/octoprint start (code=exited, status=0/SUCCESS)

May 15 08:21:26 octopi systemd[1]: Starting LSB: OctoPrint daemon...
May 15 08:21:26 octopi systemd[1]: Started LSB: OctoPrint daemon.
May 15 08:23:35 octopi systemd[1]: Stopping LSB: OctoPrint daemon...
May 15 08:23:35 octopi systemd[1]: Stopped LSB: OctoPrint daemon.
pi@octopi:~/oprint/bin $
pi@octopi:~/.octoprint/logs $ OA
bash: OA: command not found

pi@octopi:~ $

but while tried to install from source like you wrote on the download page, at first I got an error about urllib3 version.
I checked the installed version I got this:

pi@octopi:~ $ sudo su
[sudo] password for pi:
root@octopi:/home/pi# pip search urllib3
urllib3-mock (0.3.3)         - A utility library for mocking out the `urllib3` Python library.
urllib3 (1.25.2)             - HTTP library with thread-safe connection pooling, file post, and more.
  INSTALLED: 1.19.1
  LATEST:    1.25.2
opbeat_python_urllib3 (1.1)  - An urllib3 transport for Opbeat
filter-certwarning (1.0)     - Decorators for filtering InsecureRequestWarnings in requests and urllib3 apps
httplib2shim (0.0.3)         - A wrapper over urllib3 that matches httplib2's interface
srv-hijacker (0.0.5)         - Patch urllib3 to query a certain DNS server for SRV records
apiclient (1.0.4)            - Framework for making good API client libraries using urllib3.
root@octopi:/home/pi#

Do the following please (and don't use sudo or su anywhere where it doesn't say so)

sudo service octoprint stop
source ~/oprint/bin/activate
pip install --force-reinstall https://get.octoprint.org/latest
octoprint serve --safe

If that doesn't produce any output then something about the underlying OS is seriously shot to bits and I have no idea what.

edit Also please for the love of all that is holy stop this sudo su nonsense in front of every command you run to test something. You really don't need root rights for most tasks you ever need to do on your during debugging...

ok:

------------------------------------------------------------------------------
OctoPrint version : 1.3.11
OctoPi version    : 0.15.1
------------------------------------------------------------------------------

pi@octopi:~ $ sudo service octoprint stop
pi@octopi:~ $ service octoprint status
● octoprint.service - LSB: OctoPrint daemon
   Loaded: loaded (/etc/init.d/octoprint; generated; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-05-15 08:23:35 UTC; 46min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4482 ExecStop=/etc/init.d/octoprint stop (code=exited, status=0/SUCCESS)
  Process: 4422 ExecStart=/etc/init.d/octoprint start (code=exited, status=0/SUCCESS)

May 15 08:21:26 octopi systemd[1]: Starting LSB: OctoPrint daemon...
May 15 08:21:26 octopi systemd[1]: Started LSB: OctoPrint daemon.
May 15 08:23:35 octopi systemd[1]: Stopping LSB: OctoPrint daemon...
May 15 08:23:35 octopi systemd[1]: Stopped LSB: OctoPrint daemon.
pi@octopi:~ $ 

`(oprint) pi@octopi:~ $ pip install --force-reinstall https://get.octoprint.org/latest
Collecting https://get.octoprint.org/latest
  Downloading https://get.octoprint.org/latest (5.4MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5.4MB 47kB/s 
  Requirement already satisfied (use --upgrade to upgrade): OctoPrint==1.3.11 from https://get.octoprint.org/latest in ./oprint/lib/python2.7/site-packages
Requirement already satisfied: flask<0.11,>=0.10.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: Jinja2<2.9,>=2.8.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: tornado==4.5.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: Flask-Login<0.3,>=0.2.11 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: regex!=2018.11.6 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: Flask-Principal<0.5,>=0.4 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: Flask-Babel<0.13,>=0.12 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: Flask-Assets<0.13,>=0.12 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: werkzeug<0.16,>=0.15.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: cachelib<0.2,>=0.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: PyYAML<6,>=5.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: markdown<3.1,>=3.0 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: pyserial<3.5,>=3.4 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: netaddr<0.8,>=0.7.19 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: watchdog<0.10,>=0.9.0 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: sarge==0.1.5post0 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: netifaces<0.11,>=0.10.9 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: pylru<1.3,>=1.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: rsa<5,>=4.0 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: pkginfo<1.6,>=1.5.0.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: requests<3,>=2.21.0 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: semantic_version<2.7,>=2.6 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: psutil<5.7,>=5.6.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: Click<8,>=7 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: awesome-slugify<1.7,>=1.6.5 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: feedparser<5.3,>=5.2.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: chainmap<1.1,>=1.0.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: future<0.18,>=0.17.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: scandir<1.11,>=1.10 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: websocket-client<0.57,>=0.56 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: wrapt<1.12,>=1.11.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: futures<3.3,>=3.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: emoji<0.6,>=0.5.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: monotonic<1.6,>=1.5 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: frozendict<1.3,>=1.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: sentry-sdk==0.7.7 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: typing<4,>=3.6.6 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.11)
Requirement already satisfied: itsdangerous>=0.21 in ./oprint/lib/python2.7/site-packages (from flask<0.11,>=0.10.1->OctoPrint==1.3.11)
Requirement already satisfied: MarkupSafe in ./oprint/lib/python2.7/site-packages (from Jinja2<2.9,>=2.8.1->OctoPrint==1.3.11)
Requirement already satisfied: singledispatch in ./oprint/lib/python2.7/site-packages (from tornado==4.5.3->OctoPrint==1.3.11)
Requirement already satisfied: certifi in ./oprint/lib/python2.7/site-packages (from tornado==4.5.3->OctoPrint==1.3.11)
Requirement already satisfied: backports-abc>=0.4 in ./oprint/lib/python2.7/site-packages (from tornado==4.5.3->OctoPrint==1.3.11)
Requirement already satisfied: blinker in ./oprint/lib/python2.7/site-packages (from Flask-Principal<0.5,>=0.4->OctoPrint==1.3.11)
Requirement already satisfied: Babel>=2.3 in ./oprint/lib/python2.7/site-packages (from Flask-Babel<0.13,>=0.12->OctoPrint==1.3.11)
Requirement already satisfied: webassets>=0.11.1 in ./oprint/lib/python2.7/site-packages (from Flask-Assets<0.13,>=0.12->OctoPrint==1.3.11)
Requirement already satisfied: argh>=0.24.1 in ./oprint/lib/python2.7/site-packages (from watchdog<0.10,>=0.9.0->OctoPrint==1.3.11)
Requirement already satisfied: pathtools>=0.1.1 in ./oprint/lib/python2.7/site-packages (from watchdog<0.10,>=0.9.0->OctoPrint==1.3.11)
Requirement already satisfied: pyasn1>=0.1.3 in ./oprint/lib/python2.7/site-packages (from rsa<5,>=4.0->OctoPrint==1.3.11)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./oprint/lib/python2.7/site-packages (from requests<3,>=2.21.0->OctoPrint==1.3.11)
Requirement already satisfied: idna<2.9,>=2.5 in ./oprint/lib/python2.7/site-packages (from requests<3,>=2.21.0->OctoPrint==1.3.11)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./oprint/lib/python2.7/site-packages (from requests<3,>=2.21.0->OctoPrint==1.3.11)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./oprint/lib/python2.7/site-packages (from requests<3,>=2.21.0->OctoPrint==1.3.11)
Requirement already satisfied: Unidecode<0.05,>=0.04.14 in ./oprint/lib/python2.7/site-packages (from awesome-slugify<1.7,>=1.6.5->OctoPrint==1.3.11)
Requirement already satisfied: six in ./oprint/lib/python2.7/site-packages (from websocket-client<0.57,>=0.56->OctoPrint==1.3.11)
Requirement already satisfied: pytz>=0a in ./oprint/lib/python2.7/site-packages (from Babel>=2.3->Flask-Babel<0.13,>=0.12->OctoPrint==1.3.11)
You are using pip version 9.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(oprint) pi@octopi:~ $ 
`
(oprint) pi@octopi:~ $ octoprint serve --safe
(oprint) pi@octopi:~ $ service octoprint status
● octoprint.service - LSB: OctoPrint daemon
   Loaded: loaded (/etc/init.d/octoprint; generated; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-05-15 08:23:35 UTC; 52min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4482 ExecStop=/etc/init.d/octoprint stop (code=exited, status=0/SUCCESS)
  Process: 4422 ExecStart=/etc/init.d/octoprint start (code=exited, status=0/SUCCESS)

May 15 08:21:26 octopi systemd[1]: Starting LSB: OctoPrint daemon...
May 15 08:21:26 octopi systemd[1]: Started LSB: OctoPrint daemon.
May 15 08:23:35 octopi systemd[1]: Stopping LSB: OctoPrint daemon...
May 15 08:23:35 octopi systemd[1]: Stopped LSB: OctoPrint daemon.
(oprint) pi@octopi:~ $ 

unfortunately, I am not lucky :wink: Thanks for the help, will be installed from image :wink:

EDITED:
Hi, it is solved for me.
--all octoprint folder removed
--urllib upgraded from 1.19.1 to 1.25.2

pip install urllib3 && pip3 install urllib3 

--reinstall as it is written on the download page:

cd ~
sudo apt update
sudo apt install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential
mkdir OctoPrint && cd OctoPrint
virtualenv venv
source venv/bin/activate
pip install pip --upgrade
pip install https://get.octoprint.org/latest

--and after the backup has uploaded the service shows exited status again
:wink: :wink:
I think I am going to skip the backup restore process and will work fine again

Thanks Gina, I think you're right, reinstall will be the solution :sleepy:

same problem here but the update failed and now octoprint will not start

------------------------------------------------------------------------------
OctoPrint version : 1.3.10
OctoPi version    : 0.15.1
------------------------------------------------------------------------------

pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi@octopi:~ $
pi@octopi:~ $ sudo service octoprint restart
pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi@octopi:~ $
pi@octopi:~ $ sudo service octoprint stop
pi@octopi:~ $ ~/oprint/bin/octoprint serve
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 657, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 670, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'watchdog<0.9,>=0.8.3' distribution was not found and is required by OctoPrint
pi@octopi:~ $

power was not removed, i simply tried the update from within octoprint

plugin_softwareupdate_console.log (65.8 KB)
octoprint.log (18.4 KB)

@boelle

Looks like it fell on its face while trying to upgrade a third party dependency (which I cannot reproduce on a stock OctoPi 0.15.1 myself) and then stuff was left in an inconsistent state due to that.

Try if

succeeds now. If it again fails with some build error in netifaces we'll have to dig deeper, maybe some corrupt package is causing trouble.

will do... and just let me know any other file(and their location) that might be interesting