#Unable to open file

1 messages Β· Page 1 of 1 (latest)

ember spade
#

So when I go to start a print it errors out saying it cannot load file. the file does exist in the location it is pointing to, but the only way I can get it to start a print is to actually change the [virtual_sdcard] location in the mainsail.cfg, but then in the update manager it gives me a dirty error.

This is from my log:
virtual_sdcard file open
Traceback (most recent call last):
File "/home/klipper/klipper/klippy/extras/virtual_sdcard.py", line 178, in _load_file
fname = files_by_lower[fname.lower()]
KeyError: 'box.gcode'
Unable to open file

steady cradle
#

Please send your whole log.
Also did this happen after an update or is this a fresh installation?
Could you also share the file location where your gcodes are that you are trying to access?

ember spade
#

/home/klipper/Ender5Plus_data/gcodes

#

I had to do a fresh.

steady cradle
#

Left one is the log and right one your config

#

I guess you have to use = instead of :

#

Seems like it just fallback to the ~/printer_data/gcodes path

#

And in this post that you opened again: #1087938393633202319 message
It should be the exact same issue

ember spade
#

Sorry about that posting issue! Didn't know it would open the post again, new the discord forms.

#

I updated the printer.cfg file with a = instead of : and it is still not working

#

new to discord forms*

steady cradle
ember spade
#

Don't hate me for this, but what do you mean make a rollover?

steady cradle
#

On the machine tab, the button next to log files

steady cradle
#

Where is this printer.cfg located?

#

I was actually wrong about the = and :. The : was already right sry πŸ˜…

#

Can you send the first few line of cat ~/Ender5Plus_data/config/printer.cfg?

ember spade
#

klipper@raspberrypi:~ $ cat ~/Ender5Plus_data/config/printer.cfg

This file contains pin mappings for the Creality Ender 5 Plus.

Ender 5 Plus stock uses a Creality v2.2 board, similar to CR-20 Pro.

To use this config, the firmware should be compiled for the AVR

atmega2560.

See docs/Config_Reference.md for a description of parameters.

[virtual_sdcard]
path = ~/Ender5Plus_data/gcodes
on_error_gcode: CANCEL_PRINT

steady cradle
#

Can you try to move the virtual sdcard part below the includes?

ember spade
#

holy moly... that was way to simple of a fix to be this difficult. Any idea why that would be an issue now? This was my config before I erased and did a fresh install.

#

I really appreciate the help!

steady cradle
#

Can you send your moonraker.conf?

#

My guess would be that the moonraker include overwrites that somehow

ember spade
steady cradle
#

config not the log ^^

ember spade
steady cradle
#

Ok, nothing inside there. Look throught mainsail.cfg, macros.cfg and timelapse.cfg if you can find something there

#

It's the mainsail.cfg

ember spade
#

None in either of them.

#

Mainsail is a read only for me. I had to test it in terminal to change location

steady cradle
#

Mainsail.cfg import client.cfg and that has

[virtual_sdcard]
path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
steady cradle
ember spade
#

I could just overwrite it in terminal but it would be annoying to keep seeing mainsail as dirty. Well its up and running now and got a little smarter. I really appreciate your help!

steady cradle
#

Sure no problem πŸ˜„
Learnt something new too