Bug #3597
closed
Todo #4224: PBIs are old skool. pkg-ng is the new shiny. We need to convert pfSense to use pkg-ng.
Package reinstall on system upgrades needs some fallback handling
Added by Doktor Notor over 10 years ago.
Updated almost 9 years ago.
Affected Architecture:
All
Description
Lost all packages on upgrade. No idea if the process was killed or what, does not exactly matter. Result:
- Installed packages list empty
- Diagnostics - Backup/Restore - Reinstall packages unavailable
- Digging through the system log and/or configuration backups to find out what was actually installed seriously sucks. In the end, all we end with is a flood of
php: rc.start_packages: $foo package is missing its configuration file and must be reinstalled.
in the system log.
Apparently the process is not tracked at all. Also, why is the list of packages that is created right before trying to reinstall the packages not saved somewhere and used for the reinstall all packages feature if the process completely/partially fails due to whatever reason?
- Target version set to 2.2
Definitely some improvements to be made here.
One that'd go a long way is before doing anything, see if you can fetch something from https://packages.pfsense.org, and if not, bail without changing anything, leaving the pre-existing packages in place.
- Assignee set to Renato Botelho
assigned to Renato.
on full installs, it might be nice to cache the packages.
need status if this is going to make 2.2 (if it's not in BETA, it's not going in)
Chris Buechler wrote:
Definitely some improvements to be made here.
One that'd go a long way is before doing anything, see if you can fetch something from https://packages.pfsense.org, and if not, bail without changing anything, leaving the pre-existing packages in place.
It works like this today, during the full reinstall process, if package list cannot be retrieved, it's aborted.
- Target version changed from 2.2 to 2.3
Jim Thompson wrote:
need status if this is going to make 2.2 (if it's not in BETA, it's not going in)
This requires a big change and I don't think it's a good idea for 2.2.
There will be more changes in this area on 2.3, I'd say to hold this to be done together.
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Parent task set to #4224
pfSense-upgrade fetches all updates before reboot, and finish the process during boot.
- Status changed from Feedback to Resolved
a variety of changes in 2.3 seem to have resolved all the package reinstall issues that weren't already fixed in earlier versions. The issue described in OP here is definitely fixed.
Also available in: Atom
PDF