What is the problem?
Printer (Ender 3v2) disconnects at random times and seemingly no further detailed error messages in log (serilog nor octoprint)
I've tried various things. Multiple prints with different usb cables (I've added the black tape to the cable to block the power point) and using Octolapse's test mode (it fails in test mode as well) . Switched to safe mode and removed all other usb peripherals (webcam and a usb lamp) and the problem still happens.
So far I think through sheer luck I've been able to complete 1 print (a calibration cube and with peripherals attached and using Octolapse)
Octoprint Log Safemode
2021-08-29 02:14:56,703 - octoprint.access.users - INFO - Logged in user: tnsai
2021-08-29 02:14:56,862 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.8.0.2
2021-08-29 02:14:57,330 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.8.0.2
2021-08-29 02:14:57,398 - octoprint.server.util.flask - INFO - Passively logging in user tnsai from ::ffff:10.8.0.2
2021-08-29 02:14:57,398 - octoprint.access.users - INFO - Logged in user: tnsai
2021-08-29 02:14:57,962 - octoprint.server.util.sockjs - INFO - User tnsai logged in on the socket from client ::ffff:10.8.0.2
2021-08-29 02:18:01,300 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.8.0.2
2021-08-29 02:19:54,619 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.8.0.2
2021-08-29 02:19:54,698 - octoprint.server.util.flask - INFO - Passively logging in user tnsai from ::ffff:10.8.0.2
2021-08-29 02:19:54,699 - octoprint.access.users - INFO - Logged in user: tnsai
2021-08-29 02:19:54,786 - octoprint.server.util.sockjs - INFO - User tnsai logged in on the socket from client ::ffff:10.8.0.2
2021-08-29 02:20:08,275 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-08-29 02:23:34,559 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.8.0.2
2021-08-29 02:27:32,783 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.8.0.2
2021-08-29 02:27:32,864 - octoprint.server.util.flask - INFO - Passively logging in user tnsai from ::ffff:10.8.0.2
2021-08-29 02:27:32,864 - octoprint.access.users - INFO - Logged in user: tnsai
2021-08-29 02:27:32,949 - octoprint.server.util.sockjs - INFO - User tnsai logged in on the socket from client ::ffff:10.8.0.2
2021-08-29 02:29:16,274 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.8.0.2
2021-08-29 02:29:41,450 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:10.8.0.2
2021-08-29 02:29:41,539 - octoprint.server.util.flask - INFO - Passively logging in user tnsai from ::ffff:10.8.0.2
2021-08-29 02:29:41,540 - octoprint.access.users - INFO - Logged in user: tnsai
2021-08-29 02:29:41,698 - octoprint.server.util.sockjs - INFO - User tnsai logged in on the socket from client ::ffff:10.8.0.2
2021-08-29 02:30:37,299 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.8.0.2
2021-08-29 02:35:08,275 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-08-29 02:48:41,373 - octoprint.util.comm - ERROR - Unexpected error while reading from serial port
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/comm.py", line 3860, in _readline
ret = self._serial.readline()
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/comm.py", line 6488, in readline
c = self.read(1)
File "/home/pi/oprint/lib/python3.7/site-packages/serial/serialposix.py", line 596, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2021-08-29 02:48:41,417 - octoprint.util.comm - ERROR - Please see https://faq.octoprint.org/serialerror for possible reasons of this.
Serilog Safemode
serilog_safemode - Pastebin.com (only the last few lines as it's large)
2021-08-29 02:48:41,417 - Unexpected error while reading serial port, please consult octoprint.log for details: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:3860
2021-08-29 02:48:41,417 - Please see https://faq.octoprint.org/serialerror for possible reasons of this.
2021-08-29 02:48:41,436 - Changing monitoring state from "Printing" to "Offline after error"
2021-08-29 02:48:41,443 - Connection closed, closing down monitor
What did you already try to solve it?
Changed a couple of usb cables (sadly none have ferrite beads, ordered a few incoming), went into safe mode, removed all peripherals from Pi, added the black tape to block the power point on usb cable.
Have you tried running in safe mode?
Yes
Did running in safe mode solve the problem?
No
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
octoprint-systeminfo-20210829033754.zip (3.6 MB) (the serial and octoprint log in this zip is from after the issue occurred and i rebooted my pi back to normal mode)
These are the logs from when issue occurred :
serial_safe-mode_trimmed.log (1.5 KB)
octoprint_safe.log (49.7 KB)
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
OctoPrint version : 1.6.1
Printer : Ender 3 v2
Firmware: Jyers/Marlin 1.3.5 (also same issues on 1.3.4)
Printer has BLTouch installed.
Webcam: Logitech c920
RaspberryPi : Model 4B (powered via Official Pi power adapter)
Also: are there any recommended brands of powered usb hubs to get?