The Octoprint server fails to load on the browser's IP address, displaying only a blank page

What is the problem?

I haven't used my printer in almost 6 month. Today i plugged it to print something an i couldn't log in to the server. First, the server didn't initialize, after trying multiple solutions now the server starts. But when i put the ip or octopi.local, the web remains blank (not even appears the login to write the username and password).

What should i do? any hints of what could be happening?

I'm whiling to keep all the data and configurations (gcodes, relays and timelapses) :pray:

PD: At night i'm going to try to run on safer mode.
Is this line the one to start the safer mode through SSH? :
octoprint config set --bool server.startOnceInSafeMode true

What did you already try to solve it?

:paperclip: logs files

:white_check_mark: Then i changed the wifi credentials on the usb cause i've changed the password.

first it showed this message:

The OctoPrint server is currently not running
If you just started up your Raspberry Pi, please wait a couple of seconds, then try to refresh this page.

If the issue persists, please log into your Raspberry Pi via SSH and check the following:

Verify that the process is running: ps -ef | grep -i octoprint | grep -i python should show a python process:
pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi 1441 1 6 11:12 ? 00:00:15 /home/pi/oprint/bin/python
/home/pi/oprint/bin/octoprint --host=127.0.0.1 --port=5000
If it isn't, the question is why. Take a look into ~/.octoprint/logs/octoprint.log, there might be an error logged in there that helps to determine what's wrong.
You might also want to try if you can restart the server (if no obvious error is visible): sudo service octoprint restart.
If all that doesn't help to trouble shoot the issue, you can seek support on the OctoPrint Community Forum. Please provide your OctoPi and OctoPrint versions as well as your octoprint.log and explain what you already tried and observed as detailed as possible.

via SSH none of the followings commands worked.

:white_check_mark: then i tried updating octoprint with this line
~/oprint/bin/pip install --force-reinstall OctoPrint==X.X.X --no-cache-dir
it didn't worked but it asked to update pip. so i did

:white_check_mark: then, i erased translation folder

:white_check_mark: then, i restarted server, reboot the raspberry

:white_check_mark: then when i ran the server, the login box appeared on the octopi.local an with the ip.

:white_check_mark: I tried login (100% sure that username and password were right) but each time i wrote the credential it cleared(get blank spaces back) without showing at least the expected error message saying the credentials were wrong.

:white_check_mark: then i tried removing the user, so i erased the config.user yaml file and restarted the server.

:white_check_mark: if i run /home/pi/oprint/bin/octoprint serve this prints:

/home/pi/oprint/bin/octoprint serve
2023-05-03 13:01:47,866 - octoprint.startup - INFO - ******************************************************************************
2023-05-03 13:01:47,869 - octoprint.startup - INFO - Starting OctoPrint 1.8.2
2023-05-03 13:01:47,870 - octoprint.startup - INFO - ******************************************************************************

:paperclip: more info in the txt file serverinit.log because there are to many lines...

this message appears by runing ps -ef | grep -i octoprint | grep -i python starting the server:

pi@octopi:~ $  ps -ef | grep -i octoprint | grep -i python
pi         355     1 84 12:56 ?        00:05:57 /home/pi/oprint/bin/python3 /home/pi/oprint/bin/octoprint serve --host=127.0.0.1 --port=5000
pi        4815   355 45 13:02 ?        00:00:20 /home/pi/oprint/bin/python3 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.01 --throttle-lines=100 --bed-z=0.0 /home/pi/.octoprint/uploads/CE3_cocker.gcode

:white_check_mark: Finally, now i try to connect through the IP and it acts like is initializing the server but once it loads it remains blank. Not even appears the login boxes, just a blank website.

