thelastWallE / OctoprintKlipperPlugin

A plugin for a better integration of Klipper into OctoPrint.
GNU Affero General Public License v3.0
65 stars 14 forks source link

Unable to open config file /home/pi/printer.cfg #84

Closed 128keaton closed 2 years ago

128keaton commented 2 years ago

Environment:

octoprint.log

Hello, when using the latest release of your plugin from the Plugin Manager, I configured the config path to use a directory inside of my home dir. However, even after restarting Klipper, OctoPrint, etc, it will still try and use the original path ~/printer.cfg

Screen Shot 2022-05-09 at 12 45 27 PM Screen Shot 2022-05-09 at 12 46 16 PM
thelastWallE commented 2 years ago

Just some quick words here. I actually need to try a little solution i have in mind.

But it is basically that klipper is trying to load the config from the old path which is standard set from the install script of klipper. See https://github.com/Klipper3d/klipper/blob/2c441b4502c3fb4d5199d1193475b3f2e74cac0a/scripts/install-octopi.sh#L59

We would need to change the path which is written in /etc/default/klipper and restart the klipper service afterwards.

thelastWallE commented 2 years ago

I will create a button in the settings which will then create a file which is modified from the original file for the klipper service and show a command which you would need to enter on the bash. This will change the file responsible for the klipper service to have the new path for the configs. The 5 oldest servicefiles will be backuped on the data directory of octoklipper.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.