AutoConnect is unable to connect to printer

Hello, I am running octoprint on a set of prusa i3 mk3s printers inside docker containers (deployed using balenaOS). Every once and a while the printers will go offline with:

State: Offline after error
No more candidates to test, and no working port/baudrate combination detected.

When I click Connect from the UI it connects immediately. I've also tried manually setting the buad rate instead of AUTO but the error still happens. This is a snippet from the logs:

[Logs]    [4/27/2021, 1:05:24 PM] [octoprint] 2021-04-27 17:05:24,006 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #1 with timeout 2.0s
[Logs]    [4/27/2021, 1:05:24 PM] [octoprint] 2021-04-27 17:05:24,016 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
[Logs]    [4/27/2021, 1:05:26 PM] [octoprint] 2021-04-27 17:05:26,019 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #2 with timeout 2.0s
[Logs]    [4/27/2021, 1:05:26 PM] [octoprint] 2021-04-27 17:05:26,027 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
[Logs]    [4/27/2021, 1:05:28 PM] [octoprint] 2021-04-27 17:05:28,030 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #3 with timeout 2.0s
[Logs]    [4/27/2021, 1:05:28 PM] [octoprint] 2021-04-27 17:05:28,039 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
[Logs]    [4/27/2021, 1:05:30 PM] [octoprint] 2021-04-27 17:05:30,042 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error: No more candidates to test, and no working port/baudrate combination detected."
[Logs]    [4/27/2021, 1:05:30 PM] [octoprint] 2021-04-27 17:05:30,067 - octoprint.util.comm - INFO - Changing monitoring state from "Error: No more candidates to test, and no working port/baudrate combination detected." to "Offline (Error: No more candidates to test, and no working port/baudrate combination detected.)"

Anyhelp would be greatly appreciated.

Please upload the full logs, if you are using OctoPrint 1.6.0 then you can upload a systeminfo bundle.

It doesn't quite make sense the problem here. The error message posted is after a failed connection attempt, the printer has not gone offline since it wasn't online in the first place.

1 Like