Koozali.org: home of the SME Server

Squid not stopping

martinhick

Squid not stopping
« on: September 26, 2004, 08:46:20 AM »
Hi,

I have a weird problem.

First a little background.- I built my first SME Server for home about 3 months ago and it has performed flawlessly.

I wsa so impressed that I built a second on for my brother and set it up at my house using my broardband. It seemed to work OK.

I moved it to my brothers office where he is using Tiscali as his broardband provider. I cannot get a response from Squid no matter what I try.

I am getting  no DNS response whrn I try to connect.

When I issue the command:-

service squid restart

I get back Stopping - Failed
           Restarting - OK.

If I reboot the machine squid fails to stop in three places in the shut down scripts but then starts OK on the startup.

If I try something like dig www.google.co.uk from the command line I more often that not get a response back. Sometimes I get server cannot be contacted. (I have noticed that SME is alwasy slow to respond to the first call to the net after a period of inactivity)

If I use my laptop to connect directly to the router I can get straight on onto the net.

Have I managed to damage the squid installation or do I have a problem with the service provider. Why does squid not stop with out failing.

Martin

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Squid not stopping
« Reply #1 on: September 28, 2004, 09:00:28 PM »
Quote from: "martinhick"
Hi,

service squid restart

I get back Stopping - Failed
           Restarting - OK.
If I reboot the machine squid fails to stop in three places in the shut down scripts but then starts OK on the startup.
Martin


In my experience, this is generally an indication that Squid either died on its own or never did start in the first place.

Do a reboot, then run ps -A | grep squid.  If this returns no running processes then squid never did start.  Have you recently installed any contribs to your sme install or performed any other custom config?

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

martinhick

Squid not stopping
« Reply #2 on: September 28, 2004, 10:52:37 PM »
I think I just installed Squidguard. I tried it first on my own SME serever and i installed ok.

Can I uninstall it the problem server and if so what is the rpm command. I have never had to uninstall before.

Martin

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Squid not stopping
« Reply #3 on: September 28, 2004, 11:27:22 PM »
Quote from: "martinhick"
I think I just installed Squidguard. I tried it first on my own SME serever and i installed ok.


What do you mean "you think??"  Did you install a squidguard rpm?  If so, then this is almost certainly your problem.  If you install squidguard and it isn't setup correctly, then squid won't work right.

Quote from: "martinhick"

Can I uninstall it the problem server and if so what is the rpm command. I have never had to uninstall before.
Martin


rpm -e packagename

You seem like you are new to SME and *nix in general.  That's great.. You are in for alot of fun leaning.  Here's a piece of advice that you should follow to the letter:

When you are learning; never, I mean never, try something new on production server.  The reason:  You are GOING to make a mistake.  It's only a matter of time. This isn't a bad thing, as long as you convince yourself that it's bound to happen.  I can honestly say that I've done the lion's share of my learning by screwing up a machine, then trying to fix it. ;)

Good luck to you.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.