Upgrade from 2.4.5 to 2.4.5_1 fails
-
I run 2.4.5 and started a system upgrade via Web UI. After pressing "Confirm" in "System / Update / System Update" the process gets stuck on "Please wait while the update system initializes" - never goes beyond that report line. Happened more than once.
When I tried via cmd-line I see that:
[2.4.5-RELEASE][admin@Firewall.localdomain]/root: pkg update -f Updating pfSense-core repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.txz: 100% 2 KiB 1.8kB/s 00:01 Processing entries: 100% pfSense-core repository update completed. 7 packages processed. Updating pfSense repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.txz: 100% 139 KiB 142.8kB/s 00:01 Processing entries: 100% pfSense repository update completed. 518 packages processed. All repositories are up to date. [2.4.5-RELEASE][admin@Firewall.localdomain]/root: pfSense-upgrade Another instance is already running... Aborting! [2.4.5-RELEASE][admin@Firewall.localdomain]/root:
Looks like some "update-in-progress" flag got set and never reset. Could be a bug worth fixing.
And could there be a way to easily fix it, for example, via reboot or manual flag removal?
-
do a backup of your config from Diagnostics / backup and restore
the package manager is indeed running, if it's stuck for a long time, search for it with ps auxwww
kill the process
and update from console
at this point maybe it's better not to reboot until the process complete -
@kiokoman When I rebooted the firewall, it got stuck (did not assign IPs to interfaces and never got to Web UI) and I had to connect a console via serial port. I could see about 10 restore points (each one saved before the Web UI upgrade request, I presume). At this point running
pfSense-upgrade
worked fine and succeeded. I presume a reboot cleared that "update-in-progress" flag.I now need to figure out why my firewall doesn't reboot :-(
-
yeah the reboot cleared it but there is a possibility that your system was half upgraded after the reboot and something may not work at all.
just to be sure that everything upgraded fine follow this doc
https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html
if you still have trouble maybe it's better to reinstall -
@kiokoman Thanks for the link. The upgrade log
/conf/upgrade_log.latest.txt
looks OK with a lot of expected stuff and no errors/warnings or anything else suspicious. Web UI also reports the expected version 2.4.5-RELEASE-p1 (amd64).I hope to find some time to investigate why rebooting fails but it'll have to wait for a quiet time...