Squid is not starting



  • Hi,

    I have problem with squid. It stopped working. Just like that. It was working perfectly with squidguard, and day after it stopped.
    I tried to reinstall packages (squid and squidguard) multiple times, I've upgraded pfsense couple of times and it still not working.

    Please help me because I cant find any solution, moreover I know pretty nothing about linux so some solutions I found are too advanced for me.

    My logfile:

    May 28 01:23:26 	squid 		redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    May 28 01:23:26 	Squid_Alarm 	32838 	Attempting restart...
    May 28 01:23:26 	Squid_Alarm 	32748 	Squid has exited. Reconfiguring filter.
    May 28 01:23:23 	php-fpm 	88122 	/rc.filter_configure_sync: [squid] Installed but not started. Not installing 'filter' rules.
    May 28 01:23:23 	php-fpm 	88122 	/rc.filter_configure_sync: [squid] Installed but not started. Not installing 'pfearly' rules.
    May 28 01:23:23 	xinetd 	33322 	Reconfigured: new=0 old=1 dropped=0 (services)
    May 28 01:23:23 	xinetd 	33322 	readjusting service 6969-udp
    May 28 01:23:23 	xinetd 	33322 	Swapping defaults
    May 28 01:23:23 	xinetd 	33322 	Starting reconfiguration
    May 28 01:23:23 	php-fpm 	88122 	/rc.filter_configure_sync: [squid] Installed but not started. Not installing 'nat' rules.
    May 28 01:23:23 	php-fpm 	88122 	/rc.filter_configure_sync: MONITOR: OPTIGW is down, omitting from routing group KonopWAN
    May 28 01:23:22 	check_reload_status 		Reloading filter
    May 28 01:23:21 	php-fpm 		/pkg_edit.php: [squid] Starting a proxy monitor script
    May 28 01:23:11 	php-fpm 		/pkg_edit.php: The command '/usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/05/28 01:23:11| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.013 seconds = 0.013 user + 0.000 sys Maximum Resident Size: 51936 KB Page faults with physical i/o: 0'
    May 28 01:23:11 	squid 		redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    May 28 01:23:11 	php-fpm 		/pkg_edit.php: [squid] Starting service...
    May 28 01:23:10 	php-fpm 		/pkg_edit.php: [squid] Stopping any running proxy monitors
    May 28 01:23:09 	php-fpm 		/pkg_edit.php: [squid] Starting a proxy monitor script
    May 28 01:22:59 	php-fpm 		/pkg_edit.php: The command '/usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/05/28 01:22:59| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.013 seconds = 0.013 user + 0.000 sys Maximum Resident Size: 51936 KB Page faults with physical i/o: 0'
    May 28 01:22:59 	squid 		redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    May 28 01:22:59 	php-fpm 		/pkg_edit.php: [squid] Starting service...
    May 28 01:22:58 	php-fpm 		/pkg_edit.php: The command '/usr/local/sbin/squid -z -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/05/28 01:22:58| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.013 seconds = 0.006 user + 0.006 sys Maximum Resident Size: 56928 KB Page faults with physical i/o: 0'
    May 28 01:22:58 	squid 		redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    May 28 01:22:58 	php-fpm 		/pkg_edit.php: [squid] Creating Squid cache subdirs in /var/squid/cache ...
    May 28 01:22:58 	php-fpm 		/pkg_edit.php: [squid] Creating cache dir '/var/squid/cache' ...
    May 28 01:22:57 	php-fpm 		/pkg_edit.php: [squid] Stopping any running proxy monitors
    May 28 01:22:57 	php-fpm 		/pkg_edit.php: [squid] Removing freshclam cronjob.
    May 28 01:22:57 	php-fpm 		/pkg_edit.php: [squid] Antivirus features disabled.
    May 28 01:22:57 	php-fpm 		/pkg_edit.php: Checked cron job for /usr/local/pkg/swapstate_check.php, no change needed
    May 28 01:22:57 	php-fpm 		/pkg_edit.php: Checked cron job for /usr/local/sbin/squid -k rotate -f /usr/local/etc/squid/squid.conf, no change needed
    May 28 01:22:57 	php-fpm 		/pkg_edit.php: [squid] Adding cronjobs ...
    May 28 01:22:56 	php-fpm 		/pkg_edit.php: [squid] - squid_resync function call pr: bp: rpc:no
    May 28 01:22:56 	check_reload_status 		Syncing firewall
    May 28 01:22:54 	php-fpm 		/pkg_edit.php: [squid] Starting a proxy monitor script
    May 28 01:22:44 	php-fpm 		/pkg_edit.php: The command '/usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/05/28 01:22:44| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.013 seconds = 0.013 user + 0.000 sys Maximum Resident Size: 52048 KB Page faults with physical i/o: 0'
    May 28 01:22:44 	squid 		redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    May 28 01:22:44 	php-fpm 		/pkg_edit.php: [squid] Starting service...
    May 28 01:22:43 	php-fpm 		/pkg_edit.php: The command '/usr/local/sbin/squid -z -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/05/28 01:22:43| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.013 seconds = 0.006 user + 0.006 sys Maximum Resident Size: 56912 KB Page faults with physical i/o: 0'
    May 28 01:22:43 	squid 		redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    May 28 01:22:43 	php-fpm 		/pkg_edit.php: [squid] Creating Squid cache subdirs in /var/squid/cache ...
    May 28 01:22:43 	php-fpm 		/pkg_edit.php: [squid] Creating cache dir '/var/squid/cache' ...
    May 28 01:22:42 	php-fpm 		/pkg_edit.php: [squid] Clear disk cache forced via GUI. Clearing cache now... 
    

    Please help me. I have no clue what to do.



  • Hi again!

    I made some digging and I found reason why my squid failed to start. It was obviously written in logifleā€¦

    I have changed one line in squid.conf and it works great:

    line in # Package Integration in squid.conf

    url_rewrite_program /usr/pbi/squidguard-amd64/bin/squidGuard -c /usr/pbi/squidguard-amd64/etc/squidGuard/squidGuard.conf
    

    should be changed to

    url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
    

    And I have one more problem with this. Because when I change anything in web GUI settings, this line gets back wrong. How to fix it permanently?



  • Hi,

    probably you have to modify this in /usr/local/pkg/squid.inc or some other squid(guard) related .inc file.
    These files together with the XML files create the squid.conf