Squid restarting several times after rotating logs

From: Raymond Brighenti <bargi@dont-contact.us>
Date: Thu, 07 Oct 1999 13:58:47 -0700

Hi All,

Sorry for the large email but I though including the log file might give
people a better view of what's happening.

Basically each day at midnight I have a cron job run
(/usr/local/squid/bin/squid -k rotate) to rotate the Squid log files, the
problem is that each time it does Squid restarts every 10 seconds or so 4
or 5 times, it does this every day(night :).

Is this because of the way I rotate the files?
If so is there a better way to rotate the files?

I see there is the following message
1999/10/06 02:00:01| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port

I think I read somewhere you will get this message if you have the Outgoing
TCP address different to the one the machine is assigned (which we do), but
is this correct?

Thanks in advance

Ray

Just in case it helps the machine is a PII 450 with 256Mb ram 1x4Gb IDE for
OS(FreeBSD 3.1) and Squid/logs with 4x4Gb SCSI HDDs with 2 on the SCSI
adaptor built into the motherboard and 2 on a PCI adaptor (both Adaptec)
for Cache.

1999/10/06 00:00:00| storeDirWriteCleanLogs: Starting...
1999/10/06 00:00:01| 65536 entries written so far.
1999/10/06 00:00:01| 131072 entries written so far.
1999/10/06 00:00:01| 196608 entries written so far.
1999/10/06 00:00:01| 262144 entries written so far.
1999/10/06 00:00:01| 327680 entries written so far.
1999/10/06 00:00:02| 393216 entries written so far.
1999/10/06 00:00:02| 458752 entries written so far.
1999/10/06 00:00:02| 524288 entries written so far.
1999/10/06 00:00:02| 589824 entries written so far.
1999/10/06 00:00:02| 655360 entries written so far.
1999/10/06 00:00:02| 720896 entries written so far.
1999/10/06 00:00:03| 786432 entries written so far.
1999/10/06 00:00:03| 851968 entries written so far.
1999/10/06 00:00:03| 917504 entries written so far.
1999/10/06 00:00:03| 983040 entries written so far.
1999/10/06 00:00:03| 1048576 entries written so far.
1999/10/06 00:00:03| 1114112 entries written so far.
1999/10/06 00:00:04| 1179648 entries written so far.
1999/10/06 00:00:04| 1245184 entries written so far.
1999/10/06 00:00:04| Finished. Wrote 1305073 entries.
1999/10/06 00:00:04| Took 4 seconds (326268.2 entries/sec).
1999/10/06 00:00:04| storeLogRotate: Rotating.
1999/10/06 00:00:04| accessLogRotate: Rotating
1999/10/06 01:46:06| sslReadClient: FD 41: read failure: (54) Connection
reset by peer
1999/10/06 01:46:06| sslReadClient: FD 43: read failure: (54) Connection
reset by peer
1999/10/06 01:46:06| sslReadClient: FD 45: read failure: (54) Connection
reset by peer
1999/10/06 01:46:06| sslReadClient: FD 47: read failure: (54) Connection
reset by peer
1999/10/06 01:46:09| sslReadClient: FD 41: read failure: (54) Connection
reset by peer
1999/10/06 02:00:00| Starting Squid Cache version 2.2.STABLE4 for
i386-unknown-freebsd3.1...
1999/10/06 02:00:00| Process ID 8469
1999/10/06 02:00:00| With 1064 file descriptors available
1999/10/06 02:00:00| Performing DNS Tests...
1999/10/06 02:00:00| Successful DNS name lookup tests...
1999/10/06 02:00:00| helperOpenServers: Starting 20 'dnsserver' processes
1999/10/06 02:00:01| Unlinkd pipe opened on FD 29
1999/10/06 02:00:01| Swap maxSize 16896000 KB, estimated 1299692 objects
1999/10/06 02:00:01| Target number of buckets: 25993
1999/10/06 02:00:01| Using 32768 Store buckets, replacement runs every 2
seconds
1999/10/06 02:00:01| Max Mem size: 8192 KB
1999/10/06 02:00:01| Max Swap size: 16896000 KB
1999/10/06 02:00:01| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/10/06 02:00:01| Rebuilding storage in Cache Dir #1 (DIRTY)
1999/10/06 02:00:01| Rebuilding storage in Cache Dir #2 (DIRTY)
1999/10/06 02:00:01| Rebuilding storage in Cache Dir #3 (DIRTY)
1999/10/06 02:00:01| Set Current Directory to /cache1
1999/10/06 02:00:01| Loaded Icons.
1999/10/06 02:00:01| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.2.STABLE4): Terminated abnormally.
CPU Usage: 0.131 seconds
Maximum Resident Size: 5576 KB
Page faults with physical i/o: 0
1999/10/06 02:00:12| Starting Squid Cache version 2.2.STABLE4 for
i386-unknown-freebsd3.1...
1999/10/06 02:00:12| Process ID 8587
1999/10/06 02:00:12| With 1064 file descriptors available
1999/10/06 02:00:12| Performing DNS Tests...
1999/10/06 02:00:12| Successful DNS name lookup tests...
1999/10/06 02:00:12| helperOpenServers: Starting 20 'dnsserver' processes
1999/10/06 02:00:12| Unlinkd pipe opened on FD 29
1999/10/06 02:00:12| Swap maxSize 16896000 KB, estimated 1299692 objects
1999/10/06 02:00:12| Target number of buckets: 25993
1999/10/06 02:00:12| Using 32768 Store buckets, replacement runs every 2
seconds
1999/10/06 02:00:12| Max Mem size: 8192 KB
1999/10/06 02:00:12| Max Swap size: 16896000 KB
1999/10/06 02:00:12| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/10/06 02:00:12| Rebuilding storage in Cache Dir #1 (DIRTY)
1999/10/06 02:00:12| Rebuilding storage in Cache Dir #2 (DIRTY)
1999/10/06 02:00:12| Rebuilding storage in Cache Dir #3 (DIRTY)
1999/10/06 02:00:12| Set Current Directory to /cache1
1999/10/06 02:00:12| Loaded Icons.
1999/10/06 02:00:12| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.2.STABLE4): Terminated abnormally.
CPU Usage: 0.131 seconds
Maximum Resident Size: 6148 KB
Page faults with physical i/o: 0
1999/10/06 02:00:23| Starting Squid Cache version 2.2.STABLE4 for
i386-unknown-freebsd3.1...
1999/10/06 02:00:23| Process ID 8617
1999/10/06 02:00:23| With 1064 file descriptors available
1999/10/06 02:00:23| Performing DNS Tests...
1999/10/06 02:00:23| Successful DNS name lookup tests...
1999/10/06 02:00:23| helperOpenServers: Starting 20 'dnsserver' processes
1999/10/06 02:00:23| Unlinkd pipe opened on FD 29
1999/10/06 02:00:23| Swap maxSize 16896000 KB, estimated 1299692 objects
1999/10/06 02:00:23| Target number of buckets: 25993
1999/10/06 02:00:23| Using 32768 Store buckets, replacement runs every 2
seconds
1999/10/06 02:00:23| Max Mem size: 8192 KB
1999/10/06 02:00:23| Max Swap size: 16896000 KB
1999/10/06 02:00:23| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/10/06 02:00:23| Rebuilding storage in Cache Dir #1 (DIRTY)
1999/10/06 02:00:23| Rebuilding storage in Cache Dir #2 (DIRTY)
1999/10/06 02:00:23| Rebuilding storage in Cache Dir #3 (DIRTY)
1999/10/06 02:00:23| Set Current Directory to /cache1
1999/10/06 02:00:23| Loaded Icons.
1999/10/06 02:00:23| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.2.STABLE4): Terminated abnormally.
CPU Usage: 0.125 seconds
Maximum Resident Size: 6132 KB
Page faults with physical i/o: 0
1999/10/06 02:00:33| Starting Squid Cache version 2.2.STABLE4 for
i386-unknown-freebsd3.1...
1999/10/06 02:00:33| Process ID 8647
1999/10/06 02:00:33| With 1064 file descriptors available
1999/10/06 02:00:33| Performing DNS Tests...
1999/10/06 02:00:33| Successful DNS name lookup tests...
1999/10/06 02:00:33| helperOpenServers: Starting 20 'dnsserver' processes
1999/10/06 02:00:33| Unlinkd pipe opened on FD 29
1999/10/06 02:00:33| Swap maxSize 16896000 KB, estimated 1299692 objects
1999/10/06 02:00:33| Target number of buckets: 25993
1999/10/06 02:00:33| Using 32768 Store buckets, replacement runs every 2
seconds
1999/10/06 02:00:33| Max Mem size: 8192 KB
1999/10/06 02:00:33| Max Swap size: 16896000 KB
1999/10/06 02:00:33| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/10/06 02:00:33| Rebuilding storage in Cache Dir #1 (DIRTY)
1999/10/06 02:00:33| Rebuilding storage in Cache Dir #2 (DIRTY)
1999/10/06 02:00:33| Rebuilding storage in Cache Dir #3 (DIRTY)
1999/10/06 02:00:33| Set Current Directory to /cache1
1999/10/06 02:00:33| Loaded Icons.
1999/10/06 02:00:33| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.2.STABLE4): Terminated abnormally.
CPU Usage: 0.153 seconds
Maximum Resident Size: 5616 KB
Page faults with physical i/o: 0
1999/10/06 02:00:44| Starting Squid Cache version 2.2.STABLE4 for
i386-unknown-freebsd3.1...
1999/10/06 02:00:44| Process ID 8684
1999/10/06 02:00:44| With 1064 file descriptors available
1999/10/06 02:00:44| Performing DNS Tests...
1999/10/06 02:00:44| Successful DNS name lookup tests...
1999/10/06 02:00:44| helperOpenServers: Starting 20 'dnsserver' processes
1999/10/06 02:00:44| Unlinkd pipe opened on FD 29
1999/10/06 02:00:44| Swap maxSize 16896000 KB, estimated 1299692 objects
1999/10/06 02:00:44| Target number of buckets: 25993
1999/10/06 02:00:44| Using 32768 Store buckets, replacement runs every 2
seconds
1999/10/06 02:00:44| Max Mem size: 8192 KB
1999/10/06 02:00:44| Max Swap size: 16896000 KB
1999/10/06 02:00:44| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/10/06 02:00:44| Rebuilding storage in Cache Dir #1 (DIRTY)
1999/10/06 02:00:44| Rebuilding storage in Cache Dir #2 (DIRTY)
1999/10/06 02:00:44| Rebuilding storage in Cache Dir #3 (DIRTY)
1999/10/06 02:00:44| Set Current Directory to /cache1
1999/10/06 02:00:44| Loaded Icons.
1999/10/06 02:00:44| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.2.STABLE4): Terminated abnormally.
CPU Usage: 0.134 seconds
Maximum Resident Size: 6136 KB
Page faults with physical i/o: 0
1999/10/06 02:00:55| Starting Squid Cache version 2.2.STABLE4 for
i386-unknown-freebsd3.1...
1999/10/06 02:00:55| Process ID 8714
1999/10/06 02:00:55| With 1064 file descriptors available
1999/10/06 02:00:55| Performing DNS Tests...
1999/10/06 02:00:55| Successful DNS name lookup tests...
1999/10/06 02:00:55| helperOpenServers: Starting 20 'dnsserver' processes
1999/10/06 02:00:55| Unlinkd pipe opened on FD 29
1999/10/06 02:00:55| Swap maxSize 16896000 KB, estimated 1299692 objects
1999/10/06 02:00:55| Target number of buckets: 25993
1999/10/06 02:00:55| Using 32768 Store buckets, replacement runs every 2
seconds
1999/10/06 02:00:55| Max Mem size: 8192 KB
1999/10/06 02:00:55| Max Swap size: 16896000 KB
1999/10/06 02:00:55| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/10/06 02:00:55| Rebuilding storage in Cache Dir #1 (DIRTY)
1999/10/06 02:00:55| Rebuilding storage in Cache Dir #2 (DIRTY)
1999/10/06 02:00:55| Rebuilding storage in Cache Dir #3 (DIRTY)
1999/10/06 02:00:55| Set Current Directory to /cache1
1999/10/06 02:00:55| Loaded Icons.
1999/10/06 02:00:55| commBind: Cannot bind socket FD 58 to *:80: (48)
Address already in use
FATAL: Cannot open HTTP Port
Squid Cache (Version 2.2.STABLE4): Terminated abnormally.
CPU Usage: 0.131 seconds
Maximum Resident Size: 5860 KB
Page faults with physical i/o: 0
1999/10/06 04:28:28| sslReadClient: FD 30: read failure: (54) Connection
reset by peer
<<<<< Just the usual messages as above from now on until it rotates the log
files again >>>>
Received on Wed Oct 06 1999 - 22:01:37 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:45 MST