OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: 4r7ur on January 30, 2018, 02:34:27 pm

Title: [SOLVED] Update from .7.12 -> .7.12-1 failed - file system read only
Post by: 4r7ur on January 30, 2018, 02:34:27 pm
today I started the upgrade from 17.7.1 to 17.7.12-1 on my apu2c4. During the upgrade process the appliance froze , so I did a reboot from the console after 30 minutes.
Since then the GUI does not start, on the console I see this problem when I try to upgrade again manually:

/usr/local/etc/rc.firmware.subr: cannot create /tmp/pkg_upgrade.progress: Read-only file system
A firmware update is currently in progress.

Just a note what also happened last night. I ran a firmware upgrade on the apu2c4, this competed successfully, after that I was able to work for about an hour before going to sleep. Some time between 3 and 6 am the opnsense hung itself up. It was not reachable through network although from an outside ipsec-vpn I slowly was able to access the network switch inside my network. After a hard power-off reboot everything was working fine until the opnsense upgrade as described above.

What I tried to do now:

using the shell execute twice
mount -uo rw /
touch /root/force_fsck

Yet this did not help, file system check seems not to work and when booting back the file system still is read only. With my limitied unix knowledge I'm stuck now. Does anyone have an idea how to get the file system back into rw mode, run a file system check and bring the opnsense back to life?

Thanks,
Artur
Title: Re: Update from .7.12 -> .7.12-1 failed - file system read only
Post by: franco on January 30, 2018, 03:04:04 pm
Hi Artur,

The system will attempt to run fsck on boot (it will print any errors so check the console if you can), but likely it can't recover from the corruption and prevents read-write.

Back up your config and try a 18.1 installer import configuration + guided install to reformat the disk while retaining your settings.

But it might be that your disk is dying.


Cheers,
Franco
Title: Re: Update from .7.12 -> .7.12-1 failed - file system read only
Post by: 4r7ur on January 30, 2018, 05:39:41 pm
Big Thank You!

This
Quote
Back up your config and try a 18.1 installer import configuration + guided install to reformat the disk while retaining your settings.
did the trick, the device is up and running again.

And the order for a new disk is placed as well, it never hurts to have some backup hardware at hand. As soon as I have some time, I need to check what I can find out about the status of the existing disk

Cheers,
Artur