Unable to get OctoPrint webpage to load

What is the problem?

Looks like something went wrong during startup, the server is gone again. You should check octoprint.log .

What did you already try to solve it?
Rebooted the pi
i am able to ssh to the pi

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

2018-10-23 08:48:01,924 - octoprint.plugin.core - INFO - 27 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
|  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
|  Detailed Progress Plugin (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_detailedprogress
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  Display ETA (1.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eta
| !DisplayLayerProgress Plugin (1.7.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress
|  DisplayProgress (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_displayprogress
|  EEPROM Marlin Editor Plugin (1.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eeprom_marlin
|  Emergency Stop Button (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_estop
|  Enclosure Plugin (4.12) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_enclosure
|  Fullscreen Plugin (0.0.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_fullscreen
|  Gcodebar Plugin (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_GCodeBar
|  LED Strip Control (0.3.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  M73-Progress-Plugin (0.1.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_m73progress
|  Navbar Temperature Plugin (0.11) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_navbartemp
|  Octolapse (0.3.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse
|  OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/octopi_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
|  Tempsgraph Plugin (0.3.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_tempsgraph
|  Title Status (0.0.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_title_status
|  TouchUI (0.3.12) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
2018-10-23 08:48:02,041 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1400.0
|    ram: 972234752
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    octopi_support:
|      model: unknown
|      revision: a020d3
|      version: 0.15.1
|  python:
|    pip: '18.0'
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
2018-10-23 08:48:02,067 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-10-23 08:48:02,073 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-10-23 08:48:02,137 - octoprint.plugins.octolapse - INFO - Octolapse is loading assets.
2018-10-23 08:48:17,602 - octoprint.startup - INFO - ******************************************************************************
2018-10-23 08:48:17,609 - octoprint.startup - INFO - Starting OctoPrint 1.3.9
2018-10-23 08:48:17,610 - octoprint.startup - INFO - ******************************************************************************
2018-10-23 08:48:17,815 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2018-10-23 08:48:18,534 - octoprint.startup - INFO - Blacklist processing done
2018-10-23 08:48:18,820 - 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...
2018-10-23 08:48:23,388 - octoprint.plugin.core - INFO - Plugin CuraEngine (<= 15.04) is disabled.
2018-10-23 08:48:27,313 - octoprint.plugin.core - INFO - Plugin DisplayLayerProgress Plugin (1.7.1) is disabled.
2018-10-23 08:48:27,448 - octoprint.plugin.core - INFO - Found 27 plugin(s) providing 25 mixin implementations, 29 hook handlers
2018-10-23 08:48:27,804 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2018-10-23 08:48:27,900 - octoprint.server - INFO - Intermediary server started
2018-10-23 08:48:27,901 - 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...
2018-10-23 08:48:29,566 - octoprint.plugin.core - INFO - Found 27 plugin(s) providing 25 mixin implementations, 29 hook handlers
2018-10-23 08:48:29,660 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2018-10-23 08:48:31,054 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2018-10-23 08:48:31,933 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2018-10-23 08:48:36,190 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2018-10-23 08:48:49,780 - octoprint.util.pip - INFO - Version of pip is 18.0
2018-10-23 08:48:49,782 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2018-10-23 08:48:49,784 - octoprint.util.pip - INFO - ==> pip ok -> yes
2018-10-23 08:48:49,796 - octoprint.plugin.core - INFO - Initialized 25 plugin implementation(s)


pi@Tronxy-P802MA:~ $ systemctl status octoprint.service
● octoprint.service - LSB: OctoPrint daemon
   Loaded: loaded (/etc/init.d/octoprint; generated; vendor preset: enabled)
   Active: active (running) since Tue 2018-10-23 08:48:06 EDT; 2min 50s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 316 ExecStart=/etc/init.d/octoprint start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/octoprint.service
           └─408 /home/pi/oprint/bin/python2 /home/pi/oprint/bin/octoprint serve --host=127.0.0.1 --port=5000

Oct 23 08:48:05 Tronxy-P802MA systemd[1]: Starting LSB: OctoPrint daemon...
Oct 23 08:48:06 Tronxy-P802MA octoprint[316]: Starting OctoPrint Daemon: OctoPrint.
Oct 23 08:48:06 Tronxy-P802MA systemd[1]: Started LSB: OctoPrint daemon.

Thanks

Mike

Please don't create multiple posts with the same content. Thanks.

The log shows that things are still loading. What comes after that in the logs?

Also, that's a lot of plugins. Safe mode is your friend.

I am having the same error message. It was working yesterday.

I am not even sure how to access the Pi3 to find the octoprint.log

Is there a resource someone can direct me to so I can do as much as I can before bothering folks?
FWIW, I installed OctoPrint last year and it has run flawlessly until this.

Thanks in advance!

Tom

Remote into your Raspberry using ssh (Mac) or putty (Windows). For me, that would be ssh pi@octopi.local using raspberry as the default password.

The log you want is ~/.octoprint/logs/octoprint.log.

Hey thanks! I am putty'd in, and am in the directory . Using CAT I can see the log. attempts to post tell me that I can only put 2 links in a post.

Totally lost, have no idea what to look for. Willing to learn.

I see one " Error"

NameError: global name 'self' is not defined

I bumped your forum rights up a notch so that you can post links.

Try System -> Restart in Safe Mode and try that.

1 Like

Thank you! Before I post the log, what is the cmd line command for what you listed above?

2018-11-09 12:37:25,153 - octoprint.server - INFO - Intermediary server started
2018-11-09 12:37:25,154 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-11-09 12:37:25,713 - octoprint.plugin.core - INFO - Found 24 plugin(s) providing 22 mixin implementations, 25 hook handlers
2018-11-09 12:37:25,788 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2018-11-09 12:37:42,568 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2018-11-09 12:37:43,102 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2018-11-09 12:37:48,887 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-11-09 12:37:53,862 - octoprint.util.pip - INFO - Version of pip is 9.0.3
2018-11-09 12:37:53,868 - octoprint.plugin.core - INFO - Initialized 22 plugin implementation(s)
2018-11-09 12:37:53,894 - octoprint.plugin.core - INFO - 24 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
| Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
| Cost Estimation (2.1.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_costestimation
| CR-10 Leveling Plugin (2.0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_CR10_Leveling
| CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
| Custom Background (0.9.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_custombackground
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
| Display ETA (1.0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eta
| EEPROM Marlin Editor Plugin (1.0.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eeprom_marlin
| Enclosure Plugin (4.04) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_enclosure
| !Filament Sensor Reloaded (1.0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filamentreload
| FileManager (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filemanager
| Gcodebar Plugin (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_GCodeBar
| OctoLapse (v0.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse
| OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
| OctoPrint Anywhere (0.6.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_anywhere
| Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/pluginmanager
| Preheat Button (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat
| Printer Stats (1.0.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_stats
| Pushbullet (0.1.9) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet
| Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate
| !TP-Link Smartplug (0.5.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_tplinksmartplug
| Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/virtual_printer
2018-11-09 12:37:57,405 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
| hardware:
| cores: 4
| freq: 1200.0
| ram: 904245248
| os:
| id: linux
| platform: linux2
| plugins:
| octopi_support:
| model: unknown
| revision: a02082
| version: 0.13.0
| python:
| pip: 9.0.3
| version: 2.7.9
| virtualenv: /home/pi/oprint
2018-11-09 12:37:57,422 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-11-09 12:37:57,457 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-11-09 12:37:57,505 - octoprint.plugins.octolapse - INFO - Octolapse is loading assets.
2018-11-09 12:37:57,983 - octoprint.server - INFO - Shutting down intermediary server...
2018-11-09 12:37:58,372 - octoprint.server - INFO - Intermediary server shut down
2018-11-09 12:37:58,375 - octoprint.events - INFO - Processing startup event, this is our first event
2018-11-09 12:37:58,376 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2018-11-09 12:37:58,378 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2018-11-09 12:38:02,675 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-11-09 12:38:03,639 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-11-09 12:38:04,207 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2018-11-09 12:38:04,551 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2018-11-09 12:38:04,994 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2018-11-09 12:38:05,012 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2018-11-09 12:38:06,706 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-11-09 12:38:06,802 - octoprint.server.util.sockjs - INFO - New connection from client: 127.0.0.1
2018-11-09 12:38:06,924 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-11-09 12:38:06,922 - octoprint.plugin - ERROR - Error while calling plugin stats
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/init.py", line 225, in call_plugin
result = getattr(plugin, method)(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_stats/init.py", line 515, in on_event
self.statDB.execute(sql)
AttributeError: 'StatsPlugin' object has no attribute 'statDB'
2018-11-09 12:38:07,392 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-11-09 12:38:07,637 - octoprint.plugins.octobullet - ERROR - Invalid Pushbullet API key, please check your configuration!
2018-11-09 12:38:07,775 - octoprint.plugins.octolapse - INFO - Loading existing settings file from: /home/pi/.octoprint/data/octolapse/settings.json.
2018-11-09 12:38:07,934 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-11-09 12:38:08,827 - octoprint.plugins.stats - INFO - Printer Stats
2018-11-09 12:38:08,834 - octoprint.plugins.softwareupdate - ERROR - Error while retrieving update information from plugin octoprint_eta
Traceback (most recent call last):
File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate/init.py", line 111, in _get_configured_checks
hook_checks = hook()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eta/init.py", line 65, in get_update_information
displayName=self._plugin_name,
NameError: global name 'self' is not defined
2018-11-09 12:38:08,978 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-11-09 12:38:09,013 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin TinyMachines3D.com (Github)"
2018-11-09 12:38:09,291 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-11-09 12:38:12,215 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.1.119/'}
2018-11-09 12:38:13,932 - octoprint.util.comm - WARNING - Printer sent 'start' while already operational. External reset? Resetting line numbers to be on the safe side
2018-11-09 12:38:17,514 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2018-11-09 12:38:42,490 - octoprint.server.preemptive_cache - INFO - ... done in 30.28s
2018-11-09 12:39:17,579 - octoprint.util.comm - INFO - Communication timeout while idle, trying to trigger response from printer.
2018-11-09 12:39:17,602 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0

Actually, it's here in the menu:

38%20AM

Looks like the octoprint_eta plugin isn't happy.

So I guess you're saying that since you can't get the page to load, you can't then get to that menu item which allows you to go into Safe mode (long enough to disable that plugin)...?

Three ways to go into Safe Mode.

So, from the command line, having remoted in: octoprint safemode

1 Like

:spiral_notepad: Note

OctoPi users : For you that’s ~/oprint/bin/octoprint wherever it says just octoprint .

2 Likes

Excellent. Thank you! Am rebooting in safe mode and will report back when I have something to report.

Thanks for your help!

Once in, disable that problematic plugin as indicated and in theory it should boot normally after that.

Happy to report return to function!

Thanks to you both for your help!

Tom

1 Like

It's good karma to go visit the plugin author's repository and research and possibly open an issue related to what you observed.