Bug #8938
closedInstallation of a package that depends on php72 on a version of pfSense older than 2.4.4-RELEASE breaks the pfSense install
0%
Description
Install pfSense 2.4.3 and upgrade to 2.4.3_1, go to Available packages and see that the acme package version 0.3.2_3 depends on php72, install acme. The install log will show php56 being removed and php72 being installed. At a point the package install log will stall and if you try to load a GUI page or use a console option, the attempts will fail with php errors.
Ideally, pfSense versions older than 2.4.4 should not be able to see packages which depend on php72, to avoid breaking installs that are not built to use php72.
Files
Updated by Anonymous over 6 years ago
- Category set to Package System
- Assignee set to Renato Botelho
- Priority changed from Normal to High
- Target version set to 2.4.4-GS
- Affected Version set to 2.4.4
Updated by Renato Botelho over 6 years ago
- Status changed from New to Feedback
pfSense-upgrade 0.53 will prevent users from installing / upgrading additional packages when there is a new major PHP version available on remote repository
Updated by Danilo Zrenjanin about 6 years ago
Tested on 2.4.3_1 - I was able to see Acme package which depends on php72 but wasn't able to install it.
Tested on 2.4.4 - Successful install of Acme package no error logs
Tested on 2.4.4_p1 - Successful install of Acme package no error logs
If it is expected behavior we can move this one to resolved.
Updated by Renato Botelho about 6 years ago
- Status changed from Feedback to Resolved
Updated by Anonymous about 6 years ago
- Target version changed from 2.4.4-GS to 2.4.4-p1
Updated by Anonymous about 6 years ago
- Target version changed from 2.4.4-p1 to 2.4.4-GS
Updated by Dmitriy K about 6 years ago
I wonder why 2.4.3 wasnt included in the exclusion list? Unfortunately, now my home router is ruined because of updated packages and I'm 2000km away from it. Can't even restore the router remotely...
Updated by Eduard Rozenberg about 6 years ago
Dmitriy K wrote:
I wonder why 2.4.3 wasnt included in the exclusion list? Unfortunately, now my home router is ruined because of updated packages and I'm 2000km away from it. Can't even restore the router remotely...
Same issue here. My 2.4.3 as of yesterday was still showing an incompatible acme package, I clicked to upgrade it, and it broke my system. Luckily the system is still up and routing traffic, but I haven't figured out any way to download or find the older packages to be able to restore the system to the previous OK state. Only thing I know to do now is to reinstall from scratch. Sadness :(.
Updated by Eduard Rozenberg about 6 years ago
Dmitriy K wrote:
I wonder why 2.4.3 wasnt included in the exclusion list? Unfortunately, now my home router is ruined because of updated packages and I'm 2000km away from it. Can't even restore the router remotely...
Here's what I did, though completely at your own risk, and if you have no immediate option to reinstall. If your firewall is still running and routing properly, you may want to wait until you're on site before messing with it further. Also, make 1 or 2 local backups of your config from the web UI before messing with the machine further.
ssh to the firewall
$ pkg update
$ pkg upgrade
The above will upgrade remaining packages to get to 2.4.4. But it will not do quite all of necessary steps, see below for one issue I came across.
Reboot the firewall from web interface.
If reboot didn't work properly, may have to reset or power cycle the machine - this was the case for me.
If the auto backup package was previously installed, it will conflict with the autoconfigbackup now built into pfSense 2.4.4. In that case log into web UI and:
1) Services -> Auto Config Backup -> Settings -> turn off Enable ACB and Save
2) Go to Packages and uninstall (trash icon) the old Auto Config Backup package
3) Go back to Service -> Auto Config Backup and re-enable the service, if you are planning to use it
I also went to the web UI packages list, and reinstalled each package one by one, just to make sure they are all properly installed with no errors.
Maybe there are other things that aren't quite right, but the setup appears to be working fine. I will do a proper reinstall at some point just to make sure.
Updated by Dmitriy K about 6 years ago
Thanks, Eduard, I will try it later this day.