Unable to access Octoprint via browser, "Connecting to OctoPrint's server..." but works via Octopod app on iPhone

Good morning all, it seems I've broken my Octoprint when doing an update, I can't tell you what version I previously had but it must have been eight months old at least:

What is the problem?

I updated a working octoprint installation from the UI, the system is running but no output to browser, after the login prompt I simply get " Connecting to OctoPrint's server..." and a spinning wheel. I can connect to the server using Octopod on my ios device but not by browser. I receive the login request, put in details and get no further. After the update of octoprint I also did a system update but still same issue.

What did you already try to solve it?

I've tried multiple browsers on multiple systems, I've cleared cache and cleared cookies.

I've tried to run the system in safemode by using: octoprint serve --safe

Have you tried running in safe mode and if so did it solve the issue?

Yes, system runs, but still cannot access web page, I can still access via octopod, but no camera streaming.

Complete Logs

puk@OctoPi3B:~/OctoPrint/venv $ octoprint serve --safe

2020-10-11 11:03:03,131 - octoprint.startup - INFO - ******************************************************************************

2020-10-11 11:03:03,134 - octoprint.startup - INFO - Starting OctoPrint 1.4.2

2020-10-11 11:03:03,135 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugins will be disabled!

2020-10-11 11:03:03,136 - octoprint.startup - INFO - Reason for safe mode: command line flag

2020-10-11 11:03:03,137 - octoprint.startup - INFO - ******************************************************************************

2020-10-11 11:03:03,848 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online

2020-10-11 11:03:03,870 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online

2020-10-11 11:03:03,871 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 192.168.0.2:53 is working

2020-10-11 11:03:03,873 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working

2020-10-11 11:03:04,113 - octoprint.startup - INFO - Blacklist processing done, adding 10 blacklisted plugin versions: roomtemp (any), GcodeEditor (0.1.1), GcodeEditor (0.2.0), GcodeEditor (0.2.1), GcodeEditor (0.2.2), GcodeEditor (0.2.3), GcodeEditor (0.2.4), GcodeEditor (0.2.5), GcodeEditor (0.2.6), GcodeEditor (0.2.8)

2020-10-11 11:03:04,147 - octoprint.plugin.core - INFO - Loading plugins from /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins, /home/puk/.octoprint/plugins and installed plugin packages...

2020-10-11 11:03:05,014 - octoprint.plugin.core - INFO - Plugin Anonymous Usage Tracking is disabled.

2020-10-11 11:03:05,785 - octoprint.plugins.octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available

2020-10-11 11:03:05,805 - octoprint.plugin.core - INFO - Found 23 plugin(s) providing 17 mixin implementations, 32 hook handlers

2020-10-11 11:03:06,071 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval

2020-10-11 11:03:06,097 - octoprint.server - INFO - Intermediary server started

2020-10-11 11:03:06,098 - octoprint.plugin.core - INFO - Loading plugins from /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins, /home/puk/.octoprint/plugins and installed plugin packages...

2020-10-11 11:03:06,305 - octoprint.plugin.core - INFO - Found 23 plugin(s) providing 17 mixin implementations, 32 hook handlers

2020-10-11 11:03:06,340 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/puk/.octoprint/uploads...

2020-10-11 11:03:07,123 - octoprint.filemanager.storage - INFO - ... file metadata for /home/puk/.octoprint/uploads initialized successfully.

2020-10-11 11:03:07,128 - octoprint.server - INFO - Added new permission from plugin action_command_notification: PLUGIN_ACTION_COMMAND_NOTIFICATION_SHOW (needs: u"Need(method='role', value=u'plugin_action_command_notification_show')")

2020-10-11 11:03:07,130 - octoprint.server - INFO - Added new permission from plugin action_command_notification: PLUGIN_ACTION_COMMAND_NOTIFICATION_CLEAR (needs: u"Need(method='role', value=u'plugin_action_command_notification_clear')")

2020-10-11 11:03:07,132 - octoprint.server - INFO - Added new permission from plugin action_command_prompt: PLUGIN_ACTION_COMMAND_PROMPT_INTERACT (needs: u"Need(method='role', value=u'plugin_action_command_prompt_interact')")

2020-10-11 11:03:07,133 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_READ (needs: u"Need(method='role', value=u'plugin_announcements_read')")

2020-10-11 11:03:07,135 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_MANAGE (needs: u"Need(method='role', value=u'plugin_announcements_manage'), Need(method='role', value=u'plugin_announcements_read')")

2020-10-11 11:03:07,136 - octoprint.server - INFO - Added new permission from plugin appkeys: PLUGIN_APPKEYS_ADMIN (needs: u"Need(method='role', value=u'plugin_appkeys_admin')")

2020-10-11 11:03:07,139 - octoprint.server - INFO - Added new permission from plugin backup: PLUGIN_BACKUP_ACCESS (needs: u"Need(method='role', value=u'plugin_backup_access')")

