Squid and squidGuard problem



  • hi
    from 28/11/2012 i faced problem with squid and squidGuard
    Custom Options change to :
    redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf;redirector_bypass off;url_written_children 5;

    and in log:

    Dec 11 22:40:58 squid[52406]: Squid Parent: child process 7948 started
    Dec 11 22:40:55 kernel: pid 6612 (squid), uid 62: exited on signal 6
    Dec 11 22:40:55 squid[52406]: Squid Parent: child process 6612 exited due to signal 6
    Dec 11 22:40:55 kernel: pid 6612 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:40:55 squid[6612]: Write failure – check your disk space and cache.log
    Dec 11 22:40:47 squid[52406]: Squid Parent: child process 6612 started
    Dec 11 22:40:44 kernel: pid 51117 (squid), uid 62: exited on signal 6
    Dec 11 22:40:44 squid[52406]: Squid Parent: child process 51117 exited due to signal 6
    Dec 11 22:40:44 kernel: pid 51117 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:40:44 squid[51117]: Write failure – check your disk space and cache.log
    Dec 11 22:40:35 squid[52406]: Squid Parent: child process 51117 started
    Dec 11 22:40:32 kernel: pid 49858 (squid), uid 62: exited on signal 6
    Dec 11 22:40:32 squid[52406]: Squid Parent: child process 49858 exited due to signal 6
    Dec 11 22:40:32 kernel: pid 49858 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:40:32 squid[49858]: Write failure – check your disk space and cache.log
    Dec 11 22:40:23 squid[52406]: Squid Parent: child process 49858 started
    Dec 11 22:40:20 kernel: pid 46366 (squid), uid 62: exited on signal 6
    Dec 11 22:40:20 squid[52406]: Squid Parent: child process 46366 exited due to signal 6
    Dec 11 22:40:20 kernel: pid 46366 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:40:20 squid[46366]: Write failure – check your disk space and cache.log
    Dec 11 22:40:11 squid[52406]: Squid Parent: child process 46366 started
    Dec 11 22:40:08 kernel: pid 42819 (squid), uid 62: exited on signal 6
    Dec 11 22:40:08 squid[52406]: Squid Parent: child process 42819 exited due to signal 6
    Dec 11 22:40:08 squid[42819]: Write failure – check your disk space and cache.log
    Dec 11 22:40:08 kernel: pid 42819 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:58 squid[52406]: Squid Parent: child process 42819 started
    Dec 11 22:39:55 kernel: pid 40304 (squid), uid 62: exited on signal 6
    Dec 11 22:39:55 squid[52406]: Squid Parent: child process 40304 exited due to signal 6
    Dec 11 22:39:55 kernel: pid 40304 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:55 squid[40304]: Write failure – check your disk space and cache.log
    Dec 11 22:39:46 squid[52406]: Squid Parent: child process 40304 started
    Dec 11 22:39:43 kernel: pid 8167 (squid), uid 62: exited on signal 6
    Dec 11 22:39:43 squid[52406]: Squid Parent: child process 8167 exited due to signal 6
    Dec 11 22:39:43 kernel: pid 8167 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:43 squid[8167]: Write failure – check your disk space and cache.log
    Dec 11 22:39:32 squid[52406]: Squid Parent: child process 8167 started
    Dec 11 22:39:29 kernel: pid 1783 (squid), uid 62: exited on signal 6
    Dec 11 22:39:29 squid[52406]: Squid Parent: child process 1783 exited due to signal 6
    Dec 11 22:39:29 kernel: pid 1783 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:29 squid[1783]: Write failure – check your disk space and cache.log
    Dec 11 22:39:28 kernel: pid 2135 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:39:28 squid[52406]: Squid Parent: child process 1783 started
    Dec 11 22:39:25 squid[52406]: Squid Parent: child process 57906 exited due to signal 6
    Dec 11 22:39:25 kernel: pid 57906 (squid), uid 62: exited on signal 6
    Dec 11 22:39:25 kernel: pid 57906 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:25 squid[57906]: Write failure – check your disk space and cache.log
    Dec 11 22:39:24 kernel: pid 57950 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:39:24 squid[52406]: Squid Parent: child process 57906 started
    Dec 11 22:39:21 kernel: pid 56174 (squid), uid 62: exited on signal 6
    Dec 11 22:39:21 squid[52406]: Squid Parent: child process 56174 exited due to signal 6
    Dec 11 22:39:21 kernel: pid 56174 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:21 squid[56174]: Write failure – check your disk space and cache.log
    Dec 11 22:39:20 check_reload_status: Reloading filter
    Dec 11 22:39:20 kernel: pid 56454 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:39:20 squid[52406]: Squid Parent: child process 56174 started
    Dec 11 22:39:19 Squid_Alarm[55463]: Squid has resumed. Reconfiguring filter.
    Dec 11 22:39:19 check_reload_status: Reloading filter
    Dec 11 22:39:18 Squid_Alarm[53450]: Reconfiguring filter…
    Dec 11 22:39:17 kernel: pid 52795 (squid), uid 62: exited on signal 6
    Dec 11 22:39:17 squid[52406]: Squid Parent: child process 52795 exited due to signal 6
    Dec 11 22:39:17 kernel: pid 52795 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:39:17 squid[52795]: Write failure – check your disk space and cache.log
    Dec 11 22:39:16 kernel: pid 53165 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:39:15 squid[52406]: Squid Parent: child process 52795 started
    Dec 11 22:39:15 Squid_Alarm[51055]: Attempting restart…
    Dec 11 22:39:15 Squid_Alarm[51014]: Squid has exited. Reconfiguring filter.
    Dec 11 22:38:45 sshd[43609]: Accepted keyboard-interactive/pam for admin from 172.16.1.2 port 1067 ssh2
    Dec 11 22:38:34 squid[4816]: Exiting due to repeated, frequent failures
    Dec 11 22:38:34 kernel: pid 35048 (squid), uid 62: exited on signal 6
    Dec 11 22:38:34 squid[4816]: Squid Parent: child process 35048 exited due to signal 6
    Dec 11 22:38:34 kernel: pid 35048 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:38:34 squid[35048]: Write failure – check your disk space and cache.log
    Dec 11 22:38:32 squid[4816]: Squid Parent: child process 35048 started
    Dec 11 22:38:29 kernel: pid 18232 (squid), uid 62: exited on signal 6
    Dec 11 22:38:29 squid[4816]: Squid Parent: child process 18232 exited due to signal 6
    Dec 11 22:38:29 kernel: pid 18232 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:38:29 squid[18232]: Write failure – check your disk space and cache.log
    Dec 11 22:38:28 kernel: pid 18470 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:38:28 squid[4816]: Squid Parent: child process 18232 started
    Dec 11 22:38:25 squid[4816]: Squid Parent: child process 11148 exited due to signal 6
    Dec 11 22:38:25 kernel: pid 11148 (squid), uid 62: exited on signal 6
    Dec 11 22:38:25 kernel: pid 11148 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:38:25 squid[11148]: Write failure – check your disk space and cache.log
    Dec 11 22:38:24 kernel: pid 11666 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:38:24 squid[4816]: Squid Parent: child process 11148 started
    Dec 11 22:38:21 kernel: pid 9075 (squid), uid 62: exited on signal 6
    Dec 11 22:38:21 squid[4816]: Squid Parent: child process 9075 exited due to signal 6
    Dec 11 22:38:21 kernel: pid 9075 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:38:21 squid[9075]: Write failure – check your disk space and cache.log
    Dec 11 22:38:20 check_reload_status: Reloading filter
    Dec 11 22:38:20 kernel: pid 9634 (squidGuard), uid 62 inumber 4640771 on /: filesystem full
    Dec 11 22:38:19 squid[4816]: Squid Parent: child process 9075 started
    Dec 11 22:38:19 Squid_Alarm[7958]: Squid has resumed. Reconfiguring filter.
    Dec 11 22:38:19 check_reload_status: Reloading filter
    Dec 11 22:38:18 Squid_Alarm[6122]: Reconfiguring filter…
    Dec 11 22:38:16 kernel: pid 5009 (squid), uid 62: exited on signal 6

    and in Status: System logs: Portal Auth:

    Dec 11 22:40:58 squid[52406]: Squid Parent: child process 7948 started
    Dec 11 22:40:55 squid[52406]: Squid Parent: child process 6612 exited due to signal 6
    Dec 11 22:40:55 squid[6612]: Write failure – check your disk space and cache.log
    Dec 11 22:40:47 squid[52406]: Squid Parent: child process 6612 started
    Dec 11 22:40:44 squid[52406]: Squid Parent: child process 51117 exited due to signal 6
    Dec 11 22:40:44 squid[51117]: Write failure – check your disk space and cache.log
    Dec 11 22:40:35 squid[52406]: Squid Parent: child process 51117 started
    Dec 11 22:40:32 squid[52406]: Squid Parent: child process 49858 exited due to signal 6
    Dec 11 22:40:32 squid[49858]: Write failure – check your disk space and cache.log
    Dec 11 22:40:23 squid[52406]: Squid Parent: child process 49858 started
    Dec 11 22:40:20 squid[52406]: Squid Parent: child process 46366 exited due to signal 6
    Dec 11 22:40:20 squid[46366]: Write failure – check your disk space and cache.log
    Dec 11 22:40:11 squid[52406]: Squid Parent: child process 46366 started
    Dec 11 22:40:08 squid[52406]: Squid Parent: child process 42819 exited due to signal 6
    Dec 11 22:40:08 squid[42819]: Write failure – check your disk space and cache.log
    Dec 11 22:39:58 squid[52406]: Squid Parent: child process 42819 started
    Dec 11 22:39:55 squid[52406]: Squid Parent: child process 40304 exited due to signal 6
    Dec 11 22:39:55 squid[40304]: Write failure – check your disk space and cache.log
    Dec 11 22:39:46 squid[52406]: Squid Parent: child process 40304 started
    Dec 11 22:39:43 squid[52406]: Squid Parent: child process 8167 exited due to signal 6
    Dec 11 22:39:43 squid[8167]: Write failure – check your disk space and cache.log
    Dec 11 22:39:32 squid[52406]: Squid Parent: child process 8167 started
    Dec 11 22:39:29 squid[52406]: Squid Parent: child process 1783 exited due to signal 6
    Dec 11 22:39:29 squid[1783]: Write failure – check your disk space and cache.log
    Dec 11 22:39:28 squid[52406]: Squid Parent: child process 1783 started
    Dec 11 22:39:25 squid[52406]: Squid Parent: child process 57906 exited due to signal 6
    Dec 11 22:39:25 squid[57906]: Write failure – check your disk space and cache.log
    Dec 11 22:39:24 squid[52406]: Squid Parent: child process 57906 started
    Dec 11 22:39:21 squid[52406]: Squid Parent: child process 56174 exited due to signal 6
    Dec 11 22:39:21 squid[56174]: Write failure – check your disk space and cache.log
    Dec 11 22:39:20 squid[52406]: Squid Parent: child process 56174 started
    Dec 11 22:39:17 squid[52406]: Squid Parent: child process 52795 exited due to signal 6
    Dec 11 22:39:17 squid[52795]: Write failure – check your disk space and cache.log
    Dec 11 22:39:15 squid[52406]: Squid Parent: child process 52795 started
    Dec 11 22:38:34 squid[4816]: Exiting due to repeated, frequent failures
    Dec 11 22:38:34 squid[4816]: Squid Parent: child process 35048 exited due to signal 6
    Dec 11 22:38:34 squid[35048]: Write failure – check your disk space and cache.log
    Dec 11 22:38:32 squid[4816]: Squid Parent: child process 35048 started
    Dec 11 22:38:29 squid[4816]: Squid Parent: child process 18232 exited due to signal 6
    Dec 11 22:38:29 squid[18232]: Write failure – check your disk space and cache.log
    Dec 11 22:38:28 squid[4816]: Squid Parent: child process 18232 started
    Dec 11 22:38:25 squid[4816]: Squid Parent: child process 11148 exited due to signal 6
    Dec 11 22:38:25 squid[11148]: Write failure – check your disk space and cache.log
    Dec 11 22:38:24 squid[4816]: Squid Parent: child process 11148 started
    Dec 11 22:38:21 squid[4816]: Squid Parent: child process 9075 exited due to signal 6
    Dec 11 22:38:21 squid[9075]: Write failure – check your disk space and cache.log
    Dec 11 22:38:19 squid[4816]: Squid Parent: child process 9075 started
    Dec 11 22:38:16 squid[4816]: Squid Parent: child process 5009 exited due to signal 6
    Dec 11 22:38:16 squid[5009]: Write failure – check your disk space and cache.log
    Dec 11 22:38:15 squid[4816]: Squid Parent: child process 5009 started
    Dec 11 22:37:34 squid[41568]: Exiting due to repeated, frequent failures
    Dec 11 22:37:34 squid[41568]: Squid Parent: child process 52018 exited due to signal 6
    Dec 11 22:37:34 squid[52018]: Write failure – check your disk space and cache.log
    Dec 11 22:37:32 squid[41568]: Squid Parent: child process 52018 started
    Dec 11 22:37:29 squid[41568]: Squid Parent: child process 19199 exited due to signal 6
    Dec 11 22:37:29 squid[19199]: Write failure – check your disk space and cache.log
    Dec 11 22:37:28 squid[41568]: Squid Parent: child process 19199 started
    Dec 11 22:37:25 squid[41568]: Squid Parent: child process 6606 exited due to signal 6
    Dec 11 22:37:25 squid[6606]: Write failure – check your disk space and cache.log
    Dec 11 22:37:23 squid[41568]: Squid Parent: child process 6606 started
    Dec 11 22:37:20 squid[41568]: Squid Parent: child process 53697 exited due to signal 6
    Dec 11 22:37:20 squid[53697]: Write failure – check your disk space and cache.log
    Dec 11 22:37:18 squid[41568]: Squid Parent: child process 53697 started
    Dec 11 22:37:14 squid[41568]: Squid Parent: child process 41844 exited due to signal 6
    Dec 11 22:37:14 squid[41844]: Write failure – check your disk space and cache.log
    Dec 11 22:37:12 squid[41568]: Squid Parent: child process 41844 started
    Dec 11 22:36:29 squid[45424]: Exiting due to repeated, frequent failures
    Dec 11 22:36:29 squid[45424]: Squid Parent: child process 60343 exited due to signal 6
    Dec 11 22:36:29 squid[60343]: Write failure – check your disk space and cache.log
    Dec 11 22:36:28 squid[45424]: Squid Parent: child process 60343 started
    Dec 11 22:36:25 squid[45424]: Squid Parent: child process 23364 exited due to signal 6
    Dec 11 22:36:25 squid[23364]: Write failure – check your disk space and cache.log
    Dec 11 22:36:24 squid[45424]: Squid Parent: child process 23364 started
    Dec 11 22:36:21 squid[45424]: Squid Parent: child process 5600 exited due to signal 6
    Dec 11 22:36:21 squid[5600]: Write failure – check your disk space and cache.log
    Dec 11 22:36:20 squid[45424]: Squid Parent: child process 5600 started
    Dec 11 22:36:17 squid[45424]: Squid Parent: child process 641 exited due to signal 6
    Dec 11 22:36:17 squid[641]: Write failure – check your disk space and cache.log
    Dec 11 22:36:15 squid[45424]: Squid Parent: child process 641 started
    Dec 11 22:36:12 squid[45424]: Squid Parent: child process 46060 exited due to signal 6
    Dec 11 22:36:12 squid[46060]: Write failure – check your disk space and cache.log
    Dec 11 22:36:11 squid[45424]: Squid Parent: child process 46060 started
    Dec 11 22:35:28 squid[26009]: Exiting due to repeated, frequent failures
    Dec 11 22:35:28 squid[26009]: Squid Parent: child process 48718 exited due to signal 6
    Dec 11 22:35:28 squid[48718]: Write failure – check your disk space and cache.log
    Dec 11 22:35:26 squid[26009]: Squid Parent: child process 48718 started
    Dec 11 22:35:23 squid[26009]: Squid Parent: child process 40930 exited due to signal 6
    Dec 11 22:35:23 squid[40930]: Write failure – check your disk space and cache.log
    Dec 11 22:35:22 squid[26009]: Squid Parent: child process 40930 started
    Dec 11 22:35:19 squid[26009]: Squid Parent: child process 32560 exited due to signal 6
    Dec 11 22:35:19 squid[32560]: Write failure – check your disk space and cache.log
    Dec 11 22:35:18 squid[26009]: Squid Parent: child process 32560 started
    Dec 11 22:35:15 squid[26009]: Squid Parent: child process 30374 exited due to signal 6
    Dec 11 22:35:15 squid[30374]: Write failure – check your disk space and cache.log
    Dec 11 22:35:14 squid[26009]: Squid Parent: child process 30374 started
    Dec 11 22:35:11 squid[26009]: Squid Parent: child process 26593 exited due to signal 6
    Dec 11 22:35:11 squid[26593]: Write failure – check your disk space and cache.log
    Dec 11 22:35:10 squid[26009]: Squid Parent: child process 26593 started
    Dec 11 22:34:27 squid[44274]: Exiting due to repeated, frequent failures
    Dec 11 22:34:27 squid[44274]: Squid Parent: child process 62972 exited due to signal 6

    please help me
    thanks



  • Hi
    You log write to you what need do.

    Dec 11 22:40:55  kernel: pid 6612 (squid), uid 62 inumber 4639905 on /: filesystem full
    Dec 11 22:40:55  squid[6612]: Write failure – check your disk space and cache.log

    Need clear squid logs/cache and use a larger capacity disk.



  • thanks, i did it yesterday, and clear squid logs/cache.
    but what about change Custom Options in squid from
    redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf;redirector_bypass on;redirect_children 3
    to :
    redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf;redirector_bypass off;url_written_children 5;

    when i reboot pfsense or make any change on squidGuard, and appear this error
    Dec 11 22:40:58  squid[52406]: Squid Parent: child process 7948 started
    Dec 11 22:40:55  kernel: pid 6612 (squid), uid 62: exited on signal 6
    Dec 11 22:40:55  squid[52406]: Squid Parent: child process 6612 exited due to signal 6

    i must change Custom Options in squid to
    redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf;redirector_bypass on;redirect_children 3
    to solve this problem
    please help
    thanks



  • Look problem at squidGuard logs.



  • how to solve it??



  • @nassman:

    how to solve it??

    Read this:
    http://www.squid-cache.org/Doc/config/redirector_bypass/
    squid will crash if all redirectors are busy but does not allow anyone to bypass squid if it is set ton "on".
    if it is set to "off" then the users will bypass the squid proxy but it will not crash.

    Increase the redirect_children to a larger number - lets say 25 or 50.
    You can do this permanent in squidguard_configurator.inc file.

    Before this check the "cache.log" file of squid. The will be probably something called "all redirectors are busy" or something about the queue length.

    CVhecvk this, too:
    http://www.squid-cache.org/Doc/config/url_rewrite_children/


Locked