Update failing - possibly bad local repo copy/missing commit?

General support for the Pi-Star System
Post Reply
KN6ITL
Posts: 2
Joined: Fri Jun 12, 2020 6:07 pm

Update failing - possibly bad local repo copy/missing commit?

Post by KN6ITL »

Tried to update the pi - seems a possible bad/null commit ?
Console message (snipped):

Code: Select all

Updating /usr/local/bin...
error: object file /usr/local/bin/.git/objects/b2/7f0de1280a2a7efbe26f0c6e854a6477284e11 is empty
fatal: cannot read existing object info b27f0de1280a2a7efbe26f0c6e854a6477284e11 
fatal: index-pack failed
Updates were not successfull,   rreverting to Pi-Star original files
HEAD is now 5dce096 Updated MMDVMCal
....
repeated 2nd time - post Dashboard update and if I trigger the update function on any subsequent occassion (main code only).....

can add 2 pics (1st pass - partial snip and 2nd/subsequent triggers).
TIA.
W0CHP
Posts: 19
Joined: Mon Oct 12, 2020 2:33 pm

Re: Update failing - possibly bad local repo copy/missing commit?

Post by W0CHP »

That commit is over a year old FYI. :shock:

For giggles, I'd try running:

Code: Select all

sudo git reset --hard origin master
...in the:

Code: Select all

/usr/local/bin
...directory; and then running the update again.

If that doesn't work, I'd imagine the SD card/filesystem is no good.
KN6ITL
Posts: 2
Joined: Fri Jun 12, 2020 6:07 pm

Re: Update failing - possibly bad local repo copy/missing commit?

Post by KN6ITL »

I'll try resetting the head. The card is good - how do I. know - the dashboard updated and logs and such are updating. Plus 'fsck' on the volumes show clean.
I'll have to poke around and find the source directory that the "update" calls home and try from there.
Thanks for feedback -- 73
Post Reply