Brian Greul Posted December 29, 2016 Share Posted December 29, 2016 I'm having difficulty getting Octoprint to start. I've set it up in init.d and defaults. When I execute it directly I get an error about running as root. It's like it's ignoring the octoprint_user. /etc/default/octoprint: # Configuration for /etc/init.d/octoprint # The init.d script will only run if this variable non-empty. OCTOPRINT_USER=octoprint # base directory to use #BASEDIR=/home/octoprint/OctoPrint # configuration file to use #CONFIGFILE=/home/pi/.octoprint/config.yaml # On what port to run daemon, default is 5000 PORT=5000 # Path to the OctoPrint executable, you need to set this to match your installation! DAEMON=/home/octoprint/OctoPrint/octoprint # What arguments to pass to octoprint, usually no need to touch this DAEMON_ARGS="--port=$PORT" # Umask of files octoprint generates, Change this to 000 if running octoprint as its own, separate user UMASK=000 # Process priority, 0 here will result in a priority 20 process. # -2 ensures Octoprint has a slight priority over user processes. NICELEVEL=-2 # Should we run at startup? START=yes /etc/init.d/octoprint is stock from the distro Output when I run it manually: root@orangepizero:/etc/init.d# octoprint Starting the server via "octoprint" is deprecated, please use "octoprint serve" from now on. 2016-12-30 00:22:16,473 - octoprint.server - INFO - Starting OctoPrint 1.3.0 (master branch) 2016-12-30 00:22:16,571 - octoprint.plugin.core - INFO - Loading plugins from /usr/local/lib/python2.7/dist-packages/OctoPrint-1.3.0-py2.7.egg/octoprint/plugins, /root/.octoprint/plugins and installed plugin packages... 2016-12-30 00:22:18,619 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available 2016-12-30 00:22:18,623 - octoprint.plugin.core - INFO - Found 7 plugin(s) providing 7 mixin implementations, 4 hook handlers You should not run OctoPrint as root! root@orangepizero:/etc/init.d# Any suggestions on how to figure out why it will not run via service octoprint start? Link to comment Share on other sites More sharing options...
Recommended Posts