mkuf / prind

print in docker - Deploy a containerized Klipper Stack for your 3D Printer
GNU General Public License v3.0
324 stars 82 forks source link

Unable to save config #97

Closed lucassant95 closed 11 months ago

lucassant95 commented 11 months ago

Hey folks! I'm running this image of docker and I'm unable to save the configs. I'm getting this error:

ERROR:root:Unable to write config file during SAVE_CONFIG Traceback (most recent call last): File "/opt/klipper/klippy/configfile.py", line 416, in cmd_SAVE_CONFIG os.rename(cfgname, backup_name) OSError: [Errno 16] Device or resource busy: 'printer_data/config/printer.cfg' -> 'printer_data/config/printer-20231003_204248.cfg'

My compose:

`klipper: container_name: klipper image: mkuf/klipper:latest privileged: true volumes:

mkuf commented 11 months ago

That's because you're bind-mounting the config file itself, and docker is preventing it from being moved.
If you instead mount the directory containing the file, Klipper can do all file operations within the directory.