Ok, so it seems that Octopi installs everything under /home/pi/.octoprint and after adjusting the init.d script to the new location, I can kinda get things working. Octoprint starts in Safe Mode every time, and when I do a restart the service, I get the following entry in the octoprint.log:
2019-05-27 22:19:00,096 - octoprint.startup - INFO - ******************************************************************************
2019-05-27 22:19:00,099 - octoprint.startup - INFO - Starting OctoPrint 1.3.11
2019-05-27 22:19:00,100 - octoprint.startup - INFO - ******************************************************************************
2019-05-27 22:19:00,163 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2019-05-27 22:19:00,167 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2019-05-27 22:19:00,207 - 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-27 22:19:01,200 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/pkg_resources.py:1049: UserWarning: /home/pi/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
2019-05-27 22:19:01,889 - octoprint.plugin.core - INFO - Plugin Printer Safety Check is disabled.
2019-05-27 22:19:02,291 - octoprint.plugin.core - INFO - Plugin Nautilus (1.20) is disabled.
2019-05-27 22:19:02,428 - octoprint.plugin.core - INFO - Plugin OctoLapse (0.2.2) is disabled.
2019-05-27 22:19:02,686 - octoprint.plugin.core - INFO - Plugin Cost Plugin (0.1.3) is disabled.
2019-05-27 22:19:02,823 - octoprint.plugin.core - INFO - Plugin Enclosure Plugin (3.51) is disabled.
2019-05-27 22:19:02,998 - octoprint.plugin.core - INFO - Plugin DisplayLayerProgress Plugin (1.7.1) is disabled.
2019-05-27 22:19:03,039 - octoprint.plugin.core - INFO - Found 44 plugin(s) providing 38 mixin implementations, 48 hook handlers
2019-05-27 22:19:03,498 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-05-27 22:19:03,531 - octoprint.server - INFO - Intermediary server started
2019-05-27 22:19:03,532 - 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-27 22:19:03,786 - octoprint.plugin.core - INFO - Found 44 plugin(s) providing 38 mixin implementations, 48 hook handlers
2019-05-27 22:19:03,822 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-05-27 22:19:04,263 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-05-27 22:19:04,288 - octoprint.plugins.mqtt - ERROR - No broker URL defined, MQTT plugin won't be able to work
2019-05-27 22:19:04,323 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-05-27 22:19:04,335 - octoprint.plugins.multi_colors - INFO - MultiColors init
2019-05-27 22:19:06,770 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2019-05-27 22:19:09,267 - octoprint.util.pip - INFO - Version of pip is 9.0.1
2019-05-27 22:19:09,269 - 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-27 22:19:09,270 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-05-27 22:19:09,276 - octoprint.plugin.core - INFO - Initialized 38 plugin implementation(s)
2019-05-27 22:19:09,295 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
File "/home/pi/oprint/bin/octoprint", line 9, in
load_entry_point('OctoPrint==1.3.11', 'console_scripts', 'octoprint')()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/init.py", line 609, in main
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 206, in serve_command
ignore_blacklist)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 118, in run_server
octoprint_server.run()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/init.py", line 478, in run
extra=dict(plugin=plugin._identifier))
UnboundLocalError: local variable 'plugin' referenced before assignment