Clear Package Lock not working; "/etc/rc.package_reinstall_all" still running


  • 2.4.5-RELEASE-p1 (amd64)

    After a recent configuration restore the package manager failed to reinstall all previously installed packages. Hitting Clear Package Lock allowed me to go into Package Manager but I couldn't manually install packages:

    process with pid 45734 still holds the lock
    

    fstat /var/db/pkg/local.sqlite confirmed:

    USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
    root     pkg-static 45734    5 /        22230953 -rw-r--r--  6004736 rw  /var/db/pkg/local.sqlite
    

    and ps showed that the script to reinstall all packages is still running:

      PID TT  STAT    TIME COMMAND
    96451 u0- S    0:00.79 /usr/local/bin/php-cgi -f /etc/rc.package_reinstall_all
    

    Killing the above two processes allows me to manually reinstall packages, but upon rebooting pfSense the package lock reapplies and the script runs again, although all required packages are installed.

    How to permanently clear the package lock and get package manager back to a stable state?


  • Also, upon restarting pfSense, the services associated with the manually installed packages don't start automatically. However they work successfully when manually started.


  • Wiped the FW and reinstalled pfSense 2.4.5p1. Applied my backed up config; same issue.

    Wiped the FW and reinstalled pfSense 2.4.4p3. Applied my backed up config; all packages downloaded and installed smoothly.

    I guess I'll be staying on 2.4.4p3 for now.