Error during update

General support for the Pi-Star System
Post Reply
IW9HQZ
Posts: 8
Joined: Sun Jun 23, 2024 7:39 am

Error during update

Post by IW9HQZ »

Hello everyone
When I update, I get these errors.
Do you know how I could solve it? Avoid reinstalling pistar
Thanks
Starting update, please wait...
Stopping Services...
Done
Updating DV Binaries...
No updates for /usr/local/bin (Branch: master) available
Done
Updating Pi-Star Binaries...
fatal: /usr/local/sbin/.git/index: unable to map index file: No such device
fatal: bad object HEAD
Updating /usr/local/sbin (Branch: master)...
fatal: /usr/local/sbin/.git/index: unable to map index file: No such device
fatal: /usr/local/sbin/.git/index: unable to map index file: No such device
fatal: /usr/local/sbin/.git/index: unable to map index file: No such device
fatal: bad object HEAD
Updates were not successfull, reverting to Pi-Star original files...
fatal: /usr/local/sbin/.git/index: unable to map index file: No such device
Done
Updating Hostfiles...
Done
Updating Dashboard...
No updates for /var/www/dashboard (Branch: master) available
Done
Updating PiStar-Firewall...
Done
Starting Services...
Done
Updates complete, syncing disk cache before making the disk Read-Only
Finished
M1DNS
Pi-Star Team
Posts: 1469
Joined: Thu Apr 05, 2018 5:30 am

Re: Error during update

Post by M1DNS »

Either run the update agn. immediately after you see this. if that doesnt get you ur update try this typing it either directly on the cli or cli via SSH.

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

Press enter after youve typed each line.
Then run the update agn.

Sent via smoke signals using my SM-G935F



Andrew M1DNS.
Pi-star Admin Team.
IW9HQZ
Posts: 8
Joined: Sun Jun 23, 2024 7:39 am

Re: Error during update

Post by IW9HQZ »

pi-star@pi-star(ro):~$ cd /usr/local/bin
pi-star@pi-star(ro):bin$ sudo git stash
pi-star@pi-star(ro):bin$ sudo git pull
error: cannot open .git/FETCH_HEAD: Read-only file system
User avatar
G8SEZ
Posts: 598
Joined: Fri Apr 13, 2018 8:26 pm

Re: Error during update

Post by G8SEZ »

Run rpi-rw before the other commands
--

Brian G8SEZ
M1DNS
Pi-Star Team
Posts: 1469
Joined: Thu Apr 05, 2018 5:30 am

Re: Error during update

Post by M1DNS »

G8SEZ wrote:Run rpi-rw before the other commands
Theres really no need. The update script actions rpi-rw at the start of the update process.

Sent via smoke signals using my SM-G935F

Andrew M1DNS.
Pi-star Admin Team.
User avatar
G8SEZ
Posts: 598
Joined: Fri Apr 13, 2018 8:26 pm

Re: Error during update

Post by G8SEZ »

M1DNS wrote: Mon Oct 07, 2024 7:04 am
G8SEZ wrote:Run rpi-rw before the other commands
Theres really no need. The update script actions rpi-rw at the start of the update process.
But not before the commands you suggested if the update fails.
--

Brian G8SEZ
M1DNS
Pi-Star Team
Posts: 1469
Joined: Thu Apr 05, 2018 5:30 am

Re: Error during update

Post by M1DNS »

Yeah, i see what ur saying now. Edited to suit.

Sent via smoke signals using my SM-G935F

Andrew M1DNS.
Pi-star Admin Team.
Post Reply