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

    Problems with Squid and SpamD

    Scheduled Pinned Locked Moved pfSense Packages
    20 Posts 10 Posters 8.0k 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.
    • M
      mrreload
      last edited by

      I had the same problem getting Squid to start. Had to squid -z then reboot pfsense for it to start up properly. It still won't start from the GUI though.

      1 Reply Last reply Reply Quote 0
      • C
        Carlo
        last edited by

        I am having the same issues with Squid. I can't start it from the GUI.

        Any solution to this problem?

        -carlo

        1 Reply Last reply Reply Quote 0
        • S
          SatireWolf
          last edited by

          Do a cvs_sync.sh update… Seems to have fixed the problem for me a week or so ago.

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

            If at all do a "cvs_sync.sh releng_1" !!! But be aware that this will be tha last sync that will work for releng_1. We disabled this as we from now on only want people to use firmwareupdates that we officially release.

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

              I was having the same problem with RC1, I did the cvs_sync.sh update and my system has updated to RC2, but I was still having the problem.

              I've looked the code to start a service, and I've seen that the problem was with the function mwexec_bg which is in the /etc/inc/util.inc file

              When this function calls php exec function, it uses:

              
              exec("nohup $command > /dev/null 2>&1 &");
              
              

              I've been trying some combinations, and the problem was with the redirection to stdout, all the others things runs with any problem. So, I've changed the code to look like:

              
              exec("nohup $command 2> /dev/null &");
              
              

              And squid then starts through the gui with no problem. I hope this change won't break any other thing (I think the only problem which can cause is about the creation of the nohup.out file)

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by

                Thx
                I will do testing this too

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by

                  This is not the correct fix.  That function is used throughout the system and isnt something we should just start changing for the sake of it.  The problem resides in the package, not in pfSense common functions.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dvserg
                    last edited by

                    Any body who profy pls look /usr/local/etc/rc.d/squid.sh
                    In my system this have right 0755 and  group and owner '500'
                    any other scripts files have owner 'root'

                    
                    #!/bin/sh
                    # This file was automatically generated
                    # by the pfSense service handler.
                    
                    rc_start() {
                    	squid -D
                    }
                    
                    rc_stop() {
                    	squid -k shutdown
                    # Just to be sure...
                    killall squid 2>/dev/null
                    sleep 1
                    killall squid 2>/dev/null
                    
                    }
                    
                    case $1 in
                    	start)
                    		rc_start
                    		;;
                    	stop)
                    		rc_stop
                    		;;
                    	restart)
                    		rc_stop
                    		rc_start
                    		;;
                    esac
                    
                    

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

                    1 Reply Last reply Reply Quote 0
                    • C
                      Carlo
                      last edited by

                      I'm now running RC2 and I still have the same problem, I'm still not able to run squid from GUI and it also fails to start when i (re)boot.

                      If the problem above isn't the proper way to fix it what is?

                      thx,

                      Carlo

                      1 Reply Last reply Reply Quote 0
                      • S
                        sullrich
                        last edited by

                        Uninstall and reinstall the squid package.

                        1 Reply Last reply Reply Quote 0
                        • C
                          Carlo
                          last edited by

                          Seems to be working now :)

                          Thx!

                          Carlo

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

                            I'm having the same problem with squid to signal 6 exit won't start in the GUI and I'm running RC2, I also can add IP's to the blacklist and nada, zip no blocks on the websites that the IP's refer too. Also I was under the impression that you could enter host names into squid does the slimed down package (squid) for pfsense not allow that (i get error messg) when I put hotmail.com in the blacklist section.

                            Thanks

                            pfSense is a Great system!!!

                            been there done that two or three times…

                            1 Reply Last reply Reply Quote 0
                            • S
                              sullrich
                              last edited by

                              Uninstall and reinstall the squid package.

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