#trying to update klipper and am getting an error
77 messages · Page 1 of 1 (latest)
error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken
From https://github.com/Klipper3d/klipper
! [new branch] master -> origin/master (unable to update local ref)
error: cannot lock ref 'refs/remotes/origin/gh-pages': unable to resolve reference 'refs/remotes/origin/gh-pages': reference broken
! [new branch] gh-pages -> origin/gh-pages (unable to update local ref)
error: cannot lock ref 'refs/remotes/origin/work-stm32h7mem-20221021': unable to resolve reference 'refs/remotes/origin/work-stm32h7mem-20221021': reference broken
! [new branch] work-stm32h7mem-20221021 -> origin/work-stm32h7mem-20221021 (unable to update local ref)
error: cannot lock ref 'refs/remotes/origin/work-stm32h7serial-20221031': unable to resolve reference 'refs/remotes/origin/work-stm32h7serial-20221031': reference broken
! [new branch] work-stm32h7serial-20221031 -> origin/work-stm32h7serial-20221031 (unable to update local ref)
why do you try to update klipper via terminal?
it wouldnt work in the web client so i tried the terminal to see if it would work
what was the error via webclient?
did you changed the branch or something simular?
what did you do befor you try to update klipper?
i think i used kiauh
do you use mainsailOS?
this is mainsail. mainsail is the gui. mainsailOS is a raspberry pi image
OS => operation system
ok. why do you used KIAUH when you have a fresh mainsailOS?
(just to find out, how you broke this)
idk i looked something up and some guy on reddit suggested it
because i was trying to fix the issue of it not connecting
but i evidently messed it up
KIAUH is a nice tool, if you have broken something or you want to install multi instance. to use it when all is fine and maybe at the same time as moonraker is working in the background, you can brake many things! dont try to fix something, when it is working!!!
this guy said
and the most important rule: dont trust reddit!
yeah i guess
should have come here first lol
should i just format the sd card and try again?
ok. now it is possible you crashed your git folder when moonraker also checked this directory at the same time
is this your only issue?
this is just a missing line in your config (why do you dont have a mainsail.cfg on your system?)
so to fix klipper git:
cd ~
sudo systemctl stop klipper
rm -rf klipper
git clone https://github.com/Klipper3d/klipper
sudo systemctl restart klipper
i thought i did
after that, click on the "refresh" button in the update manager in mainsail (AND THEN WAIT!!! THIS CAN TAKE SOME MINUTES!!!)
ok will do
normally you have an extra info in this panel "include the mainsail.cfg"... but first, fix your klipper state...
what do you see after the refresh in the update manager?
why do you clickt update? i said you should click "refresh"?
i refreshed the page first
the blue one on the right top here
ok i have clicked it
yeah... you clicked it AFTER update....
but... doesnt matter... it works...
do you see the mainsail.cfg in your configfiles panel?
interessting... you should have a note in the "missing config panel" then...
ok... just add [include mainsail.cfg] in your printer.cfg and restart klipper
(or hit the save & restart button in the editor)
i know why i dont have the note
i removed that to get rid of the error
excuse me i dont know what im doing LMAO
@paper tinsel are your issues fixed?
pls close this post, when all issues are fixed.
oh i thought i did close it