Problem with Squid



  • Hi

    I am using pfsense  2.0.1-RELEASE (i386) during the boot process I see error messages of squid. I report here the System log

    Jan 10 05:11:17 php: : rc.newwanip: on (IP address: 192.168.166.34) (interface: ) (real interface: ovpnc1).
    Jan 10 05:11:17 check_reload_status: Reloading filter
    Jan 10 05:11:17 php: : The command '/usr/bin/killall 'ntpd'' returned exit code '1', the output was 'killall: warning: kill -TERM 22697: No such process'
    Jan 10 05:11:18 php: : OpenNTPD is starting up.
    Jan 10 05:11:18 php: : pfSense package system has detected an ip change -> … Restarting packages.
    Jan 10 05:11:18 check_reload_status: Starting packages
    Jan 10 05:11:20 php: : Creating rrd update script
    Jan 10 05:11:22 php: : Restarting/Starting all packages.
    Jan 10 05:11:23 php: : Reloading Squid for configuration sync
    Jan 10 05:11:23 php: : Reloading Squid for configuration sync
    Jan 10 05:11:25 php: : Reloading Squid for configuration sync
    Jan 10 05:11:27 php: : Reloading Squid for configuration sync
    Jan 10 05:11:27 check_reload_status: Reloading filter
    Jan 10 05:11:27 php: : Not calling package sync code for dependency squid of squid because some include files are missing.
    Jan 10 05:11:29 php: : Reloading Squid for configuration sync
    Jan 10 05:11:29 check_reload_status: Reloading filter
    Jan 10 05:11:30 php: : Reloading Squid for configuration sync
    Jan 10 05:11:32 php: : Reloading Squid for configuration sync
    Jan 10 05:11:35 php: : Reloading Squid for configuration sync
    Jan 10 05:11:39 php: : Restarting/Starting all packages.
    Jan 10 05:11:39 squid[60159]: Squid Parent: child process 60806 exited with status 0
    Jan 10 05:11:40 apinger: Error while feeding rrdtool: Broken pipe
    Jan 10 05:11:41 php: : Starting Squid
    Jan 10 05:11:41 squid[61988]: Squid Parent: child process 62503 started
    Jan 10 05:11:43 check_reload_status: Reloading filter
    Jan 10 05:11:43 php: : Not calling package sync code for dependency squid of squid because some include files are missing.
    Jan 10 05:11:45 php: : Reloading Squid for configuration sync
    Jan 10 05:11:45 kernel: pid 5537 (php), uid 0, was killed: out of swap space
    Jan 10 05:11:46 php: : IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.
    Jan 10 05:11:47 login: login on console as root
    Jan 10 05:11:47 sshlockout[9972]: sshlockout/webConfigurator v3.0 starting up
    Jan 10 05:11:48 check_reload_status: Reloading filter
    Jan 10 05:11:50 check_reload_status: Reloading filter
    Jan 10 05:11:51 php: : Reloading Squid for configuration sync
    Jan 10 05:11:55 php: : Reloading Squid for configuration sync
    Jan 10 05:11:58 php: : Reloading Squid for configuration sync
    Jan 10 05:12:00 php: : Reloading Squid for configuration sync
    Jan 10 05:12:03 check_reload_status: Reloading filter
    Jan 10 05:12:03 php: : Not calling package sync code for dependency squid of squid because some include files are missing.
    Jan 10 05:12:04 php: : Reloading Squid for configuration sync
    Jan 10 05:12:05 check_reload_status: Reloading filter
    Jan 10 05:12:06 php: : Reloading Squid for configuration sync
    Jan 10 05:12:08 php: : Reloading Squid for configuration sync
    Jan 10 05:12:11 php: : Reloading Squid for configuration sync
    Jan 10 05:12:13 kernel: pid 36707 (php), uid 0, was killed: out of swap space
    Jan 10 05:12:14 php: : Reloading Squid for configuration sync
    Jan 10 05:12:14 squid[61988]: Squid Parent: child process 62503 exited with status 0
    Jan 10 05:12:16 check_reload_status: Reloading filter
    Jan 10 05:12:19 php: : Starting Squid
    Jan 10 05:12:19 squid[12767]: Squid Parent: child process 13332 started
    Jan 10 05:12:20 check_reload_status: Reloading filter
    Jan 10 05:12:24 squid[12767]: Squid Parent: child process 13332 exited with status 0
    Jan 10 05:12:25 php: : SQUID is installed but not started. Not installing "filter" rules.
    Jan 10 05:12:29 php: : SQUID is installed but not started. Not installing "nat" rules.
    Jan 10 05:12:30 php: : SQUID is installed but not started. Not installing "pfearly" rules.
    Jan 10 05:12:33 php: : SQUID is installed but not started. Not installing "filter" rules.
    Jan 10 05:12:37 check_reload_status: Syncing firewall
    Jan 10 05:12:39 php: : Starting Squid
    Jan 10 05:12:39 squid[48186]: Squid Parent: child process 48551 started
    Jan 10 05:12:39 check_reload_status: Reloading filter
    Jan 10 05:12:40 apinger: /usr/local/bin/rrdtool respawning too fast, waiting 300s.
    Jan 10 05:12:43 check_reload_status: Syncing firewall

    At the same time I see in the portalauth log these messages

    Jan 10 05:11:15 squid[60159]: Squid Parent: child process 60806 started
    Jan 10 05:11:39 squid[60159]: Squid Parent: child process 60806 exited with status 0
    Jan 10 05:11:41 squid[61988]: Squid Parent: child process 62503 started
    Jan 10 05:12:14 squid[61988]: Squid Parent: child process 62503 exited with status 0
    Jan 10 05:12:19 squid[12767]: Squid Parent: child process 13332 started
    Jan 10 05:12:24 squid[12767]: Squid Parent: child process 13332 exited with status 0
    Jan 10 05:12:39 squid[48186]: Squid Parent: child process 48551 started

    Squid seems terminate and reastart more than one time. Sometimes happens that It does not start at boot phase.

    What can I do to avoid this behavior?



  • I'm not an expert but…. I would try uninstalling and the Squid package and then re-install.

    FYI: I, too, had some problems with squid a couple months ago, but then found that I was installing Squid3 and then Squidguard.  Apparently, some of the config stuff changes as squid would not start and I got many of the same type of errors.

    I have not retried this recently.

    Duane.



  • It is "normal" that packages restart several times on bootup. This is because some packages need to restart if interfaces are changing or firewall rules. On bootup there is so much which will be configured so that restarts are not a problem.

    So my question is:
    What does not work ?
    What error do you mean exactly to be an "error" ?


Log in to reply