2020-10-11 11:03:07,141 - octoprint.server - INFO - Added new permission from plugin firmware_check: PLUGIN_FIRMWARE_CHECK_DISPLAY (needs: u"Need(method='role', value=u'plugin_firmware_check_display')")

2020-10-11 11:03:07,142 - octoprint.server - INFO - Added new permission from plugin logging: PLUGIN_LOGGING_MANAGE (needs: u"Need(method='role', value=u'plugin_logging_manage')")

2020-10-11 11:03:07,145 - octoprint.server - INFO - Added new permission from plugin pi_support: PLUGIN_PI_SUPPORT_STATUS (needs: u"Need(method='role', value=u'plugin_pi_support_check')")

2020-10-11 11:03:07,147 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_MANAGE (needs: u"Need(method='role', value=u'plugin_pluginmanager_manage')")

2020-10-11 11:03:07,149 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_INSTALL (needs: u"Need(method='role', value=u'plugin_pluginmanager_install'), Need(method='role', value=u'plugin_pluginmanager_manage')")

2020-10-11 11:03:07,151 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_CHECK (needs: u"Need(method='role', value=u'plugin_softwareupdate_check')")

2020-10-11 11:03:07,153 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_UPDATE (needs: u"Need(method='role', value=u'plugin_softwareupdate_update')")

2020-10-11 11:03:07,342 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk

2020-10-11 11:03:08,397 - octoprint.util.pip - INFO - Using "/usr/bin/python -m pip" as command to invoke pip

2020-10-11 11:03:09,442 - octoprint.util.pip - INFO - Version of pip is 20.1.1

2020-10-11 11:03:09,443 - octoprint.util.pip - INFO - pip installs to /usr/lib/python2.7/dist-packages (writable -> no), --user flag needed -> yes, virtual env -> no

2020-10-11 11:03:09,445 - octoprint.util.pip - INFO - ==> pip ok -> yes

2020-10-11 11:03:09,453 - octoprint.plugin.core - INFO - Initialized 17 plugin implementation(s)

2020-10-11 11:03:09,467 - octoprint.plugin.core - INFO - 23 plugin(s) registered with the system:

