"GCode path received from Klipper does not match expected path"

Basic Information:

Printer Model: ender3
MCU / Printerboard: gd32
klippy.log
klippy (1).log (411.1 KB)

Describe your issue: finally managed to flash klipper, now ive got this error

  • GCode path received from Klipper does not match expected path: /home/sady/printer_data/gcodes

:frowning:

any help?

Your printer configuration file and I would guess where you are trying to send your gcode file doesn’t match your virtual SD card location.

Found in the last run in your log file.
===== Config file =====
[virtual_sdcard]
path = ~/gcode_files

yeah, ive noticed it.

klippy says: [virtual_sdcard]
path = /home/sady/gcode_files
on_error_gcode =
CANCEL_PRINT

moonraker says:

data_path: /home/sady/printer_data

there is no gcode_files folder on my pi, but there is a printer_data one.

Dont know what to do, im a super noob…

I guess i must match the name on the paths by editing the configs on winscp?

If you are using KIAUH to install, there is an issue with it and installing Moonraker.

yeah, ive used it :frowning:

If this is a new install change the gcode path in printer.cfg:

[virtual_sdcard]
path: ~/printer_data/gcodes

Then restart klipper.

2 Likes

i just reflashed it, i messed around a lot and prefer to do it over. But prolly will have to follow your tip, so thanks in advance

Yeah, this is going to be a required step for new installs…the developer of KIAUH is working on an update.

This is a recent change in Moonraker. Previously Moonraker used the path Klipper defined. This is a security vulnerability…if someone untrusted gets access to the instance they can use Moonraker to modify the location of the gcode path and overwrite source code with something malicious. To prevent this Moonraker defines the location and Klipper must be configured to match it.