Octoprint not running after changing port

Hey there! My problem: when I open octoprint in my browser, I get the "server is currently not running" site.

So I installed octopi on my raspberry pi 3B+, configured it for my network and set it up.
After that, I changed the frontend port to 81 and the ssl to 444 (in haproxy.cfg) and installed apache2+wordpress+noip2 to host a website on port 80.
Then I wanted to log in to octopi on port 81 but after reloading I always got this site " The OctoPrint server is currently not running".
I followed the steps and tried this command: "pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python" and got no output.'
.octoprint/logs/octoprint.log says:

$
octoprint.server.heartbeat - INFO - Server heartbeat <3
octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
octoprint.server - INFO - OctoPrint 1.3.10
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
|  CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  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-08-23 16:51:51,549 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1400.0
|    ram: 918188032
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Plus Rev 1.3
|      octopi_version: 0.16.0
|  python:
|    pip: 19.0.1
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
octoprint.server - INFO - ------------------------------------------------------------------------------
octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 2.4e+07s
2019-08-23 16:51:55,649 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 16:52:00,971 - octoprint.server.util.flask.PreemptiveCache - INFO - Adding entry for / and {'query_string': 'l10n=de', 'path': u'/', '_count': 1, '_timestamp': 1566575520.971097, 'base_url': 'http://192.168.0.135/'}
2019-08-23 16:52:01,621 - 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-08-23 16:52:01,621 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 16:52:01,642 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2019-08-23 16:52:01,675 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://192.168.0.135/'}
2019-08-23 16:52:16,149 - octoprint.server.preemptive_cache - INFO - ... done in 14.47s
2019-08-23 16:52:20,230 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.129
2019-08-23 16:54:02,645 - octoprint.server.api - INFO - Actively logging in user Mitschael from ::ffff:192.168.0.129
2019-08-23 16:54:03,407 - octoprint.plugins.announcements - INFO - Loaded channel _important from https://octoprint.org/feeds/important.xml in 0.34s
2019-08-23 16:54:03,942 - octoprint.plugins.announcements - INFO - Loaded channel _releases from https://octoprint.org/feeds/releases.xml in 0.28s
2019-08-23 16:54:04,360 - octoprint.plugins.announcements - INFO - Loaded channel _blog from https://octoprint.org/feeds/octoblog.xml in 0.29s
2019-08-23 16:54:04,763 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 0.34s
2019-08-23 16:54:05,758 - octoprint.server.util.sockjs - INFO - User Mitschael logged in on the socket from client ::ffff:192.168.0.129
2019-08-23 16:54:11,638 - octoprint.plugins.tracking - INFO - Initialized anonymous tracking
2019-08-23 16:54:12,174 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'python': '2.7.13', 'ram': 918188032, 'octopi_version': '0.16.0', 'version': u'1.3.10', 'pip': '19.0.1', 'cores': 4, 'freq': 1400.0, 'p$
2019-08-23 16:55:39,162 - octoprint.startup - INFO - ******************************************************************************
2019-08-23 16:55:39,164 - octoprint.startup - INFO - Starting OctoPrint 1.3.10
2019-08-23 16:55:39,166 - octoprint.startup - INFO - ******************************************************************************
2019-08-23 16:55:40,273 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2019-08-23 16:55:40,364 - 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-08-23 16:55:42,748 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-08-23 16:55:42,868 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-08-23 16:55:42,916 - octoprint.server - INFO - Intermediary server started
2019-08-23 16:55:42,916 - 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-08-23 16:55:43,438 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-08-23 16:55:43,475 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-08-23 16:55:43,476 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-08-23 16:55:43,493 - octoprint.plugins.tracking - INFO - Initialized anonymous tracking
2019-08-23 16:55:43,526 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-08-23 16:55:45,468 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 16:55:46,888 - octoprint.util.pip - INFO - Version of pip is 19.0.1
2019-08-23 16:55:46,890 - 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-08-23 16:55:46,890 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 16:55:46,895 - octoprint.plugin.core - INFO - Initialized 15 plugin implementation(s)
2019-08-23 16:55:46,905 - 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
|  CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  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-08-23 16:55:46,923 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1400.0
|    ram: 918188032
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Plus Rev 1.3
|      octopi_version: 0.16.0
|  python:
|    pip: 19.0.1
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
2019-08-23 16:55:46,932 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2019-08-23 16:55:46,946 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2019-08-23 16:55:47,300 - octoprint.server - INFO - Shutting down intermediary server...
2019-08-23 16:55:47,443 - octoprint.server - INFO - Intermediary server shut down
2019-08-23 16:55:47,447 - octoprint.events - INFO - Processing startup event, this is our first event
2019-08-23 16:55:47,449 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2019-08-23 16:55:47,455 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-08-23 16:55:47,465 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-08-23 16:55:47,477 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _http._tcp
2019-08-23 16:55:47,488 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _octoprint._tcp
2019-08-23 16:55:47,509 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2019-08-23 16:55:47,518 - octoprint.plugins.pluginmanager - INFO - Looks like we are offline, can't fetch repository from network
2019-08-23 16:55:47,519 - octoprint.plugins.pluginmanager - INFO - Looks like we are offline, can't fetch notices from network
2019-08-23 16:55:48,933 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 16:55:48,935 - 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-08-23 16:55:48,935 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 16:55:50,332 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 16:55:54,655 - 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-08-23 16:55:54,656 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 16:55:54,673 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2019-08-23 16:55:54,717 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://192.168.0.135/'}
2019-08-23 16:56:05,881 - octoprint.server.preemptive_cache - INFO - ... done in 11.16s
2019-08-23 19:58:13,123 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-08-23 19:58:13,161 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2019-08-23 19:58:13,774 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json
2019-08-23 19:58:14,270 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2019-08-23 19:58:14,540 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2019-08-23 20:13:13,126 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-08-23 20:13:13,648 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {}
2019-08-23 20:17:24,047 - octoprint.server.util.flask - INFO - Passively logging in user Mitschael from ::ffff:192.168.0.129
2019-08-23 20:18:05,220 - octoprint.server - INFO - Shutting down...
2019-08-23 20:18:05,573 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2019-08-23 20:18:05,574 - octoprint.events - INFO - Event loop shut down
2019-08-23 20:18:05,590 - octoprint.server - INFO - Goodbye!
2019-08-23 20:18:13,141 - octoprint.startup - INFO - ******************************************************************************
2019-08-23 20:18:13,143 - octoprint.startup - INFO - Starting OctoPrint 1.3.10
2019-08-23 20:18:13,145 - octoprint.startup - INFO - ******************************************************************************
2019-08-23 20:18:14,315 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2019-08-23 20:18:14,384 - 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-08-23 20:18:16,743 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-08-23 20:18:16,862 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-08-23 20:18:16,911 - octoprint.server - INFO - Intermediary server started
2019-08-23 20:18:16,913 - 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-08-23 20:18:17,485 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-08-23 20:18:17,525 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-08-23 20:18:17,527 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-08-23 20:18:17,543 - octoprint.plugins.tracking - INFO - Initialized anonymous tracking
2019-08-23 20:18:17,576 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-08-23 20:18:19,364 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 20:18:20,952 - octoprint.util.pip - INFO - Version of pip is 19.0.1
2019-08-23 20:18:20,954 - 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-08-23 20:18:20,955 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 20:18:20,960 - octoprint.plugin.core - INFO - Initialized 15 plugin implementation(s)
2019-08-23 20:18:20,969 - 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
|  CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  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-08-23 20:18:21,000 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1400.0
|    ram: 918188032
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Plus Rev 1.3
|      octopi_version: 0.16.0
|  python:
|    pip: 19.0.1
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
2019-08-23 20:18:21,024 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2019-08-23 20:18:21,053 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2019-08-23 20:18:21,782 - octoprint.server - INFO - Shutting down intermediary server...
2019-08-23 20:18:22,063 - octoprint.server - INFO - Intermediary server shut down
2019-08-23 20:18:22,066 - octoprint.events - INFO - Processing startup event, this is our first event
2019-08-23 20:18:22,068 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2019-08-23 20:18:22,070 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-08-23 20:18:22,076 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-08-23 20:18:22,094 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _http._tcp
2019-08-23 20:18:22,109 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _octoprint._tcp
2019-08-23 20:18:22,124 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2019-08-23 20:18:22,139 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2019-08-23 20:18:22,275 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-08-23 20:18:22,812 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-08-23 20:18:23,702 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 20:18:23,704 - 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-08-23 20:18:23,705 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 20:18:23,774 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2019-08-23 20:18:23,797 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-08-23 20:18:24,347 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-08-23 20:18:24,593 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'python': '2.7.13', 'ram': 918188032, 'octopi_version': '0.16.0', 'version': u'1.3.10', 'pip': '19.0.1', 'cores': 4, 'freq': 1400.0, 'p$
2019-08-23 20:18:34,876 - octoprint.server.preemptive_cache - INFO - ... done in 10.53s
2019-08-23 20:20:17,213 - octoprint.server - INFO - Shutting down...
2019-08-23 20:20:17,900 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2019-08-23 20:20:17,903 - octoprint.events - INFO - Event loop shut down
2019-08-23 20:20:17,922 - octoprint.server - INFO - Goodbye!
2019-08-23 20:20:25,166 - octoprint.startup - INFO - ******************************************************************************
2019-08-23 20:20:25,168 - octoprint.startup - INFO - Starting OctoPrint 1.3.10
2019-08-23 20:20:25,169 - octoprint.startup - INFO - ******************************************************************************
2019-08-23 20:20:26,568 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2019-08-23 20:20:26,638 - 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-08-23 20:20:29,047 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-08-23 20:20:29,212 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-08-23 20:20:29,265 - octoprint.server - INFO - Intermediary server started
2019-08-23 20:20:29,266 - 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-08-23 20:20:29,785 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-08-23 20:20:29,821 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-08-23 20:20:29,822 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-08-23 20:20:29,839 - octoprint.plugins.tracking - INFO - Initialized anonymous tracking
2019-08-23 20:20:29,872 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-08-23 20:20:31,664 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-08-23 20:20:33,258 - octoprint.util.pip - INFO - Version of pip is 19.0.1
2019-08-23 20:20:33,260 - 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-08-23 20:20:33,261 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 20:20:33,267 - octoprint.plugin.core - INFO - Initialized 15 plugin implementation(s)
2019-08-23 20:20:33,278 - 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
|  CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  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-08-23 20:20:33,300 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1400.0
|    ram: 918188032
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Plus Rev 1.3
|      octopi_version: 0.16.0
|  python:
|    pip: 19.0.1
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
2019-08-23 20:20:33,318 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2019-08-23 20:20:33,345 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2019-08-23 20:20:33,911 - octoprint.server - INFO - Shutting down intermediary server...
2019-08-23 20:20:34,308 - octoprint.server - INFO - Intermediary server shut down
2019-08-23 20:20:34,313 - octoprint.events - INFO - Processing startup event, this is our first event
2019-08-23 20:20:34,314 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2019-08-23 20:20:34,320 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-08-23 20:20:34,330 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-08-23 20:20:34,366 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _http._tcp
2019-08-23 20:20:34,394 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance on octopi' for _octoprint._tcp
2019-08-23 20:20:34,405 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2019-08-23 20:20:34,423 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2019-08-23 20:20:34,464 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-08-23 20:20:35,055 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-08-23 20:20:35,928 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bi$
2019-08-23 20:20:35,930 - octoprint.util.pip - INFO - pip installs to /home/pi/$
2019-08-23 20:20:35,931 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-08-23 20:20:36,023 - octoprint.util.connectivity_checker - INFO - Connecti$
2019-08-23 20:20:36,047 - octoprint.plugins.pluginmanager - INFO - Loaded plugi$
2019-08-23 20:20:36,440 - octoprint.plugins.pluginmanager - INFO - Loaded notic$
2019-08-23 20:20:36,587 - octoprint.server.preemptive_cache - INFO - Preemptive$
2019-08-23 20:20:36,984 - octoprint.plugins.tracking - INFO - Sent tracking eve$
2019-08-23 20:20:47,317 - octoprint.server.preemptive_cache - INFO - ... done i$
2019-08-23 20:21:47,556 - octoprint.server - INFO - Shutting down...
2019-08-23 20:21:47,737 - octoprint.events - INFO - Processing shutdown event, $
2019-08-23 20:21:47,738 - octoprint.events - INFO - Event loop shut down
2019-08-23 20:21:47,753 - octoprint.server - INFO - Goodbye!

