What is the problem?
Suddenly started having this disconnect issue with every print after never having issues in the past. Octoprint loses connection to the printer during a print. This started happening recently after I updated octoprint to 1.5.3 (not saying its related). I saw the announcement that this is a firmware issue, so I changed firmware from the marlin bugfix version to the latest stable release, but the issue persists.
I then flashed the latest Octopi image without change.
What did you already try to solve it?
Changed firmware to stable release, flashed latest octopi image, tried different usb port, increased voltage to the pi to 5.15 (powered by printer power supply via buck converter).
Have you tried running in safe mode?
Did running in safe mode solve the problem?
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.)
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
octoprint 1.5.3, Octopi 0.18.0, Ender 3 V2, Marlin 184.108.40.206 stable, RPI 4B.