Quantcast

Squid shutting down

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Squid shutting down

Sean O'Reilly-2
Will squid shut itself down if it does not receive any requests?

I have installed squid and a couple of minutes after running 'service
squid start' it shuts itself down.

If i run 'service squid status' i get the following error:

Squid dead but subsys locked
squid: ERROR: no running copy


Sean O'Reilly

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Henrik Nordström
tis 2007-05-15 klockan 11:07 +0100 skrev Sean O'Reilly:
> Will squid shut itself down if it does not receive any requests?
>
> I have installed squid and a couple of minutes after running 'service
> squid start' it shuts itself down.

Anything in cache.log?

Regards
Henrik

signature.asc (316 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Sean O'Reilly-2
Cache.log below


2007/05/14 10:36:24| Starting Squid Cache version 2.6.STABLE12 for
i686-redhat-linux-gnu...
2007/05/14 10:36:24| Process ID 16166
2007/05/14 10:36:24| With 1024 file descriptors available
2007/05/14 10:36:24| Using epoll for the IO loop
2007/05/14 10:36:24| DNS Socket created at 0.0.0.0, port 21922, FD 5
2007/05/14 10:36:24| Adding domain ******* from /etc/resolv.conf
2007/05/14 10:36:24| Adding nameserver ****** from /etc/resolv.conf
2007/05/14 10:36:24| Adding nameserver ****** from /etc/resolv.conf
2007/05/14 10:36:24| Adding nameserver ****** from /etc/resolv.conf
2007/05/14 10:36:24| User-Agent logging is disabled.
2007/05/14 10:36:24| Referer logging is disabled.
2007/05/14 10:36:24| Unlinkd pipe opened on FD 10
2007/05/14 10:36:24| Swap maxSize 44032000 KB, estimated 3387076 objects
2007/05/14 10:36:24| Target number of buckets: 169353
2007/05/14 10:36:24| Using 262144 Store buckets
2007/05/14 10:36:24| Max Mem  size: 131072 KB
2007/05/14 10:36:24| Max Swap size: 44032000 KB
2007/05/14 10:36:24| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2007/05/14 10:36:24| Store logging disabled
2007/05/14 10:36:24| Rebuilding storage in /cache (CLEAN)
2007/05/14 10:36:24| Using Least Load store dir selection
2007/05/14 10:36:24| Current Directory is /
2007/05/14 10:36:24| Loaded Icons.
2007/05/14 10:36:24| Accepting proxy HTTP connections at 0.0.0.0, port
3128, FD 11.
2007/05/14 10:36:24| Accepting proxy HTTP connections at 0.0.0.0, port
3129, FD 12.
2007/05/14 10:36:24| Accepting ICP messages at 0.0.0.0, port 3130, FD
13.
2007/05/14 10:36:24| Accepting SNMP messages on port 3401, FD 14.
2007/05/14 10:36:24| WCCP Disabled.
2007/05/14 10:36:24| Configuring Parent localhost/81/0
2007/05/14 10:36:24| Configuring Parent localhost2/82/0
2007/05/14 10:36:24| Ready to serve requests.
2007/05/14 10:36:24| Done reading /cache swaplog (0 entries)
2007/05/14 10:36:24| Finished rebuilding storage from disk.
2007/05/14 10:36:24|         0 Entries scanned
2007/05/14 10:36:24|         0 Invalid entries.
2007/05/14 10:36:24|         0 With invalid flags.
2007/05/14 10:36:24|         0 Objects loaded.
2007/05/14 10:36:24|         0 Objects expired.
2007/05/14 10:36:24|         0 Objects cancelled.
2007/05/14 10:36:24|         0 Duplicate URLs purged.
2007/05/14 10:36:24|         0 Swapfile clashes avoided.
2007/05/14 10:36:24|   Took 0.3 seconds (   0.0 objects/sec).
2007/05/14 10:36:24| Beginning Validation Procedure
2007/05/14 10:36:24|   Completed Validation Procedure
2007/05/14 10:36:24|   Validated 0 Entries
2007/05/14 10:36:24|   store_swap_size = 0k
2007/05/14 10:36:25| storeLateRelease: released 0 objects
2007/05/14 10:38:01| Preparing for shutdown after 0 requests
2007/05/14 10:38:01| Waiting 30 seconds for active connections to finish
2007/05/14 10:38:01| FD 11 Closing HTTP connection
2007/05/14 10:38:01| FD 12 Closing HTTP connection
2007/05/14 10:38:01| Shutting down...
2007/05/14 10:38:01| FD 13 Closing ICP connection
2007/05/14 10:38:01| FD 14 Closing SNMP socket
2007/05/14 10:38:01| Closing unlinkd pipe on FD 10
2007/05/14 10:38:01| storeDirWriteCleanLogs: Starting...
2007/05/14 10:38:01|   Finished.  Wrote 0 entries.
2007/05/14 10:38:01|   Took 0.0 seconds (   0.0 entries/sec).
CPU Usage: 0.072 seconds = 0.053 user + 0.019 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena:    2524 KB
        Ordinary blocks:         2414 KB      4 blks
        Small blocks:               0 KB      5 blks
        Holding blocks:          1272 KB      2 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     109 KB
        Total in use:            3686 KB 97%
        Total free:               109 KB 3%
2007/05/14 10:38:01| Squid Cache (Version 2.6.STABLE12): Exiting
normally.

Could it have anything to do with the fact that i have not yet placed
the server on the network so it cannot contact DNS servers ???


Sean




On Tue, 2007-05-15 at 12:52 +0200, Henrik Nordstrom wrote:

> tis 2007-05-15 klockan 11:07 +0100 skrev Sean O'Reilly:
> > Will squid shut itself down if it does not receive any requests?
> >
> > I have installed squid and a couple of minutes after running 'service
> > squid start' it shuts itself down.
>
> Anything in cache.log?
>
> Regards
> Henrik

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Henrik Nordström
tis 2007-05-15 klockan 12:09 +0100 skrev Sean O'Reilly:

> 2007/05/14 10:36:25| storeLateRelease: released 0 objects
> 2007/05/14 10:38:01| Preparing for shutdown after 0 requests

This happens if Squid receives a SIGINT or SIGTERM signal.

> 2007/05/14 10:38:01| Waiting 30 seconds for active connections to finish

And this indicates it was in fact a SIGTERM. (SIGINT makes the above 0
seconds..)

Squid only sends these signals to itself if you use "squid -k
shutdown" (SIGTERM) or "squid -k interrupt" (SIGINT).

Regards
Henrik

signature.asc (316 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Sean O'Reilly-2
Yes, but i haven't done anything other than watch the cache.log ?!?

Sean


On Tue, 2007-05-15 at 14:43 +0200, Henrik Nordstrom wrote:

> tis 2007-05-15 klockan 12:09 +0100 skrev Sean O'Reilly:
>
> > 2007/05/14 10:36:25| storeLateRelease: released 0 objects
> > 2007/05/14 10:38:01| Preparing for shutdown after 0 requests
>
> This happens if Squid receives a SIGINT or SIGTERM signal.
>
> > 2007/05/14 10:38:01| Waiting 30 seconds for active connections to finish
>
> And this indicates it was in fact a SIGTERM. (SIGINT makes the above 0
> seconds..)
>
> Squid only sends these signals to itself if you use "squid -k
> shutdown" (SIGTERM) or "squid -k interrupt" (SIGINT).
>
> Regards
> Henrik

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Henrik Nordström
tis 2007-05-15 klockan 14:49 +0100 skrev Sean O'Reilly:
> Yes, but i haven't done anything other than watch the cache.log ?!?

Not you, but perhaps something else..  Any system monitor running on
your server killing unrecognized left-over processes?

Regards
Henrik

signature.asc (316 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Sean O'Reilly-2
Hadn't thought of that, don't think so but will investigate. Thanks

Sean


On Tue, 2007-05-15 at 16:24 +0200, Henrik Nordstrom wrote:
> tis 2007-05-15 klockan 14:49 +0100 skrev Sean O'Reilly:
> > Yes, but i haven't done anything other than watch the cache.log ?!?
>
> Not you, but perhaps something else..  Any system monitor running on
> your server killing unrecognized left-over processes?
>
> Regards
> Henrik

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Sean O'Reilly-2
Hi, i can't see anything that could be sending the signal to squid to
shutdown.

These are the only processes running at the moment

anacron         0:off 1:off 2:on 3:on 4:on 5:on 6:off
atd             0:off 1:off 2:off 3:on 4:on 5:on 6:off
autofs         0:off 1:off 2:off 3:on 4:on 5:on 6:off
crond           0:off 1:off 2:on 3:on 4:on 5:on 6:off
cups           0:off 1:off 2:on 3:on 4:on 5:on 6:off
gpm             0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu           0:off 1:off 2:off 3:on 4:on 5:on 6:off
messagebus     0:off 1:off 2:off 3:on 4:on 5:on 6:off
named           0:off 1:off 2:on 3:on 4:on 5:on 6:off
netfs           0:off 1:off 2:off 3:on 4:on 5:on 6:off
network         0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfslock         0:off 1:off 2:off 3:on 4:on 5:on 6:off
pcscd           0:off 1:off 2:on 3:on 4:on 5:on 6:off
portmap         0:off 1:off 2:off 3:on 4:on 5:on 6:off
readahead_early 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sendmail       0:off 1:off 2:on 3:on 4:on 5:on 6:off
squid           0:off 1:off 2:on 3:on 4:on 5:on 6:off
squid-out       0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd           0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog         0:off 1:off 2:on 3:on 4:on 5:on 6:off
xfs             0:off 1:off 2:on 3:on 4:on 5:on 6:off
yum-updatesd   0:off 1:off 2:off 3:on 4:on 5:on 6:off

any other information i could provide that might help ?

Sean



On Wed, 2007-05-16 at 08:36 +0100, Sean O'Reilly wrote:

> Hadn't thought of that, don't think so but will investigate. Thanks
>
> Sean
>
>
> On Tue, 2007-05-15 at 16:24 +0200, Henrik Nordstrom wrote:
> > tis 2007-05-15 klockan 14:49 +0100 skrev Sean O'Reilly:
> > > Yes, but i haven't done anything other than watch the cache.log ?!?
> >
> > Not you, but perhaps something else..  Any system monitor running on
> > your server killing unrecognized left-over processes?
> >
> > Regards
> > Henrik
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squid shutting down

Henrik Nordström
ons 2007-05-16 klockan 13:52 +0100 skrev Sean O'Reilly:
> Hi, i can't see anything that could be sending the signal to squid to
> shutdown.

> squid           0:off 1:off 2:on 3:on 4:on 5:on 6:off
> squid-out       0:off 1:off 2:on 3:on 4:on 5:on 6:off

You have two Squid init scripts. Could it be that the second one shuts
down the first when started?

Regards
Henrik

signature.asc (316 bytes) Download Attachment
Loading...