| Action Command Notification Support (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/action_command_notification

| Action Command Prompt Support (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt

| Announcement Plugin (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/announcements

| !Anonymous Usage Tracking (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/tracking

| Application Keys Plugin (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/appkeys

| Backup & Restore (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/backup

| !Bed Visualizer (0.1.15) = /home/puk/.local/lib/python2.7/site-packages/octoprint_bedlevelvisualizer

| Core Wizard (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/corewizard

| Discovery (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/discovery

| Error Tracking (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/errortracking

| File Check (2020.8.7) (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint_file_check

| Firmware Check (2020.9.23) (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint_firmware_check

| GCode Viewer (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/gcodeviewer

| Logging (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/logging

| Login UI (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/loginui

| !Octolapse (0.4.0) = /home/puk/.local/lib/python2.7/site-packages/octoprint_octolapse

| !OctoPod Plugin (0.2.9) = /home/puk/.local/lib/python2.7/site-packages/octoprint_octopod

| Pi Support Plugin (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/pi_support

| Plugin Manager (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/pluginmanager

| Software Update (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/softwareupdate

| !System Command Editor (0.3.4) = /home/puk/.local/lib/python2.7/site-packages/octoprint_systemcommandeditor

| !TouchUI (0.3.16) = /home/puk/.local/lib/python2.7/site-packages/octoprint_touchui

| Virtual Printer (bundled) = /home/puk/.local/lib/python2.7/site-packages/octoprint/plugins/virtual_printer

Prefix legend: ! = disabled, # = blacklisted, * = incompatible

2020-10-11 11:03:09,483 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:

| hardware:

| cores: 4

| freq: 1200.0

| ram: 1022779392

| os:

| id: linux

| platform: linux2

| plugins:

| pi_support:

| model: Raspberry Pi 3 Model B Rev 1.2

| python:

| pip: 20.1.1

| version: 2.7.16

2020-10-11 11:03:09,496 - octoprint.server - INFO - Reset webasset folder /home/puk/.octoprint/generated/webassets...

2020-10-11 11:03:09,524 - octoprint.server - INFO - Reset webasset folder /home/puk/.octoprint/generated/.webassets-cache...

2020-10-11 11:03:10,651 - octoprint.server - INFO - Shutting down intermediary server...

2020-10-11 11:03:10,900 - octoprint.server - INFO - Intermediary server shut down

2020-10-11 11:03:10,902 - octoprint.events - INFO - Processing startup event, this is our first event

2020-10-11 11:03:10,904 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event

2020-10-11 11:03:10,908 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...

2020-10-11 11:03:10,909 - octoprint.server - INFO - Autoconnect on startup is configured, trying to connect to the printer...

2020-10-11 11:03:11,074 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid

2020-10-11 11:03:11,714 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue

2020-10-11 11:03:12,758 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid

2020-10-11 11:03:13,085 - octoprint.server - INFO - Trying to connect to configured serial port /dev/ttyACM0

2020-10-11 11:03:13,141 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial connection"

2020-10-11 11:03:13,146 - octoprint.util.comm - INFO - Connecting to port /dev/ttyACM0, baudrate 115200

2020-10-11 11:03:13,154 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...

2020-10-11 11:03:13,159 - octoprint.server.util.watchdog - INFO - ... initial scan done.

2020-10-11 11:03:13,163 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial connection" to "Connecting"

2020-10-11 11:03:13,178 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0

2020-10-11 11:03:13,195 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on OctoPi3B for SSDP

2020-10-11 11:03:13,211 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0

2020-10-11 11:03:13,215 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Operational"

2020-10-11 11:03:13,229 - octoprint.server - INFO - Listening on http://127.0.0.1:5000

2020-10-11 11:03:13,291 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0

2020-10-11 11:03:13,501 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid

2020-10-11 11:03:13,671 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin bugfix-2.0.x (GitHub)"

2020-10-11 11:03:13,983 - octoprint.util.comm - INFO - Firmware states that it supports temperature autoreporting

2020-10-11 11:03:14,680 - octoprint.util.pip - INFO - Using "/usr/bin/python -m pip" as command to invoke pip

2020-10-11 11:03:14,681 - octoprint.util.pip - INFO - pip installs to /usr/lib/python2.7/dist-packages (writable -> no), --user flag needed -> yes, virtual env -> no

2020-10-11 11:03:14,681 - octoprint.util.pip - INFO - ==> pip ok -> yes

2020-10-11 11:03:14,736 - octoprint.plugins.softwareupdate - INFO - Minimum free storage across all update relevant locations is 22.9GB. That is considered sufficient for updating.

2020-10-11 11:03:15,716 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid

2020-10-11 11:03:15,727 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.0.4/'}

2020-10-11 11:03:25,084 - octoprint.server.preemptive_cache - INFO - ... done in 9.36s

2020-10-11 11:04:43,644 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.44

2020-10-11 11:04:44,064 - octoprint.server.util.flask - INFO - Passively logging in user _api from ::ffff:192.168.0.44

2020-10-11 11:04:44,067 - octoprint.access.users - INFO - Logged in user: _api

2020-10-11 11:04:44,146 - octoprint.server.util.sockjs - INFO - User _api logged in on the socket from client ::ffff:192.168.0.44

2020-10-11 11:05:07,841 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.44

WRITE HERE

Additional information about your setup

OctoPrint version 1.4.2, printer: Ender 3, firmware: Marlin2.0, browser: Chrome, Safari, Opera (plus same on ios devices), operating system: Mac (generally),

Any input would be greatly appreciated, many thanks!

try

~/OctoPrint/venv/bin/pip install --force-reinstall https://get.octoprint.org/latest

maybe the update got stuck at some point

Thankyou sir for the suggestion, I've tried this and still the same result.

I've just checked the developer console in chrome and get a lot of errors:

VM2259:42 Uncaught SyntaxError: Unexpected token ';'
packed_libs.js?728994bb:1 jQuery.Deferred exception: OCTOPRINT_VIEWMODELS is not defined ReferenceError: OCTOPRINT_VIEWMODELS is not defined
    at HTMLDocument.<anonymous> (http://192.168.0.4/static/webassets/packed_plugins.js?d4a06c23:6380:10)
    at l (http://192.168.0.4/static/webassets/packed_libs.js?728994bb:1:29375)
    at c (http://192.168.0.4/static/webassets/packed_libs.js?728994bb:1:29677) undefined
w.Deferred.exceptionHook @ packed_libs.js?728994bb:1
c @ packed_libs.js?728994bb:1
setTimeout (async)
(anonymous) @ packed_libs.js?728994bb:1
u @ packed_libs.js?728994bb:1
fireWith @ packed_libs.js?728994bb:1
fire @ packed_libs.js?728994bb:1
u @ packed_libs.js?728994bb:1
fireWith @ packed_libs.js?728994bb:1
ready @ packed_libs.js?728994bb:1
_ @ packed_libs.js?728994bb:1
packed_libs.js?728994bb:1 jQuery.Deferred exception: OCTOPRINT_VIEWMODELS is not defined ReferenceError: OCTOPRINT_VIEWMODELS is not defined
    at HTMLDocument.<anonymous> (http://192.168.0.4/static/webassets/packed_plugins.js?d4a06c23:8555:13)
    at l (http://192.168.0.4/static/webassets/packed_libs.js?728994bb:1:29375)
    at c (http://192.168.0.4/static/webassets/packed_libs.js?728994bb:1:29677) undefined

These are repeated over and over.

I get these in both safe mode and normal operation.

At this point I've forgotten why I installed this via venv rather than the image, I may just reinstall and start again, it's just annoying as was hoping to print some stuff today and typically I've broken it!

Yeah flashing a fresh image is probably the best idea