What is the problem?
After I cancel a print, when I try to reprint the file by clicking the print icon again, an important part of my gcode is skipped -> the line that I print outside my print area to ensure filament is flowing smoothly. I know the gcode is there. It worked the first time before I canceled, and I can see it when I click the edit button.
However, if I try to print the same file again, it skips that part and usually the print fails again because the filament is not flowing smoothly - a very frustrating cycle -> failed print leads to failed print leads to failed print!
Maybe this is the expected behavior (to experienced users), but to a newbie, I don't understand why a "cancel" wouldn't cause the next print to start from the very beginning. Is octoprint looking for a specific gcode to start from? Could it be my after cancel gcode (below:)?
G91; Set to Relative position
G1 E-1 F300; retract the filament a bit before lifting the nozzle
G0 Z250; move z axis
G28 X Y; home X axis
M106 S0 ; Turn off fan
M18; Disable all stepper motors
M84; Stop idle hold
M85 S300; if incative for 5 min, shutdown
What did you already try to solve it?
I'm relatively new to Octoprint. I tried searching the forums and came across the "Log position on cancel" option. I unchecked that but no change in behavior.
Logs
2020-01-24 19:49:46,365 - octoprint.util.comm - INFO - Changing monitoring state from "Starting" to "Printing"
2020-01-24 19:49:48,507 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, will adjust timeouts and set busy interval accordingly
2020-01-24 19:50:31,462 - octoprint.util.comm - INFO - Telling the printer to set the busy interval to our "communicationBusy" timeout - 1s = 2s
2020-01-24 19:53:44,625 - octoprint.plugins.excluderegion - INFO - Printing stopped: event=PrintCancelling
2020-01-24 19:53:44,625 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Cancelling"
2020-01-24 19:53:44,632 - octoprint.util.comm - INFO - Force-sending M108 to the printer
2020-01-24 19:53:44,644 - octoprint.printer.standard.job - INFO - Print job cancelled - origin: local, path: mirror_holder.gcode, owner: piOctoPrint, user: piOctoPrint
2020-01-24 19:53:44,647 - octoprint.plugins.excluderegion - INFO - Printing stopped: event=PrintCancelled
2020-01-24 19:53:44,747 - octoprint.plugins.excluderegion - INFO - Printing stopped: event=PrintFailed
2020-01-24 19:54:41,998 - octoprint.util.comm - INFO - Changing monitoring state from "Cancelling" to "Operational"
2020-01-24 19:55:01,863 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Starting"
2020-01-24 19:55:01,873 - octoprint.printer.standard.job - INFO - Print job started - origin: local, path: mirror_holder.gcode, owner: piOctoPrint, user: piOctoPrint
2020-01-24 19:55:01,882 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-01-24 19:55:01,897 - octoprint.events - INFO - Executing a system command
2020-01-24 19:55:01,905 - octoprint.util.comm - INFO - Changing monitoring state from "Starting" to "Printing"
2020-01-24 19:55:01,907 - octoprint.plugins.excluderegion - INFO - Printing started
2020-01-24 19:57:06,007 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Cancelling"
2020-01-24 19:57:06,015 - octoprint.util.comm - INFO - Force-sending M108 to the printer
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)
Octoprint 1.3.12, Marlin 1.1.x bugfix branch, Ender 5