#unable to open file

19 messages · Page 1 of 1 (latest)

shadow sky
#

Hi all!
I have this issue when i try to print my first gcode with a freh install.

I found this in the moonraker log:
2023-01-08 15:59:26,521 [websockets.py:build_error()] - JSON-RPC Request Error: 400

And for the klipper log:
Traceback (most recent call last):
File "/home/fab/klipper/klippy/extras/virtual_sdcard.py", line 178, in _load_file
fname = files_by_lower[fname.lower()]
KeyError: 'test.gcode'
Unable to open file

My mainsail config file contain:
[virtual_sdcard]
on_error_gcode: CANCEL_PRINT
path: /home/fab/printer_data/gcodes

The control of my printer works well .

i don't know if i'l searching to the right way...

floral sapphire
#
[virtual_sdcard]
on_error_gcode = CANCEL_PRINT
path = ~/gcode_files
#

this is from your klipper log. pls check ALL config files if you have multiple times virtual_sdcard in it.

#

and pls fix your tags for this post: #readme message

shadow sky
#

ok sorry, i've fix the tags.
I check all the config files i could and there's only virtual_sdard in mainsail.cfg.
and "path : ~/gcodes_files" don't resolved my issue.
I'm lost...

floral sapphire
#
~/gcodes_files
#

is also false

#

you should also have this notification/warning in your gui:

#
GCode path received from Klipper does not match expected location.

Received: '/home/fab/gcode_files'
Expected: '/home/fab/printer_data/gcodes'

Modify the [virtual_sdcard] section Klipper's configuration to correct this error.

[virtual_sdcard]
path: /home/fab/printer_data/gcodes
shadow sky
#

no i'haven't and this is the path i've mentioned in mainsail.cfg:
path: /home/fab/printer_data/gcodes

floral sapphire
#

and what is in your printer.cfg?

shadow sky
#

Haaaaargh ! my mistake !

floral sapphire
#

line 331...

shadow sky
#

that's it

#

thank you soooo much !

floral sapphire
#

but you can remove all lines between Requested by Fluidd and SAVE_CONFIG. all of these are also in the mainsail.cfg

#

both clients needs the same settings

shadow sky
#

ok, i'll do that .