Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 1 Posters 359 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rob51i03
      last edited by rob51i03

      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?

      1 Reply Last reply Reply Quote 0
      • R
        rob51i03
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • R
          rob51i03
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.