Navigation

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

    2.4.5-p1 squid and squidguard packages stuck whilst updating [WORKAROUND]

    Installation and Upgrades
    2
    4
    294
    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.
    • A
      asark last edited by asark

      I upgraded from 2.4.4-p3 seemingly cleanly however I noticed that my squidguard web option had disappeared. When checking the installed packages I noticed there were more recent versions.
      Upon trying to re-install the packages it's getting stuck at:

      Reinstalling pfSense-pkg-Cron
      >>> Upgrading pfSense-pkg-Cron... 
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      pfSense repository is up to date.
      All repositories are up to date.
      Checking integrity... done (0 conflicting)
      The following 1 package(s) will be affected (of 0 checked):
      
      Installed packages to be REINSTALLED:
      	pfSense-pkg-Cron-0.3.7_4 [pfSense]
      
      Number of packages to be reinstalled: 1
      [1/1] Reinstalling pfSense-pkg-Cron-0.3.7_4...
      [1/1] Extracting pfSense-pkg-Cron-0.3.7_4: .......... done
      Removing Cron components...
      Menu items... done.
      Loading package instructions...
      Saving updated package information...
      overwrite!
      Loading package configuration... done.
      Configuring package components...
      Loading package instructions...
      Custom commands...
      Executing custom_php_resync_config_command()...done.
      Menu items... done.
      Writing configuration... done.
      >>> Cleaning up cache... done.
      
      Reinstalling pfSense-pkg-squid
      >>> Upgrading pfSense-pkg-squid... 
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      pfSense repository is up to date.
      All repositories are up to date.
      Checking integrity... done (0 conflicting)
      The following 1 package(s) will be affected (of 0 checked):
      
      Installed packages to be REINSTALLED:
      	pfSense-pkg-squid-0.4.44_27 [pfSense]
      
      Number of packages to be reinstalled: 1
      [1/1] Reinstalling pfSense-pkg-squid-0.4.44_27...
      [1/1] Extracting pfSense-pkg-squid-0.4.44_27: .......... done
      Removing squid components...
      Menu items... done.
      Services... done.
      Loading package instructions...
      Deinstall commands... done.
      Saving updated package information...
      overwrite!
      Loading package configuration... done.
      Configuring package components...
      Loading package instructions...
      Custom commands...
      Executing custom_php_install_command()...done.
      Executing custom_php_resync_config_command()...done.
      Menu items... done.
      Services... done.
      Writing configuration... done.
      

      How can I find out what is going on?

      DaddyGo 1 Reply Last reply Reply Quote 0
      • DaddyGo
        DaddyGo @asark last edited by DaddyGo

        @asark

        Hi,
        I have experienced this today also...

        in case you let the installation run for 10 minutes (this is an extra safety time) and come back here "Installed Packages"
        you can see that, the installation has even taken place
        the package works without any problems only the installer shuts down and does not exit the process

        I don't know, if this is your case too, how does it work?

        0dc9ae1b-60c9-4f2a-807b-d6fbd010aea8-image.png

        ++++edit: it is a fact that the installer is stuck, but the process was done for me

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        1 Reply Last reply Reply Quote 0
        • A
          asark last edited by

          I only have 3 packages installed: cron, squid & squidGuard.
          If I cancel the hanging installation and install individually:
          cron installs no problem

          root: pkg-static -d install -y -f pfSense-pkg-cron
          DBG(1)[48394]> pkg initialized
          Updating pfSense-core repository catalogue...
          DBG(1)[48394]> PkgRepo: verifying update for pfSense-core
          DBG(1)[48394]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite'
          DBG(1)[48394]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-core/meta.conf with opts "i"
          DBG(1)[48394]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-core/meta.txz with opts "i"
          DBG(1)[48394]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-core/packagesite.txz with opts "i"
          pfSense-core repository is up to date.
          Updating pfSense repository catalogue...
          DBG(1)[48394]> PkgRepo: verifying update for pfSense
          DBG(1)[48394]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense.sqlite'
          DBG(1)[48394]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/meta.conf with opts "i"
          DBG(1)[48394]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/meta.txz with opts "i"
          DBG(1)[48394]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/packagesite.txz with opts "i"
          pfSense repository is up to date.
          All repositories are up to date.
          DBG(1)[48394]> want to get an advisory lock on a database
          DBG(1)[48394]> found stale pid 90649 in lock database, my pid is: 48394
          DBG(1)[48394]> no concurrent processes found, cleanup the lock
          DBG(1)[48394]> want to get an advisory lock on a database
          DBG(1)[48394]> Binary> loading /var/cache/pkg/pfSense-pkg-Cron-0.3.7_4-73fdd2bc51.txz
          Checking integrity...DBG(1)[48394]> check integrity for 1 items added
           done (0 conflicting)
          The following 1 package(s) will be affected (of 0 checked):
          
          Installed packages to be REINSTALLED:
                  pfSense-pkg-Cron-0.3.7_4 [pfSense]
          
          Number of packages to be reinstalled: 1
          DBG(1)[48394]> want to upgrade advisory to exclusive lock
          [1/1] Reinstalling pfSense-pkg-Cron-0.3.7_4...
          [1/1] Extracting pfSense-pkg-Cron-0.3.7_4: 100%
          DBG(1)[48394]> Cleaning up old version
          Removing Cron components...
          Menu items... done.
          Loading package instructions...
          DBG(1)[48394]> Number of packages owning the directory '/etc/inc/priv': 4
          Saving updated package information...
          overwrite!
          Loading package configuration... done.
          Configuring package components...
          Loading package instructions...
          Custom commands...
          Executing custom_php_resync_config_command()...done.
          Menu items... done.
          Writing configuration... done.
          DBG(1)[48394]> release an exclusive lock on a database
          DBG(1)[48394]> release an advisory lock on a database
          

          squid installs but hangs on last process to release locks on db

          root: pkg-static -d install -y -f pfSense-pkg-squid
          DBG(1)[89141]> pkg initialized
          Updating pfSense-core repository catalogue...
          DBG(1)[89141]> PkgRepo: verifying update for pfSense-core
          DBG(1)[89141]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite'
          DBG(1)[89141]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_5_amd64-core/meta.conf with opts "i"
          DBG(1)[89141]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_5_amd64-core/meta.txz with opts "i"
          DBG(1)[89141]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_5_amd64-core/packagesite.txz with opts "i"
          pfSense-core repository is up to date.
          Updating pfSense repository catalogue...
          DBG(1)[89141]> PkgRepo: verifying update for pfSense
          DBG(1)[89141]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense.sqlite'
          DBG(1)[89141]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/meta.conf with opts "i"
          DBG(1)[89141]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/meta.txz with opts "i"
          DBG(1)[89141]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/packagesite.txz with opts "i"
          pfSense repository is up to date.
          All repositories are up to date.
          DBG(1)[89141]> want to get an advisory lock on a database
          DBG(1)[89141]> Required shlib changed libevent-2.1.so.6 -> libevent-2.1.so.7
          DBG(1)[89141]> Binary> loading /var/cache/pkg/pfSense-pkg-squid-0.4.44_27-9acd102efa.txz
          Checking integrity...DBG(1)[89141]> check integrity for 1 items added
           done (0 conflicting)
          The following 1 package(s) will be affected (of 0 checked):
          
          Installed packages to be REINSTALLED:
                  pfSense-pkg-squid-0.4.44_27 [pfSense]
          
          Number of packages to be reinstalled: 1
          DBG(1)[89141]> want to upgrade advisory to exclusive lock
          [1/1] Reinstalling pfSense-pkg-squid-0.4.44_27...
          [1/1] Extracting pfSense-pkg-squid-0.4.44_27: 100%
          DBG(1)[89141]> Cleaning up old version
          Removing squid components...
          Menu items... done.
          Services... done.
          Loading package instructions...
          Deinstall commands... done.
          DBG(1)[89141]> Number of packages owning the directory '/etc/inc/priv': 4
          Saving updated package information...
          overwrite!
          Loading package configuration... done.
          Configuring package components...
          Loading package instructions...
          Custom commands...
          Executing custom_php_install_command()...done.
          Executing custom_php_resync_config_command()...done.
          Menu items... done.
          Services... done.
          Writing configuration... done.
          

          squidGuard hangs after Deinstall commands:

          root: pkg-static -d install -y -f pfSense-pkg-squidGuard
          DBG(1)[48077]> pkg initialized
          Updating pfSense-core repository catalogue...
          DBG(1)[48077]> PkgRepo: verifying update for pfSense-core
          DBG(1)[48077]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite'
          DBG(1)[48077]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-core/meta.conf with opts "i"
          DBG(1)[48077]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-core/meta.txz with opts "i"
          DBG(1)[48077]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-core/packagesite.txz with opts "i"
          pfSense-core repository is up to date.
          Updating pfSense repository catalogue...
          DBG(1)[48077]> PkgRepo: verifying update for pfSense
          DBG(1)[48077]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense.sqlite'
          DBG(1)[48077]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/meta.conf with opts "i"
          DBG(1)[48077]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/meta.txz with opts "i"
          DBG(1)[48077]> Fetch: fetching from: https://files00.netgate.com/pfSense_v2_4_5_amd64-pfSense_v2_4_5/packagesite.txz with opts "i"
          pfSense repository is up to date.
          All repositories are up to date.
          DBG(1)[48077]> want to get an advisory lock on a database
          DBG(1)[48077]> found stale pid 50890 in lock database, my pid is: 48077
          DBG(1)[48077]> no concurrent processes found, cleanup the lock
          DBG(1)[48077]> want to get an advisory lock on a database
          DBG(1)[48077]> Required shlib changed libevent-2.1.so.6 -> libevent-2.1.so.7
          DBG(1)[48077]> Binary> loading /var/cache/pkg/pfSense-pkg-squidGuard-1.16.18_6-a4ad39b396.txz
          Checking integrity...DBG(1)[48077]> check integrity for 1 items added
           done (0 conflicting)
          The following 1 package(s) will be affected (of 0 checked):
          
          Installed packages to be REINSTALLED:
                  pfSense-pkg-squidGuard-1.16.18_6 [pfSense]
          
          Number of packages to be reinstalled: 1
          DBG(1)[48077]> want to upgrade advisory to exclusive lock
          [1/1] Reinstalling pfSense-pkg-squidGuard-1.16.18_6...
          [1/1] Extracting pfSense-pkg-squidGuard-1.16.18_6: 100%
          DBG(1)[48077]> Cleaning up old version
          Removing squidGuard components...
          Menu items... done.
          Services... done.
          Loading package instructions...
          Deinstall commands... done.
          
          1 Reply Last reply Reply Quote 0
          • A
            asark last edited by

            So after hours of fun it truns out this is a bug. See https://forum.netgate.com/search?term=stuck%20after%20deinstall&in=titlesposts for more details.

            In short you need to stop the squid services before the re-install can complete successfully!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post