Octoprint Crashing When Print Starts

What is the problem?

Octoprint keeps crashing when the printer (Ender 3) starts a print or when powering on the printer from the TP Link smart plug plugin

What did you already try to solve it?

Removed smart plug and moved raspberry pi off of extension cord and directly to the wall

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No

Complete Logs

octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)

octoprint(2).log (40.4 KB)
plugin_octolapse.log (469 Bytes)
Log from yesterday, same issue
octoprint.log (345.4 KB)

Additional information about your setup

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

Ender 3 Pro
Raspberry Bi 3 B+
Octoprint Version 1.5.3
Marlin-bugfix-2.0.x
HooChoo Sleep button installed to Pi

2021-02-19 02:45:37,752 - octoprint.plugins.pi_support - WARNING - This Raspberry Pi is reporting problems that might lead to bad performance or errors caused by overheating or insufficient power.
!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are capable of supplying enough voltage and current to your Pi.

You'll want to fix this before looking any further.

Other noteworthy issues:

2021-02-19 02:41:42,977 - octoprint.plugins.preheat - ERROR - Something went wrong while trying to read the preheat temperature from /home/pi/.octoprint/uploads/CE3PRO_Sled.gcode
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat/__init__.py", line 108, in read_temperatures_from_file
    tool, temperature = self.parse_line(line, current_tool)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat/__init__.py", line 65, in parse_line
    line = strip_comment(line)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 5848, in strip_comment
    if ";" not in line:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 10: ordinal not in range(128)
2021-02-19 02:41:25,988 - octoprint.plugin - ERROR - Error while calling plugin DisplayLayerProgress
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 271, in call_plugin
    result = getattr(plugin, method)(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/__init__.py", line 1890, in wrapper
    return f(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress/__init__.py", line 1237, in on_event
    self._storeLayerCountInMeta(fileLocation, selectedFilename, self._layerDetectorFileProcessor.totalLayerNumbers)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress/__init__.py", line 1461, in _storeLayerCountInMeta
    overwrite=True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/__init__.py", line 1002, in set_additional_metadata
    path, key, data, overwrite=overwrite, merge=merge
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/storage.py", line 1094, in set_additional_metadata
    metadata = self._copied_metadata(metadata, name)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/storage.py", line 1923, in _copied_metadata
    metadata[name] = copy.deepcopy(metadata.get(name, {}))
  File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib/python2.7/copy.py", line 256, in _deepcopy_dict
    for key, value in x.iteritems():
RuntimeError: dictionary changed size during iteration
2021-02-19 02:24:21,711 - octoprint.util.comm - ERROR - Unexpected error while connecting to serial port /dev/ttyS0, baudrate 9600 from hook default: SerialException: '[Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'' @ comm.py:_open_serial:3670
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 3670, in _open_serial
    settings().getFloat(["serial", "timeout", "connection"]),
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 3644, in default
    serial_obj.open()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
SerialException: [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'

Hi, thanks for your reply. I did catch that Undervoltage warning, but that was the first time I saw it. The only thing I could think of it the ender 3 might be drawing too much power heating the bed and nozzle simultaneously. Im not following the rest of it though, maybe I need to reflash my firmware, I'm not sure.