Squid stops working..-->clear rebuild cache
Hi
Ive installed squid on a debian system using webmin to administrate it...It serves 30 computers and it has been doing fine for the first 5 days ..on the sixth day it stopped working and any request on port 80 would only result in the typical IE page.."The page you requested...404"...NOT the squid error page...so I cleared and rebuilt the cache and everything worked allright..what must I do to prevent this from happening again . P.S.. the syslogs did not reveal anything about the issue |
could it be that you had accidentally deleted the cache?? granted, i'm not sure if that would actually produce those kinda effects (IE's error page instead of Squid's), but maybe you can try and see if it does...
also, did you try doing other things before you rebuilt the cache?? maybe a reboot, restarting squid, or something like that?? i'm just wondering whether restarting squid (without rebuilding the cache) would have brought it back online... |
AFAIK, if squid doesnot finds the cache directory it will complain and fail to start. you have to create the dir manually and see to it that squid has proper permission to write to it.
|
Quote:
|
I surely did not erase the cache..because the problem happened out of a sudden without me touching the whole system for a couple of days..and I tried the usual stuff reboot squid..etc..and even a system reboot "The result of a power outage :D --Typical in Lebanon--
|
Quote:
|
you should check if the cache dir exists and has proper permissions.
|
Quote:
Quote:
|
actually, i take that back... i just tried it and it seems "squid -z" will create the cache dir (with proper permissions) if it doesn't exist... yet, it will (of course) terminate if the cache dir doesn't have the right permissions... examples:
Code:
bash-3.00# whoami Code:
bash-3.00# whoami Code:
chmod 770 /var/lib/squid/cache |
All times are GMT -5. The time now is 02:55 PM. |