error: corrupt loose object

General support for the Pi-Star System
Post Reply
VE6DV
Posts: 42
Joined: Sun May 13, 2018 4:34 pm
Location: Edmonton, Alberta

error: corrupt loose object

Post by VE6DV »

Getting the following error message when I select update:

Updating /var/www/dashboard...
error: corrupt loose object 'e4247501541d3ed820939fd8bbe42203ea20a57a'
fatal: loose object e4247501541d3ed820939fd8bbe42203ea20a57a (stored in /var/www/dashboard/.git/objects/e4/247501541d3ed820939fd8bbe42203ea20a57a) is corrupt
fatal: the remote end hung up unexpectedly
Updates were not successfull, reverting to Pi-Star original files...
HEAD is now at 5dd6462 Update edit_dmrgateway.php
Done

Any ideas what the problem may be?
73 - Jeff VE6DV
VE6DV
Posts: 42
Joined: Sun May 13, 2018 4:34 pm
Location: Edmonton, Alberta

Re: error: corrupt loose object

Post by VE6DV »

I decided to ssh into the pi and try doing the update that way. Thus far it seems to be working. If that doesn't work I'll reflash the card.
73 - Jeff VE6DV
VE6DV
Posts: 42
Joined: Sun May 13, 2018 4:34 pm
Location: Edmonton, Alberta

Re: error: corrupt loose object

Post by VE6DV »

The ssh update had the same results. Since I've saved my configuration I will just reflash the card and see if that corrects the problem.

Thanks for the help,

Jeff VE6DV
73 - Jeff VE6DV
VE6DV
Posts: 42
Joined: Sun May 13, 2018 4:34 pm
Location: Edmonton, Alberta

Re: error: corrupt loose object

Post by VE6DV »

Reflashing the card did the trick. Error messages are gone and it is behaving normally once again. Now to see if my hotspot continues to lock up on me from time to time. Hopefully that has been fixed in the process.
73 - Jeff VE6DV
AF6VN
Posts: 821
Joined: Fri Jul 20, 2018 1:15 am

Re: error: corrupt loose object

Post by AF6VN »

KE7FNS wrote: Wed Aug 12, 2020 5:00 pm
VE6DV wrote: Wed Aug 12, 2020 4:40 pm The ssh update had the same results. Since I've saved my configuration I will just reflash the card and see if that corrects the problem.
Yeah, seems like the best option. I'm sure theres some git command that would fix it, but I'm not fluent in it.
Based on Google -- most solutions say to first make a back-up of the local git repository, then make a new clone from the master repository, followed by copying whatever has that object number from the new clone to the previous local repository.

--
AF6VN
Dennis L Bieber
AF4FA
Posts: 47
Joined: Wed Jan 23, 2019 6:20 pm

Re: error: corrupt loose object

Post by AF4FA »

If you get error issues with git failing to update your pistar system files, it will always be that the checksum of a file/s has changed in either /usr/local/bin or /usr/local/sbin or /var/www/dashboard
Log into SSH and do one of the sets of commands that is for the area having the error. After it completes do a sudo pistar-update to make sure it is fixed.

rpi-rw
cd /usr/local/bin
sudo git stash
sudo git pull
rpi-ro

rpi-rw
cd /usr/local/sbin
sudo git stash
sudo git pull
rpi-ro

rpi-rw
cd /var/www/dashboard
sudo git stash
sudo git pull
rpi-ro
Post Reply