After Mainsail 2.4.1 Update my config Disappeared


Mainsail cant find any Cfg and i dont know why

What paths do you have defined in /etc/systemd/system/klipper.service? Do they match up with what you are expecting?

1 Like

i didnt defined something.
I had never changed anything it came after the updates

You can define the paths to what you want them to be in that file. Here is a copy of my file that you can use as a reference:

[Unit]
Description=Starts Klipper and provides klippy Unix Domain Socket API
Documentation=https://www.klipper3d.org/
After=network.target
Before=moonraker.service
Wants=udev.target

[Install]
Alias=klippy
WantedBy=multi-user.target

[Service]
Environment=KLIPPER_CONFIG=/home/pi/printer_data/config/printer.cfg
Environment=KLIPPER_LOG=/home/pi/klipper_logs/klippy.log
Environment=KLIPPER_SOCKET=/tmp/klippy_uds
Type=simple
User=pi
RemainAfterExit=yes
ExecStart= /home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CONFIG} -l ${KLIPPER_LOG} -a ${KLIPPER_SOCKET}
Restart=always
RestartSec=10

I got that file from the mainsail website. Hope this helps

2 Likes

Is my first time that I do this at all so I’m sorry for the stupid question but where can I enter that in the console or where ?

Are you familiar with Linux at all? If not, I don’t know of an easy way for you to edit that file. I will see if I can find another way to edit the paths

I can tell you how to do it, but I bear no responsibility if you mess it up, if you try this, you do so at your own risk!

Use the following command:

sudo nano /etc/systemd/system/klipper.service

It will ask you for your password, enter that, and you will be taken into a simple editor called “nano”. It’s a very simple editor, but if you are not sure how to use it, google “linux nano” for help.

You can just cut/paste my file above into that file, replacing everything there, and then change the paths (the lines that start with “Environment=”) to suit your system. But be careful, you could well make things worse if you mess it up, If you are not confident in doing this, then don’t do it.

There must be another way to do this, I just don’t know what it is, hopefully someone else will answer soon

I looked there is the same config in it
#Systemd Klipper Service

[Unit]
Description=Starts Klipper and provides klippy Unix Domain Socket API
Documentation=https://www.klipper3d.org/
After=network-online.target
Before=moonraker.service
Wants=udev.target

[Install]
Alias=klippy
WantedBy=multi-user.target

[Service]
Environment=KLIPPER_CONFIG=/home/pi/klipper_config/printer.cfg
Environment=KLIPPER_LOG=/home/pi/klipper_logs/klippy.log
Environment=KLIPPER_SOCKET=/tmp/klippy_uds
Type=simple
User=pi
RemainAfterExit=yes
ExecStart= /home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CONFIG} -l ${KLIPPER_LOG} -a ${KLIPPER_SOCKET}
Restart=always
RestartSec=10

print1

This is what it usually looks like

And after the update so
maybe I have to put a hack somewhere so I see it again

Is your printer.cfg file in /home/pi/klipper_config?

to find out, enter the following command to change to that directory

cd ~/klipper_config

then list the contents of that directory:

ls

Do you see the printer.cfg there?

BTW, how did you install klipper? Did you use kiauh?

1 Like

and he uses the config even when I go to the dashboard everything is as I have set before in the printer.cfg .
i think the only problem ist that Mainsail dont want show it to me ^^

Mainsail + Klipper installieren auf dem Raspberry PI - YouTube
i use this Video to install it all was fine after the update it didn’t work anymore

and yes the printer.cfg ist there


this are the updates what i done

Try rebooting the pi and see if Mainsail sorts itself out.

1 Like

made nothing happens
Sorry that I anwers now I have exceeded the replys yesterday

I’m sorry mate, but i’m out of ideas. Hopefully someone more knowledgable will chime in. Good luck!

1 Like

np mate Thanks for your help

Try https://github.com/Arksine/moonraker/issues/516

2 Likes

i will try it thanks