Koozali.org: home of the SME Server

Squid problems, HELP

Rick Coates

Squid problems, HELP
« on: October 17, 2003, 05:23:34 PM »
I have been plagued with a nagging problem that just got worse. Lately when I reboot the server after it has been up and running for a while it will not load all the way until I login and do a fsck / and answer yes to all prompts to repair problems on the disk. A couple of days ago we had a power outage and when power got restored and I fired up the server the same thing had to be done to get the server up and running. The problem is that I think something has gone wrong with Squid because I can not get to any web sites in the outside world via the server. I can type in the domain running on the server and get to it but nothing else. I have gone through and checked the settings and even changed them and rebooted and then changed them back to the correct ones to see if that would work. But no luck, also every time when I reboot it fails to stop Squid but shutdowns like it should. When I start it back up it shows the boot code as it should and also shows all services started as it should including Squid. I have given up do to a lack of Ideas to correct the problem and have since set my network up to access the web via a old Netgear Broadband router I had laying around. Even got it configured so that I could plug the server into my master switch and it is sitting there serving up the domain web page and popping email as it should. All other add-ons seem to be working as they should so I hate to reload and have to start from scratch. Also when you go into the control panel and do the internet  connection test it also comes back successful. Any ideas or is it possible to reinstall just Squid or upgrade it to a newer version to get it going again ? Thanks for any help anyone can give me, Rick

dave

Re: Squid problems, HELP
« Reply #1 on: October 17, 2003, 10:21:42 PM »
I have had problems before with Squid.  Whatever site I try to go to on the internet returns the unavailable screen that's generated by Squid.  I found that flushing (deleting) the squid cache files resolves it.  

If this isn't the problem, checking the system logs may reveal a different problem.  What appears on screen will be logged but there is usually LOTS more informaiton in the log files than what shows up on screen.  

Hope this helps...

Dave

Klaus Eckert

Re: Squid problems, HELP
« Reply #2 on: October 18, 2003, 05:09:49 AM »
what file system do you have? ext2 or ext3?
on ext2 you have to do a "file-system-check" with some options, see the manpage for help.
if it is ext3 your problem may be that the journal-file is damaged after the power-fail. there are some options to fix that problem. try a search in this forum for ext3.

cheers klaus

Rick

Re: Squid problems, HELP
« Reply #3 on: October 20, 2003, 07:24:06 AM »
Dave-
Thanks, that was the problem, I logged in as root, ran MC and went to var/spool/Squid/ and deleated everything under it. The rebooted which showed Squid shutting down as it should and when the server came back up it worked like a charm. I can't thank you enough for this tip. Rick