:white_check_mark: i've tried to open the logs file with cat but the message is so large i can't copy all of them.

  return loader.get_source(environment, template)
  File "/home/pi/oprint/lib/python3.7/site-packages/jinja2/loaders.py", line 558, in get_source
    return loader.get_source(environment, template)
  File "/home/pi/oprint/lib/python3.7/site-packages/jinja2/loaders.py", line 507, in get_source
    return loader.get_source(environment, name)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/jinja.py", line 47, in get_source
    return FileSystemLoader.get_source(self, environment, template)
  File "/home/pi/oprint/lib/python3.7/site-packages/jinja2/loaders.py", line 204, in get_source
    contents = f.read().decode(self.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 26: invalid start byte
2023-05-03 06:02:38,553 - octoprint.filemanager.analysis - INFO - Analysis of entry 

:paperclip: more info in the txt file logs_from_cat.log because is to may lines...

Have you tried running in safe mode?

NOT YET

Did running in safe mode solve the problem?

N/A

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

CAN'T ACCES

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

Ender3, OctoPrint 1.8.2, browser: chrome and brave with same results, putty on windows 10 to acces via SSH

Hello @Julio_Cuadros !

Have you tried

  • Restarting the router
  • Restarting the PC where the browser runs on
  • Deleting the site memory (Crtl F5)

BTW: I first was a bit confused by the abbreviation OP in your topic. On forum sites it's usually used for Original Poster, not for OctoPrint or OctoPi

Hello @Ewald_Ikemann . Understood, now I've edited the title to avoid confusion with the abbreviation. I'll try those three options tonight and i'll let you know any updates. Do you know if this line octoprint config set --bool server.startOnceInSafeMode true can activate the safemode?

1 Like

Yes, it does, as it is described here:

https://docs.octoprint.org/en/master/features/safemode.html

(BTW: It's the same link as safe mode)

@Ewald_Ikemann i've tried safemode

oprint/bin/octoprint serve --safe

and this is the result:

2023-05-04 04:08:03,124 - octoprint.startup - INFO - ******************************************************************************
2023-05-04 04:08:03,126 - octoprint.startup - INFO - Starting OctoPrint 1.8.2
2023-05-04 04:08:03,127 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugins will be disabled!
2023-05-04 04:08:03,128 - octoprint.startup - INFO - Reason for safe mode: command line flag
2023-05-04 04:08:03,128 - octoprint.startup - INFO - ******************************************************************************
2023-05-04 04:08:03,646 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online
2023-05-04 04:08:03,920 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2023-05-04 04:08:03,920 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2023-05-04 04:08:03,920 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2023-05-04 04:08:04,624 - octoprint.startup - INFO - Blacklist processing done, adding 3 blacklisted plugin versions: roomtemp (any), GcodeEditor (>=0.1.1,<=0.2.8), gco                             deleveling (>=0.1.0,<=0.1.1)
2023-05-04 04:08:04,632 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins                              and installed plugin packages...
--- Logging error ---
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 627, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python3.7/logging/__init__.py", line 577, in formatException
    traceback.print_exception(ei[0], ei[1], tb, None, sio)
  File "/usr/lib/python3.7/traceback.py", line 104, in print_exception
    type(value), value, tb, limit=limit).format(chain=chain):
  File "/usr/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/usr/lib/python3.7/traceback.py", line 363, in extract
    f.line
  File "/usr/lib/python3.7/traceback.py", line 285, in line
    self._line = linecache.getline(self.filename, self.lineno).strip()
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 16, in getline
    lines = getlines(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 47, in getlines
    return updatecache(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 137, in updatecache
    lines = fp.readlines()
  File "/home/pi/oprint/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 27: invalid continuation byte
Call stack:
Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 627, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python3.7/logging/__init__.py", line 577, in formatException
    traceback.print_exception(ei[0], ei[1], tb, None, sio)
  File "/usr/lib/python3.7/traceback.py", line 104, in print_exception
    type(value), value, tb, limit=limit).format(chain=chain):
  File "/usr/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/usr/lib/python3.7/traceback.py", line 363, in extract
    f.line
  File "/usr/lib/python3.7/traceback.py", line 285, in line
    self._line = linecache.getline(self.filename, self.lineno).strip()
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 16, in getline
    lines = getlines(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 47, in getlines
    return updatecache(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 137, in updatecache
    lines = fp.readlines()
  File "/home/pi/oprint/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 27: invalid continuation byte
Call stack:
  File "/usr/lib/python3.7/threading.py", line 885, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 80, in _worker
    work_item.run()
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/logging/handlers.py", line 24, in _emit
    super().emit(record)
Message: 'Error loading plugin firmware_check'
Arguments: ()
  File "/usr/lib/python3.7/threading.py", line 885, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 80, in _worker
    work_item.run()
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/logging/handlers.py", line 24, in _emit
    super().emit(record)
Message: 'Error loading plugin firmware_check'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 627, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python3.7/logging/__init__.py", line 577, in formatException
    traceback.print_exception(ei[0], ei[1], tb, None, sio)
  File "/usr/lib/python3.7/traceback.py", line 104, in print_exception
    type(value), value, tb, limit=limit).format(chain=chain):
  File "/usr/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/usr/lib/python3.7/traceback.py", line 363, in extract
    f.line
  File "/usr/lib/python3.7/traceback.py", line 285, in line
    self._line = linecache.getline(self.filename, self.lineno).strip()
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 16, in getline
    lines = getlines(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 47, in getlines
    return updatecache(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 137, in updatecache
    lines = fp.readlines()
  File "/home/pi/oprint/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 27: invalid continuation byte
Call stack:
  File "/usr/lib/python3.7/threading.py", line 885, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 80, in _worker
    work_item.run()
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/logging/handlers.py", line 24, in _emit
    super().emit(record)
Message: 'Error while parsing AST from /home/pi/oprint/lib/python3.7/site-packages/octoprint_octolapse/__init__.py'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
    msg = self.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
    return fmt.format(record)
  File "/usr/lib/python3.7/logging/__init__.py", line 627, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python3.7/logging/__init__.py", line 577, in formatException
    traceback.print_exception(ei[0], ei[1], tb, None, sio)
  File "/usr/lib/python3.7/traceback.py", line 104, in print_exception
    type(value), value, tb, limit=limit).format(chain=chain):
  File "/usr/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/usr/lib/python3.7/traceback.py", line 363, in extract
    f.line
  File "/usr/lib/python3.7/traceback.py", line 285, in line
    self._line = linecache.getline(self.filename, self.lineno).strip()
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 16, in getline
    lines = getlines(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 47, in getlines
    return updatecache(filename, module_globals)
  File "/home/pi/oprint/lib/python3.7/linecache.py", line 137, in updatecache
    lines = fp.readlines()
  File "/home/pi/oprint/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 27: invalid continuation byte
Call stack:
  File "/usr/lib/python3.7/threading.py", line 885, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 80, in _worker
    work_item.run()
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/logging/handlers.py", line 24, in _emit
    super().emit(record)
Message: 'Error while parsing AST from /home/pi/oprint/lib/python3.7/site-packages/octoprint_octolapse/__init__.py'
Arguments: ()
2023-05-04 04:08:05,724 - octoprint.plugin.core - WARNING - Plugin Octolapse (0.4.1) is not compatible to Python 3.7.3 (compatibility string: >=2.7,<3).
2023-05-04 04:08:05,811 - octoprint.plugin.core - INFO - Found 23 plugin(s) providing 17 mixin implementations, 32 hook handlers
2023-05-04 04:08:05,935 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2023-05-04 04:08:05,945 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "oprint/bin/octoprint", line 8, in <module>
    sys.exit(main())
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/__init__.py", line 936, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 330, in serve_command
    disable_color=no_color,
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 163, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/__init__.py", line 369, in run
    self._start_intermediary_server()
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/__init__.py", line 2500, in _start_intermediary_server
    self._intermediary_server.server_bind()
  File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

then i updated octoprint

oprint/bin/pip install -U octoprint

and i it worked on safe mode

service octoprint restart --safe

Now it is working like a charm

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.