Page 1 of 1

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

Posted: Wed Mar 09, 2022 4:39 am
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.

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

Posted: Wed Mar 09, 2022 12:31 pm
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.

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

Posted: Thu Mar 10, 2022 2:11 am
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