Octoprint giving me a blank page in OrangePi Lite


#1

What is the problem?
I downloaded stable release of Octoptint 1.3.10 into OrangePi Lite with Armbian.

Linux orangepilite 4.19.17-sunxi #5.73 SMP Mon Jan 28 21:06:40 CET 2019 armv7l armv7l armv7l GNU/Linux

Installed after lots of trouble the dependencies (some did it manually). I start the server with ./run (just because 'octoprint serve' simply doesn't works at all and locate doesn't shows that file anywhere). And everything seems running perfectly (no errors reported) except that when I point my browser to ip:5000 it just gives me a blank page:

HTTP/1.1 200 OK
Content-Length: 0
X-Robots-Tag: noindex, nofollow, noimageindex
Expires: -1
Last-Modified: Wed, 30 Jan 2019 00:12:48 GMT
Etag: "202098362ebf9b9ebdbf3e418e695eafaac4de18"
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: text/html; charset=utf-8

Any ideas on why octoprints comes out so broken?

What did you already try to solve it?

Commented out the check for root in the server python file init.py to be able to launch it as root.
Disabled caching in config.yaml
Disabled api in config.yaml
configured interface in config.yaml
Increased swap file to 512 mb

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

Given already


#2

And I also removed protected mode. Nothing. It just says logging in with dummy user.


#3

