Moonraker Update fails

While I was trying to update all my packages this error happened. First it tells me that the moonraker package is invalid and gives me the option to do a soft recovery. When I try to do this the following error message comes up and then it says that the moonraker package is corrupt. 'git -C /home/pi/moonraker reset -hard origin/master' I have Pictures of my problem attached.
No description
No description
No description
14 Replies
miklschmidt
miklschmidt9mo ago
Check the moonraker.log It's the only way you'll figure out why moonraker thinks it's corrupt / invalid. There was a bug fix recently that fixed a bunch of cases where moonraker egregiously would mark repositories corrupt for other reasons than corruption.
Yannic
YannicOP9mo ago
To be honest, I am overwhelmed with this large file. It would therefore be very kind if someone with much more knowledge than me could take a look at the file.
Yannic
YannicOP9mo ago
Thats the file after I try to do a soft recovery.
miklschmidt
miklschmidt9mo ago
Git commands are failing, looks like it could actually be corrupted (like a dying sd card). Show me the output of the following (execute in command prompt, will ssh into the pi and check the status of the git repository, password is raspberry).
cd moonraker
git status
cd moonraker
git status
also, this is not great: CPU Throttled Flags: ['Under-Voltage Detected', 'Currently Throttled', 'Previously Under-Volted', 'Previously Throttled'] You have pi power delivery issues
Yannic
YannicOP9mo ago
This was the answer I got after trying ti ssh into the printer.
pi@ratos:~ $ cd moonraker
pi@ratos:~/moonraker $ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
moonraker/components/timelapse.py

nothing added to commit but untracked files present (use "git add" to track)
pi@ratos:~/moonraker $
pi@ratos:~ $ cd moonraker
pi@ratos:~/moonraker $ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
moonraker/components/timelapse.py

nothing added to commit but untracked files present (use "git add" to track)
pi@ratos:~/moonraker $
miklschmidt
miklschmidt9mo ago
Okay, so nothing concerning there, try the command that fails:
cd ~/moonraker
git reset --hard origin/master
cd ~/moonraker
git reset --hard origin/master
Yannic
YannicOP9mo ago
pi@ratos:~ $ cd moonraker
pi@ratos:~/moonraker $ git reset --hard origin/master
warning: ignoring broken ref refs/remotes/origin/master
warning: ignoring broken ref refs/remotes/origin/master
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
pi@ratos:~/moonraker $
pi@ratos:~ $ cd moonraker
pi@ratos:~/moonraker $ git reset --hard origin/master
warning: ignoring broken ref refs/remotes/origin/master
warning: ignoring broken ref refs/remotes/origin/master
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
pi@ratos:~/moonraker $
Thats the output im getting
miklschmidt
miklschmidt9mo ago
Oh that's definitely weird, that repo seems broken. Try
git fetch origin
git fetch origin
Yannic
YannicOP9mo ago
pi@ratos:~/moonraker $ git fetch origin
error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken
From https://github.com/Arksine/moonraker
! [new branch] master -> origin/master (unable to update local ref)
pi@ratos:~/moonraker $
pi@ratos:~/moonraker $ git fetch origin
error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken
From https://github.com/Arksine/moonraker
! [new branch] master -> origin/master (unable to update local ref)
pi@ratos:~/moonraker $
miklschmidt
miklschmidt9mo ago
Yeah this is going to need hard recovery, that repository is broken. My guess is your SD card is dying. Once you've done hard recovery you need to run:
sudo ~/printer_data/config/RatOS/scripts/ratos-update.sh
sudo ~/printer_data/config/RatOS/scripts/ratos-update.sh
CrashTestCharlie / VC4 400h
cat .git/config And see what broke.
miklschmidt
miklschmidt9mo ago
True there could be something interesting there as well as .git/FETCH_HEAD
Yannic
YannicOP9mo ago
Thank you for your help. I decided to install the new version 2.1 with a new image. I no longer have any problems. Feedback on the current status of 2.1: The setup wizard is incredibly useful. Compared to the previous versions of RatOS, I was ready to use the printer much faster. The selection of individual components is very handy and simplifies the process a lot. Many thanks for the development of version 2.1

Did you find this page helpful?