[squid-users] SquidNT Service fails to stop after error

From: Gary Price \(ICT\) <gprice@dont-contact.us>
Date: Thu, 27 Mar 2003 10:22:32 +1000

Hi
I am using squidNT.2.5STABLE1, built from source using Visual Studio. It appears that sometimes the service does not start and stop
cleanly, and I was wondering if this was a known issue. This has happened several times in our installation. I can reproduce it by
including a bad DNS name in dns_testnames, then starting the service manually from the SCM or the command line. Squid.exe shows up
in the process list in Task Manager but the start operation does not finish successfully.

With a single DNS test name "nosuchdnsname.com.xx" I started the service from the command line, and this is what I got:

[start command line]
C:\squid\sbin>net start squidnt
The SquidNT service is starting..............
The SquidNT service could not be started.

More help is available by typing NET HELPMSG 3523.

C:\squid\sbin>net helpmsg 3523

The *** service could not be started.
[end command line]

I got the following in cache.log (ALL,9):

[start log]
2003/03/27 10:00:22| Starting Squid Cache version 2.5.STABLE1.NT-CVS for i686-pc-winnt...
2003/03/27 10:00:22| Running as SquidNT Windows System Service on Windows 2000
2003/03/27 10:00:22| Service command line is:
2003/03/27 10:00:22| Process ID 2848
2003/03/27 10:00:22| With 8192 file descriptors available
2003/03/27 10:00:22| With 512 CRT stdio descriptors available
2003/03/27 10:00:22| Windows sockets initialized
2003/03/27 10:00:22| Initializing IP Cache...
2003/03/27 10:00:22| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 2.5.STABLE1.NT-CVS): Terminated abnormally.
CPU Usage: 0.070 seconds = 0.030 user + 0.040 sys
Maximum Resident Size: 4708 KB
Page faults with physical i/o: 1216
2003/03/27 10:00:22| Leaving Squid service
[end log]

The squid.exe process seems to stay in the task manager indefinitely after this. It has the process ID 2848. Perhaps it is stuck in
a system mutex somewhere.

It seems to me that any abnormal termination may lead to this behaviour, and so the ability to restart squid automatically after an
exit would be compromised.
Any help you can provide would be much appreciated.

Thanks
Gary Price
ICT
Received on Wed Mar 26 2003 - 17:21:55 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:21 MST