#trying to update klipper and am getting an error

77 messages · Page 1 of 1 (latest)

paper tinsel
#

this error also occurs when trying to update it on the web client

#

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)

GitHub

Klipper is a 3d-printer firmware. Contribute to Klipper3d/klipper development by creating an account on GitHub.

ripe raft
#

why do you try to update klipper via terminal?

paper tinsel
#

it wouldnt work in the web client so i tried the terminal to see if it would work

ripe raft
#

what was the error via webclient?

paper tinsel
#

the same i think

ripe raft
#

did you changed the branch or something simular?

paper tinsel
#

idk

#

can you dumb that question down for me

ripe raft
#

what did you do befor you try to update klipper?

paper tinsel
#

i think i used kiauh

ripe raft
#

do you use mainsailOS?

paper tinsel
#

yes i think so

#

this one

ripe raft
#

this is mainsail. mainsail is the gui. mainsailOS is a raspberry pi image

#

OS => operation system

paper tinsel
#

oh right yes i do

#

i used raspberry pi imager to flash mainsail OS

ripe raft
#

ok. why do you used KIAUH when you have a fresh mainsailOS?

#

(just to find out, how you broke this)

paper tinsel
#

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

ripe raft
#

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!!!

paper tinsel
#

this guy said

ripe raft
#

and the most important rule: dont trust reddit!

paper tinsel
#

should have come here first lol

#

should i just format the sd card and try again?

ripe raft
#

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?

paper tinsel
#

yeah the rest seems fine other than some missing config that i havent got onto yet

ripe raft
# paper tinsel

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
ripe raft
#

after that, click on the "refresh" button in the update manager in mainsail (AND THEN WAIT!!! THIS CAN TAKE SOME MINUTES!!!)

paper tinsel
ripe raft
paper tinsel
#

ok

#

ok i have ran the thing

#

tysm it worked

ripe raft
#

what do you see after the refresh in the update manager?

paper tinsel
ripe raft
# paper tinsel

why do you clickt update? i said you should click "refresh"?

paper tinsel
#

i refreshed the page first

ripe raft
#

pls read carefully!

#

click on the refresh button in the update manager panel

ripe raft
paper tinsel
#

ok i have clicked it

ripe raft
#

then you couldnt click update after that...

#

ok... doesnt matter... it works...

paper tinsel
ripe raft
#

but... doesnt matter... it works...

paper tinsel
#

i understand

#

i am sorry

ripe raft
#

do you see the mainsail.cfg in your configfiles panel?

paper tinsel
#

1 sec

#

yes i do

ripe raft
#

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)

paper tinsel
#

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

ripe raft
#

@paper tinsel are your issues fixed?

paper tinsel
#

yeah

#

i have just leveled the bed and am setting up the slicer macro stuff

ripe raft
#

pls close this post, when all issues are fixed.

paper tinsel
#

oh i thought i did close it