Koozali.org: home of the SME Server

Squid keeps dying

Offline p-jones

  • *
  • 594
  • +0/-0
Squid keeps dying
« on: May 31, 2005, 07:34:58 AM »
I have lost all www internet access and an error in the message log saying a Squid Child process has been terminated by a signal 25.

Have reset the swap file and all else look Ok. I am out of ideas an getting desperate.

Anyone PLEASE ??
...

Offline smeghead

  • *
  • 563
  • +0/-0
Squid keeps dying
« Reply #1 on: May 31, 2005, 03:47:52 PM »
.. looks like your log files may be to big.

Try documenting the ownership & perms of the current log files (cache.log, store.log, access.log) & then deleting & recreating them, for example from /var/log/squid:

[root@kryten squid]# ls -la *.log
-rw-r--r--    1 squid    squid     2569753 May 31 21:41 access.log
-rw-r--r--    1 squid    squid        1473 May 29 04:09 cache.log
-rw-r--r--    1 squid    squid     3410485 May 31 21:41 store.log

rm -f *.log

touch access.log
touch cache.log
touch store.log

chown squid:squid *.log

chmod 644 *.log

service squid start


If this works then it looks like the squid log file grow too fast for the logrotate cycle.

This logrotate issue has been answered before on the forums so just search a bit.

HTH
..................

cc_skavenger

Squid keeps dying
« Reply #2 on: May 31, 2005, 04:32:12 PM »
or you have run out of file descriptors or squid is having trouble resolving...  How many users do you have behind this machine?  Could you post some of the /var/log/squid/cache.log file where squid died.

Offline p-jones

  • *
  • 594
  • +0/-0
Squid keeps dying
« Reply #3 on: June 01, 2005, 04:07:05 PM »
No log files available anymore. Have 7 (hard) users behind it.

I decided to "bite the bullet" and rebuild it. It needed it and I wasnt winning with the problem. With a few minutes of thought and planning, it wasnt that hard - only took about 1 hour.
...