Layer shifting only when using OctoPrint


What is the problem?

I have been printing every day since I received my printer about 3 weeks ago and I have not had a single layer shift.

I decided to jump in and add an Octoprint to my Ender 3 Pro. I was able to get it working without issue and the software seems to function exactly as it should.

The issue is that if I upload a gocode file to the PI using Octoprint, I get layer shifting at the same height, but the direction of the shift is not the same. If I load the same exact gcode file onto an SD card in the computer and then install in the printer, the print comes out perfect. I have done this multiple times with the same result.

Weeks of good prints with SD card... failed prints with gcode sent to PI using Octoprint with layer shifts at the same height... switch back to the cheap Chinese SD card and its back to working fine.

Does anyone have any idea of what I might have done/setup/configured incorrectly?

What did you already try to solve it?

Left to right. Octoprint to PI 1st attempt, Octoprint to PI 2nd attempt, back to the old SD card method (take out of printer, save gcode using computer, install back into printer)

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

Ender 3 Pro
Slic3r 1.41.3
Raspberry PI3B+ (Purchased from Adafruit along with recommended power supply)
Octopi 0.16.0 flashed on to Kingston 8GB Industrial SD with speed rating of 10 using Etcher


I am not sure if it is relevant, but I noticed that when I send this particular gcode from the computer to Octoprint, I get an estimated print time of 2.5 hours. If I save the same exact gcode manually to an SD card, Octoprint shows a print time of just over 3 hours. Not sure why the same gcode file would show different print times depending on how it was transferred.

Any help would be much appreciated. I know that thousands of people use this software without issue, so it must be something on my end. I can say for sure though that I can ‘turn the issue on/off’ by using the SD card or uploading to Octoprint. This fact should allow me to eliminate any hardware issues (belts, steppers, binding, etc) from my troubleshooting.