Octoprint Crashing Intermittently - Has Log Errors

What is the problem?

Octopi server fails intermittently over varying amounts of time. Sometimes it will fail a an hour or so in, other times, after many hours. When it fails, I am no longer able to use the web interface and ssh fails. It locks up with the printer head at the last position before failing Hotend and bed stay at the set temp.

I have a ton of log errors and am hoping someone may see something since I don't know what I am looking at.

Log errors... (I trimmed the lines to get a count of the error types - full lines in sysinfo)

djr@djr-mbp octoprint-systeminfo-20230522223936 % grep 'ERROR' * | grep -v obico | sed "s/.ERROR - //" | sed "s/ at .//" | sort | uniq -c | sort -rn
23580 Exception while adding communication log entry to callback <octoprint.server.util.sockjs.PrinterStateConnection object
6408 WebSocket
1861 Giving up capture_jpeg(...) after 3 tries (requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
1198 Exception in callback functools.partial(<function ensure_io_loop..wrapper..run
210 Giving up capture_jpeg(...) after 3 tries (requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8080): Read timed out. (read timeout=5))
123 Could not capture image /home/pi/.octoprint/timelapse/tmp/BurnDown Fill Funnel v23_2d16h58m_0.16mm_200C_PLA_ENDER5_20230522144414-20.jpg from http://127.0.0.1:8080/?action=snapshot
35 Error in periodic callback
26 Could not capture image /home/pi/.octoprint/timelapse/tmp/BurnDown Fill Funnel v23_2d16h58m_0.16mm_200C_PLA_ENDER5_20230522123856-7.jpg from http://127.0.0.1:8080/?action=snapshot
5 error from callback <function WebSocketClient.init..on_close
5 [Errno 111] Connection refused - goodbye
4 Uncaught exception
4 Connection to remote host was lost. - goodbye
3 Error calling SimpleApiPlugin pi_support
2 [Errno -3] Temporary failure in name resolution - goodbye
2 Looks like something crashed inside the state update worker. Please report this on the OctoPrint issue tracker (make sure to include logs!)
2 Could not check themeify for updates
2 Could not check simpleemergencystop for updates
2 Could not check resource_monitor for updates
2 Could not check plotlytempgraph for updates
2 Could not check pi_support for updates
2 Could not check octoprint for updates
2 Could not check navbartemp for updates
2 Could not check floatingnavbar for updates
2 Could not check firmware_check for updates
2 Could not check file_check for updates
2 Could not check fanspeedslider for updates
2 Could not check enclosure for updates
2 Could not check dashboard for updates
2 Could not check bedlevelvisualizer for updates
2 Could not check autoscroll for updates
2 Could not check PrintTimeGenius for updates
2 Could not check BLTouch for updates
1 error from callback <function WebSocketClient.init..on_open
1 error from callback <function WebSocketClient.init..on_error
1 Something crashed inside the serial connection loop, please report this in OctoPrint's bug tracker:
1 RawWebSocket
1 Fatal read error on datagram transport

What did you already try to solve it?

  • Reboot and try again, somethines works.
  • Changed to a shorter 3' cable with ferrite bead (Amazon.com)
  • Checked the power supply for proper amperage
  • Verified camera is properly attached
  • Reduced camera resolution to avoid bus overload
  • Added UPS to prevent possibility of brown outs
  • Am picking up a new SD (Amazon.com) to reimage the server (don't want to lose my current setup if this is not the problem)

Have you tried running in safe mode?

Trying again now

Did running in safe mode solve the problem?

Will know in the morning.

Systeminfo Bundle

octoprint-systeminfo-20230522223936.zip (1.1 MB)

Additional information about your setup

  • Ender 5 Pro
  • Mosquito Hot End
  • Bondtech DDX
  • BIGTREETECH SKR Mini E3 V3.0
  • octoprint.version: 1.8.7
  • printer.firmware: Marlin 2.0.9.1 (Feb 25 2022 12:39:01)
  • env.hardware.cores: 4
  • env.hardware.freq: 1500.0
  • env.hardware.ram: 8228372480
  • env.os.bits: 32
  • env.os.id: linux
  • env.os.platform: linux
  • env.plugins.pi_support.model: Raspberry Pi 4 Model B Rev 1.4

Hi djr,

my two cents worth, a quick skim through your logs look to me like a webcam related problem that I also experienced recently, however I did get error messages in red on the screen stating that the voltages are too low often. The webcam I used was quite power hungry, especially at high resolution and high frame rates.

The proxy logs also show your system hanging after issuing a webcam command, so it might be worth testing without a web cam by unplugging the webcam and setting the streaming to disabled.

1 Like

Adding the cam I use - Raspberry Pi HQ Camera Module with Case for Raspberry Pi 4B/3B+/3B/2B/A+/Zero/W/Zero WH,12.3MP IMX477 Sensor Support C- and CS-Mount Lenses, Alternative for Raspberry Pi Camera Module V2

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