I also tried to put it on another port (e.g. 5001) but same here.
This is my haproxy.cfg file (got it from here (I tried the default before but no difference)):

global
        maxconn 4096
        user haproxy
        group haproxy
        tune.ssl.default-dh-param 1024
        log 127.0.0.1 local1 debug

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option redispatch
        option http-server-close
        option forwardfor
        maxconn 2000
        timeout connect 5s
        timeout client  15min
        timeout server  15min

frontend public
        bind *:81
        option forwardfor except 127.0.0.1
        use_backend webcam if { path_beg /webcam/ }
        default_backend octoprint
        errorfile 503 /etc/haproxy/errors/503-no-octoprint.http

frontend internet
        bind 0.0.0.0:444 ssl crt /etc/ssl/snakeoil.pem
        option forwardfor except 127.0.0.1
        acl Authorization http_auth(inetusers)
        http-request auth realm octoprint if !Authorization
        use_backend webcam if { path_beg /webcam/ }
        default_backend octoprint
        errorfile 503 /etc/haproxy/errors/503-no-octoprint.http

frontend webcamonly
        bind *:9080
        option forwardfor except 127.0.0.1
        default_backend webcamstream
        errorfile 503 /etc/haproxy/errors/503-no-octoprint.http

backend octoprint
        reqrep ^([^\ :]*)\ /(.*) \1\ /\2
        reqadd X-Scheme:\ https if { ssl_fc }
        option forwardfor
        server octoprint1 127.0.0.1:5000

