Tuesday, March 2, 2010

Problem with Squid - signal 6

Squid-cache on a linux machine, was crashing repeatedly with the error:
$ exited due to signal 6

After lots of logs reading and net hunting i found out that this error was corrected on a newer version of squid.

The error was on the following version:
Squid Cache: Version 2.5.STABLE6

I upgraded to:
Squid Cache: Version 2.5.STABLE11
So i upgraded and .... no more crashes.

Some tips and commands that helped on troubleshooting:
Read squid logs:
 - /var/log/squid
     - cache.log


Verify squid cache directory:
- /var/spool/squid

Verify message logging:
 - /var/log/messages

Commands:
to rebuild cache:  squid -z

to start with debug: squid -d 3 -F -N -X
-d 3  --- more debug level
-F     --- don't service any request until cache is rebuild
-N    --- no daemon level
-X     --- force full debug 





No comments: