Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi Zero - Debian Jessie - getting Octoprint to auto-start

Featured Replies

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?
 
 
 
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.