2019-01-30 06:33:55,091 - octoprint.startup - INFO - ******************************************************************************
2019-01-30 06:33:55,094 - octoprint.startup - INFO - Starting OctoPrint 1.3.10
2019-01-30 06:33:55,096 - octoprint.startup - INFO - ******************************************************************************
2019-01-30 06:33:55,847 - octoprint.plugin.core - INFO - Loading plugins from /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins, /home/octoprint/.octoprint/plugins and installed plugin packages...
2019-01-30 06:33:57,057 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin did not pass check, not loading.
2019-01-30 06:33:57,691 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available
2019-01-30 06:33:57,709 - octoprint.plugin.core - INFO - Found 14 plugin(s) providing 14 mixin implementations, 17 hook handlers
2019-01-30 06:33:57,830 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-01-30 06:33:57,863 - octoprint.server - INFO - Intermediary server started
2019-01-30 06:33:57,864 - octoprint.plugin.core - INFO - Loading plugins from /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins, /home/octoprint/.octoprint/plugins and installed plugin packages...
2019-01-30 06:33:57,892 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin did not pass check, not loading.
2019-01-30 06:33:58,048 - octoprint.plugin.core - INFO - Found 14 plugin(s) providing 14 mixin implementations, 17 hook handlers
2019-01-30 06:33:58,093 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/octoprint/.octoprint/uploads...
2019-01-30 06:33:58,096 - octoprint.filemanager.storage - INFO - ... file metadata for /home/octoprint/.octoprint/uploads initialized successfully.
2019-01-30 06:33:58,139 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-01-30 06:34:03,268 - octoprint.util.pip - INFO - Using "/usr/bin/python2 -m pip" as command to invoke pip
2019-01-30 06:34:08,387 - octoprint.util.pip - INFO - Version of pip is 9.0.1
2019-01-30 06:34:08,440 - octoprint.util.pip - INFO - pip installs to /usr/lib/python2.7/dist-packages (writable -> no), --user flag needed -> yes, virtual env -> no
2019-01-30 06:34:08,441 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-01-30 06:34:08,448 - octoprint.plugin.core - INFO - Initialized 14 plugin implementation(s)
2019-01-30 06:34:08,459 - octoprint.plugin.core - INFO - 14 plugin(s) registered with the system:
| Action Command Prompt Support (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/action_command_prompt
| Announcement Plugin (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/announcements
| Anonymous Usage Tracking (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/tracking
| Application Keys Plugin (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/appkeys
| Backup & Restore (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/backup
| Core Wizard (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/corewizard
| CuraEngine (<= 15.04) (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/cura
| Discovery (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/discovery
| Force Login (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/forcelogin
| Logging (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/logging
| Plugin Manager (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/pluginmanager
| Printer Safety Check (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/printer_safety_check
| Software Update (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/softwareupdate
| Virtual Printer (bundled) = /home/octoprint/OctoPrint-1.3.10/src/octoprint/plugins/virtual_printer
2019-01-30 06:34:08,479 - octoprint.environment - INFO - Detected environment is Python 2.7.15rc1 under Linux (linux2). Details:
| hardware:
| cores: 4
| freq: 1200.0
| ram: 483958784
| os:
| id: linux
| platform: linux2
| python:
| pip: 9.0.1
| version: 2.7.15rc1
2019-01-30 06:34:08,490 - octoprint.server - INFO - Reset webasset folder /home/octoprint/.octoprint/generated/webassets...
2019-01-30 06:34:08,492 - octoprint.server - INFO - Reset webasset folder /home/octoprint/.octoprint/generated/.webassets-cache...
2019-01-30 06:34:08,977 - octoprint.server - INFO - Shutting down intermediary server...
2019-01-30 06:34:09,409 - octoprint.server - INFO - Intermediary server shut down
2019-01-30 06:34:09,413 - octoprint.events - INFO - Processing startup event, this is our first event
2019-01-30 06:34:09,414 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2019-01-30 06:34:09,417 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-01-30 06:34:09,426 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-01-30 06:34:09,434 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured or does not exist (currently set to None), Cura will not be selectable for slicing
2019-01-30 06:34:09,445 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on orangepilite for SSDP
2019-01-30 06:34:09,453 - octoprint.server - INFO - Listening on http://[::]:5000
2019-01-30 06:34:09,495 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-01-30 06:34:10,045 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-01-30 06:34:14,699 - octoprint.util.pip - INFO - Using "/usr/bin/python2 -m pip" as command to invoke pip
2019-01-30 06:34:14,702 - octoprint.util.pip - INFO - pip installs to /usr/lib/python2.7/dist-packages (writable -> no), --user flag needed -> yes, virtual env -> no
2019-01-30 06:34:14,702 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-01-30 06:34:14,764 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.200.143:5000/'}
2019-01-30 06:34:15,871 - octoprint.server.preemptive_cache - INFO - ... done in 1.11s
2019-01-30 06:48:57,834 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 07:03:57,838 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 07:18:57,840 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 07:33:57,842 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 07:48:57,845 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 08:03:57,848 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 08:18:57,851 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 08:25:00,344 - tornado.access - WARNING - 404 GET /favicon.ico (192.168.200.141) 8.89ms
2019-01-30 08:33:57,855 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-01-30 08:36:39,220 - octoprint.server - INFO - Shutting down...
2019-01-30 08:36:39,312 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2019-01-30 08:36:39,314 - octoprint.events - INFO - Event loop shut down
2019-01-30 08:36:39,339 - octoprint.server - INFO - Goodbye!


#4

I start the server with ./run (just because 'octoprint serve' simply doesn't works at all and locate doesn't shows that file anywhere).

Did you install octoprint in a virtualenv or did you "accidentally" install it globally? What were the steps you used to install it?

Commented out the check for root in the server python file init .py to be able to launch it as root.
Disabled caching in config.yaml
Disabled api in config.yaml
configured interface in config.yaml
Increased swap file to 512 mb

Wipe your sd card and start again. If you're going to manually edit files and mess with things, you're going to leave it in an unknown state. There are command line options that let you start it as root (which you shouldn't be doing anyway, there's no need), not sure why you're disabling the api.

Start again from scratch, it sounds like you've tried to install octoprint globally? (since you say you're trying to run it as root?). Set up a normal user, install it under that user, and just run it. I don't know about orangepi's but I've installed it under Armbian on my pcduino3b and yes, some of the dependencies have to be manually installed, but at no time did I ever have to modify any of octoprint's core files to make it work.


#5

Thanks for your reply. I followed this script adapting it to my box and it is working flawlessly now:

By what I understand need to launch it from virtual environment. And add the start scripts to the system that seems come with octopi. No need to wipe the SD :smiley: Fortunately since is a load of work.