What is the problem?
As stated in the title. My OctoPrint is causing/doing a huge filament retraction at the start of a print following a cancelled print.
I can't be certain, but it appears the retraction length is equal to the amount extruded on the prior cancelled print.
Also, if I use OctoPrint to do an extrude for priming the filament into the hotend before the next print, the amount extruded during the prime will also then be retracted at the start of the next print.
Up to the point where the filament can be totally unloaded from the printer. Depending on how much had been extruded in the cancelled print and/or extruded in the prime.
What did you already try to solve it?
Everything.
Added a cancelled print Gcode script to OctoPrint which switches between absolute and relative positioning (G90,G91), an attempt to reset the extruders position.
Tried both OctoPrint setting in 'Features' for Marlin G90/G91, enabled and disabled.
Removed and recreated printer profile in OctoPrint (multiple times).
Reinstalled OctoPrint from scratch. Tried barebones no plugins and with plugins.
Updated printers firmware.
Two different slicers (Cura and Kiss).
Various different settings in the slicers. Including editing the start and end gcode scripts (adding G90/G91, disabling runout sensors, etc, etc).
Printing from OctoPrint directly and from Cura connected to OctoPrint's API (preferred method and slicer).
Searched Marlin config for anything which may be causing the retraction ('FWRETRACT' enabled for example)
Enabled Serial logging, and read through the serial.log to try and find the retraction and/or what might be causing it.
I honestly can't think of anything else to try, hence the post.
My only conclusion is that something in OctoPrint is keeping a tally of the amount extruded, and then injecting that as a retraction into the start of the next print, but only if the previous print was cancelled.
If the print is successful or if I reboot Octoprint, or disconnect then reconnect the printer, then the next print (after a cancelled) is fine, no huge retraction at the start.
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-20220713055245.zip (53.1 KB)
This systeminfo was generated on a fresh boot without any printing being done.
Here is a copy of the logs from a cancelled then restarted print where the problem occurred.
octoprint-logs(6).zip (947.7 KB)
serial.log somewhere around line 6480 is where the retraction happend
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
OctoPrint Version 1.8.1, OctoPi 0.18.0-1.8.1, Printer: Stock Geeetech A10M (GT2560 4.1B board), Marlin 2.1.x Bugfix. Firefox, Win10, Ubuntu Linux (Not applicable, issue irrelevant to OS or browser) .