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

    squidGuard not upgrading

    Scheduled Pinned Locked Moved pfSense Packages
    9 Posts 3 Posters 682 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.
    • H
      hollister
      last edited by

      Just upgraded squid to 0.4.44_29, it did not confirm a successful upgrade as I am used to but after a reboot it showed the new version in the package manager.

      then I tried to upgrade squidGuard again
      pkg=pfSense-pkg-squidGuard&from=1.16.18_5&to=1.16.18_6
      with no success.

      Running on 2.4.5-RELEASE-p1 (amd64)
      HW: pcengines

      Any help would be great.

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Try stopping any running squidGuard instance that might be running. A running process seems to cause issues with the installation by locking certain files.

        Stop squidGuard and then get to a shell prompt on the console and verify no squidGuard processes are running. If you see any, kill them. Then try installing the package again.

        1 Reply Last reply Reply Quote 0
        • H
          hollister
          last edited by

          As of today, I upgraded to squid 0.4.44_30
          I stopped the services

          then I tried again to install pfSense-pkg-squidGuard 1.16.18_6
          I thought I noticed before a Success or something, in either case when going back to the Package Manager
          it does not show upgraded.

          How do you verify on prompt that no squidGuard processes are running?
          I did try: killall -9 pkg-static

          ll 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 UPGRADED:
          pfSense-pkg-squidGuard: 1.16.18_5 -> 1.16.18_6 [pfSense]

          Number of packages to be upgraded: 1
          [1/1] Upgrading pfSense-pkg-squidGuard from 1.16.18_5 to 1.16.18_6...
          [1/1] Extracting pfSense-pkg-squidGuard-1.16.18_6: .......... done
          Removing squidGuard components...
          Menu items... done.
          Services... done.
          Loading package instructions...
          Deinstall commands... done.

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            This command should show any running squid or squidGuard processes:

            ps -ax | grep squid
            

            Look at the output of that command and note the Process ID <pid> of any running squid or squidGuard processes and kill them using this command:

            kill -9 <pid>
            

            Replace <pid> in the above command with the numerical Process ID you see displayed for any running processes with the first command.

            1 Reply Last reply Reply Quote 0
            • H
              hollister
              last edited by

              with ps -ax | grep squid

              28301 - S 0:00.38 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              28482 - I 0:00.14 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              28523 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              28634 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              45685 - Is 0:00.01 /usr/local/sbin/squid -f /usr/local/etc/squid/squid.c
              46066 - S 0:29.10 (squid-1) --kid squid-1 -f /usr/local/etc/squid/squid

              Does that look normal?
              since I am not able to upgrade squidguard I could kill the top 4 processes.

              Everytime I kill one it creates more processes, as you can see I killed the first 2

              28523 - S 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              28634 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              46931 - S 0:00.12 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              47021 - S 0:00.12 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              47155 - S 0:00.12 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              47483 - S 0:00.12 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              87871 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              88100 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              88325 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.
              88342 - I 0:00.13 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.

              Through the UI pfsense I stopped the following services:
              c-icap
              squid

              sometimes squid stops and sometimes it does not.
              I also tried
              killall -9 squidGuard
              kill -9 pgrep squidGuard

              no success

              1 Reply Last reply Reply Quote 0
              • H
                hollister
                last edited by

                I was able to upgrade, how?
                Uninstalled squidGuard about 4 times
                reboot
                Uninstalled again
                then installed the new version
                reinstalled squid (Since it was not green the last time I installed)
                rebooted
                seems to work

                thanks for your help

                1 Reply Last reply Reply Quote 0
                • bmeeksB
                  bmeeks
                  last edited by

                  Man, it sounds like Squid or squidGuard was some kind of unkillable zombie from the Apocalypse...😀.

                  There was probably a parent process in that list, and all the rest were children of that parent. Killing a child process likely resulted in the parent immediately relaunching it.

                  Glad you got it sorted out.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kor_sal
                    last edited by

                    Hello sir i have problem as your. But how i fix " pkg-static: Cannot get an advisory lock on a database, it is locked by another process fail" . I don't understand why it show like that.

                    1 Reply Last reply Reply Quote 0
                    • H
                      hollister
                      last edited by

                      Running on 2.4.5-RELEASE-p1
                      Same problems again trying to upgrade squidGuard to 1.16.18_7
                      I think I am giving up trying to update these packages (squid and squidGuard)

                      Had a hard time even uninstalling them.
                      The best I can tell
                      0. reboot

                      1. Dashboard - Services Status - stop right away (c-icap, Clamd and squid)
                      2. uninstall Watchdog
                      3. uninstall squidGuard
                      4. uninstall squid
                      5. reboot
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.