backend webcam
        reqrep ^([^\ :]*)\ /webcam/(.*)     \1\ /\2
        server webcam1  127.0.0.1:8080

backend webcamstream
        reqrep ^([^\ :]*)\ /(.*)   \1\ /\?action=stream
        server webcam1  127.0.0.1:8080

userlist inetusers
        group G1
        user [user] insecure-password [password] groups G1

(And I obviously tried to restart octoprint and reboot the pi too.)
I'm sorry for pasting in so much code but I wanted to make sure that there isn't missing a thing.

After searching through the forum, I found that after this "~/oprint/bin/octoprint serve" I get this: 2019-08-24 11:30:43,247 - octoprint.startup - CRITICAL - Could not initialize settings manager: Folder at /home/pi/.octoprint/scripts doesn't appear to be writable, please fix its permissions 2019-08-24 11:30:43,247 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint. Could not initialize settings manager: Folder at /home/pi/.octoprint/scripts doesn't appear to be writable, please fix its permissions There was a fatal error starting up OctoPrint.
After giving permission (sudo chmod a+w path_to_the_file) I got this:
octoprint.startup - CRITICAL - Could not initialize lo gging: Unable to configure handler 'file': [Errno 13] Permission denied: '/home/ pi/.octoprint/logs/octoprint.log' octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint. Could not initialize logging: Unable to configure handler 'file': [Errno 13] Per mission denied: '/home/pi/.octoprint/logs/octoprint.log' There was a fatal error starting up OctoPrint

Thanks in advance!

1 Like

At some point you apparently managed to break the permissions of the whole config directory. Used sudo for something that doesn't need it by any chance? That would do it.

To possibly fix (and yes, here you do need sudo here):

sudo chown -R pi:pi /home/pi/.octoprint

Is it a colon or a period there between user:group?

It was a period, but it should have been a colon. Thanks for the catch.

The top dot was probably off getting coffee somewhere...

In my defense, . and : are the same key on a german layout, so a half hearted shift press is all that it takes :wink:

1 Like

If I recall correctly, there was a time when you could use a . instead of a : in chown syntax.

That would explain why it didn't look wrong to me. A long time ago in a galaxy far far away I used to be a Linux & Solaris sysadmin...

1 Like

Hey guys!
Thanks for the help and sorry for the late response.
I tried to fix it with "sudo chmod a+w all_files_which_were_making_problems" and it seemed to work. Probably sudo chown -R pi:pi /home/pi/.octoprint would be the better solution.

BUT: After that, I set up octoprint, apache, wordpress and noip on a completely new SD Card and this time I didn't got any issues.

Thanks for helping though!