Klipper is not running (Yesterday it was)
Hi! Open thread in relation to Klipper. Yesterday I was printing without problem, turn off the "Host Control" and then disconnect the power. Today when I open RatOS I see the message of the image. I have updated all the Update Manager items, I have restarted several times but it does not respond.
15 Replies
correct-apricotOP•3y ago
Maybe mi amigo@Helge Keck have the answer for me!
please don't tag people randomly and just wait until someone has time to reply
try running
sudo service klipper restart
on the picorrect-apricotOP•3y ago
Hi elco, thanks for the answer I tried to restart the service using putty with the comand that you suggested but it doesn't take effect
what is the output of running
sudo service klipper status
?frail-apricot•3y ago
ssh into the pi and get the logs too.
Also double check your physical wiring, see if the MCU has lights on it, give everything a basic once-over
correct-apricotOP•3y ago
● klipper.service - Starts Klipper and provides klippy Unix Domain Socket API
Loaded: loaded (/etc/systemd/system/klipper.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2022-12-19 10:18:14 GMT; 8s ago
Docs: https://www.klipper3d.org/
Process: 3664 ExecStart=/home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CON
Main PID: 3664 (code=exited, status=1/FAILURE)
this is the service status of klipper
the MCU has the lights ON but i'm no shure about the status light, cause is always red
maybe is a problem of the octupus board
now the status is
● klipper.service - Starts Klipper and provides klippy Unix Domain Socket API
Loaded: loaded (/etc/systemd/system/klipper.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2022-12-19 10:26:26 GMT; 224ms ago
Docs: https://www.klipper3d.org/
Process: 5627 ExecStart=/home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CON
Main PID: 5627 (code=exited, status=1/FAILURE)
lines 1-6/6 (END)
● klipper.service - Starts Klipper and provides klippy Unix Domain Socket API
Loaded: loaded (/etc/systemd/system/klipper.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2022-12-19 12:12:52 GMT; 6s ago
Docs: https://www.klipper3d.org/
Process: 10857 ExecStart=/home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CO
Main PID: 10857 (code=exited, status=1/FAILURE)
lines 1-6/6 (END)
maybe is the controller board?
right, so see how it says
status=1/FAILURE
something is going wrong when it is trying to start. You need to look at the logs and see why. I would check the klipper logs and then sys logscorrect-apricotOP•3y ago
realted to the sys error i didn't found anything
here it is
I've tried to reflash the klipper via ssh and it was successful
correct-apricotOP•3y ago
correct-apricotOP•3y ago
correct-apricotOP•3y ago
Solved!
frail-apricot•2y ago
This is where you post how you fixed it for people who search for the same issue in the future
correct-apricotOP•2y ago
Of course!
It seems that the problem come from the SD when it was full
First of all you have to erase the G-Code Files by entering to the ratos.local and going to the G-Code Files section, then select all the files and erase it.
Then by ssh clear out the cache and all in the klipper cloned directory
cd ~/klipper
git clean -x -d -f
sudo service klipper restart
The second error that refers to this screenshotcorrect-apricotOP•2y ago
correct-apricotOP•2y ago
Can be solved by
ssh ratos.local
touch ~/klipper/klippy/extras/gcode_shell_command.py
nano ~/klipper/klippy/extras/gcode_shell_command.py
then copy and save the next code
https://raw.githubusercontent.com/Rat-OS/RatOS/master/src/modules/ratos/filesystem/home/pi/klipper/klippy/extras/gcode_shell_command.py
and restart
sudo service klipper restart