[squid-users] /etc/init.d/squid start failed

From: Hubert Choma <hubert.ch_at_wp.pl>
Date: Mon, 15 Mar 2010 12:02:21 +0100

Hello

I have squid 2.7 stable7 on centos 5.3
I downloaded it from http://people.redhat.com/~jskala/squid/ because
Cenots repos has 2.6 version only.

When I would to start squid /etc/init.d/squid start I receive [failed]
but in cache.log there is no Warnings or errors . So I can not pinpoint
the error. How can I find the cause of the error ???

I use default config.

Earlier I have received "squid WARNING failed to resolve 192.168.0.1 to
a fully qualified hostname. So I made an entry in etc hosts and add
visible_hostname proliant.geodezja.wolomin in squid conf but still have
error. Its strange service squid status show me that squid is running !!

but service squid restart shows:
service squid stop [ok]
service squid start [failed]
service squid status running

The machine which squid is running have 2 NIC's (Linux router) eth0
192.168.1.1 and eth1 192.168.0.1.
My public domain IP is 83.18.17.30 and dns from internet provider. So
what should look like a valid entry in the /etc/hosts ??

127.0.0.1 localhost.localdomain localhost proliant
#192.168.1.2 proliant
192.168.0.1 proliant.geodezja.wolomin.pl proliant
#83.18.17.30 geodezja.wolomin.pl proliant
192.168.0.2 sm2
192.168.0.3 sm3
192.168.0.4 sm4
192.168.0.6 sm19
192.168.0.8 sm9
::1 localhost6.localdomain6 localhost6

squid.conf
http_port 8080 transparent
visible_hostname proliant.geodezja.wolomin.pl
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal
network
acl localnet src 192.168.0.0/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all

hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/spool/squid

squid.log

2010/03/15 10:25:38| Preparing for shutdown after 0 requests
2010/03/15 10:25:38| Waiting 30 seconds for active connections to finish
2010/03/15 10:25:38| FD 13 Closing HTTP connection
2010/03/15 10:25:38| Shutting down...
2010/03/15 10:25:38| FD 14 Closing ICP connection
2010/03/15 10:25:38| Closing unlinkd pipe on FD 11
2010/03/15 10:25:38| storeDirWriteCleanLogs: Starting...
2010/03/15 10:25:38| Finished. Wrote 2336 entries.
2010/03/15 10:25:38| Took 0.0 seconds (2975796.2 entries/sec).
CPU Usage: 0.049 seconds = 0.031 user + 0.018 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena: 2772 KB
        Ordinary blocks: 2660 KB 7 blks
        Small blocks: 0 KB 5 blks
        Holding blocks: 284 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 111 KB
        Total in use: 2944 KB 96%
        Total free: 111 KB 4%
2010/03/15 10:25:38| logfileClose: closing log /var/log/squid/store.log
2010/03/15 10:25:38| logfileClose: closing log /var/log/squid/access.log
2010/03/15 10:25:38| Squid Cache (Version 2.7.STABLE7): Exiting normally.
2010/03/15 10:25:42| Starting Squid Cache version 2.7.STABLE7 for
i386-redhat-linux-gnu...
2010/03/15 10:25:42| Process ID 11568
2010/03/15 10:25:42| With 1024 file descriptors available
2010/03/15 10:25:42| Using epoll for the IO loop
2010/03/15 10:25:42| DNS Socket created at 0.0.0.0, port 37353, FD 6
2010/03/15 10:25:42| Adding nameserver 194.204.152.34 from
/etc/resolv.conf
2010/03/15 10:25:42| Adding nameserver 194.204.159.1 from /etc/resolv.conf
2010/03/15 10:25:42| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2010/03/15 10:25:42| User-Agent logging is disabled.
2010/03/15 10:25:42| Referer logging is disabled.
2010/03/15 10:25:42| logfileOpen: opening log /var/log/squid/access.log
2010/03/15 10:25:42| Unlinkd pipe opened on FD 11
2010/03/15 10:25:42| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
2010/03/15 10:25:42| Target number of buckets: 425
2010/03/15 10:25:42| Using 8192 Store buckets
2010/03/15 10:25:42| Max Mem size: 8192 KB
2010/03/15 10:25:42| Max Swap size: 102400 KB
2010/03/15 10:25:42| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2010/03/15 10:25:42| logfileOpen: opening log /var/log/squid/store.log
2010/03/15 10:25:42| Rebuilding storage in /var/spool/squid (CLEAN)
2010/03/15 10:25:42| Using Least Load store dir selection
2010/03/15 10:25:42| Set Current Directory to /var/spool/squid
2010/03/15 10:25:42| Loaded Icons.
2010/03/15 10:25:42| Accepting transparently proxied HTTP connections at
0.0.0.0, port 8080, FD 13.
2010/03/15 10:25:42| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2010/03/15 10:25:42| WCCP Disabled.
2010/03/15 10:25:42| Ready to serve requests.
2010/03/15 10:25:42| Done reading /var/spool/squid swaplog (2336 entries)
2010/03/15 10:25:42| Finished rebuilding storage from disk.
2010/03/15 10:25:42| 2336 Entries scanned
2010/03/15 10:25:42| 0 Invalid entries.
2010/03/15 10:25:42| 0 With invalid flags.
2010/03/15 10:25:42| 2336 Objects loaded.
2010/03/15 10:25:42| 0 Objects expired.
2010/03/15 10:25:42| 0 Objects cancelled.
2010/03/15 10:25:42| 0 Duplicate URLs purged.
2010/03/15 10:25:42| 0 Swapfile clashes avoided.
2010/03/15 10:25:42| Took 0.3 seconds (7954.6 objects/sec).
2010/03/15 10:25:42| Beginning Validation Procedure
2010/03/15 10:25:42| Completed Validation Procedure
2010/03/15 10:25:42| Validated 2336 Entries
2010/03/15 10:25:42| store_swap_size = 25628k
2010/03/15 10:25:43| storeLateRelease: released 0 objects
2010/03/15 11:45:05| Preparing for shutdown after 0 requests
2010/03/15 11:45:05| Waiting 30 seconds for active connections to finish
2010/03/15 11:45:05| FD 13 Closing HTTP connection
2010/03/15 11:45:05| Shutting down...
2010/03/15 11:45:05| FD 14 Closing ICP connection
2010/03/15 11:45:05| Closing unlinkd pipe on FD 11
2010/03/15 11:45:05| storeDirWriteCleanLogs: Starting...
2010/03/15 11:45:05| Finished. Wrote 2336 entries.
2010/03/15 11:45:05| Took 0.0 seconds (2891089.1 entries/sec).
CPU Usage: 0.052 seconds = 0.027 user + 0.025 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena: 2772 KB
        Ordinary blocks: 2661 KB 8 blks
        Small blocks: 0 KB 5 blks
        Holding blocks: 284 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 110 KB
        Total in use: 2945 KB 96%
        Total free: 110 KB 4%
2010/03/15 11:45:05| logfileClose: closing log /var/log/squid/store.log
2010/03/15 11:45:05| logfileClose: closing log /var/log/squid/access.log
2010/03/15 11:45:05| Squid Cache (Version 2.7.STABLE7): Exiting normally.
2010/03/15 11:45:05| Starting Squid Cache version 2.7.STABLE7 for
i386-redhat-linux-gnu...
2010/03/15 11:45:05| Process ID 12822
2010/03/15 11:45:05| With 1024 file descriptors available
2010/03/15 11:45:05| Using epoll for the IO loop
2010/03/15 11:45:05| DNS Socket created at 0.0.0.0, port 58106, FD 6
2010/03/15 11:45:05| Adding nameserver 194.204.152.34 from
/etc/resolv.conf
2010/03/15 11:45:05| Adding nameserver 194.204.159.1 from /etc/resolv.conf
2010/03/15 11:45:05| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2010/03/15 11:45:05| User-Agent logging is disabled.
2010/03/15 11:45:05| Referer logging is disabled.
2010/03/15 11:45:05| logfileOpen: opening log /var/log/squid/access.log
2010/03/15 11:45:05| Unlinkd pipe opened on FD 11
2010/03/15 11:45:05| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
2010/03/15 11:45:05| Target number of buckets: 425
2010/03/15 11:45:05| Using 8192 Store buckets
2010/03/15 11:45:05| Max Mem size: 8192 KB
2010/03/15 11:45:05| Max Swap size: 102400 KB
2010/03/15 11:45:05| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2010/03/15 11:45:05| logfileOpen: opening log /var/log/squid/store.log
2010/03/15 11:45:05| Rebuilding storage in /var/spool/squid (CLEAN)
2010/03/15 11:45:05| Using Least Load store dir selection
2010/03/15 11:45:05| Set Current Directory to /var/spool/squid
2010/03/15 11:45:05| Loaded Icons.
2010/03/15 11:45:05| Accepting transparently proxied HTTP connections at
0.0.0.0, port 8080, FD 13.
2010/03/15 11:45:05| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2010/03/15 11:45:05| WCCP Disabled.
2010/03/15 11:45:05| Ready to serve requests.
2010/03/15 11:45:05| Done reading /var/spool/squid swaplog (2336 entries)
2010/03/15 11:45:05| Finished rebuilding storage from disk.
2010/03/15 11:45:05| 2336 Entries scanned
2010/03/15 11:45:05| 0 Invalid entries.
2010/03/15 11:45:05| 0 With invalid flags.
2010/03/15 11:45:05| 2336 Objects loaded.
2010/03/15 11:45:05| 0 Objects expired.
2010/03/15 11:45:05| 0 Objects cancelled.
2010/03/15 11:45:05| 0 Duplicate URLs purged.
2010/03/15 11:45:05| 0 Swapfile clashes avoided.
2010/03/15 11:45:05| Took 0.3 seconds (7980.5 objects/sec).
2010/03/15 11:45:05| Beginning Validation Procedure
2010/03/15 11:45:05| Completed Validation Procedure
2010/03/15 11:45:05| Validated 2336 Entries
2010/03/15 11:45:05| store_swap_size = 25628k
2010/03/15 11:45:06| storeLateRelease: released 0 objects
Received on Mon Mar 15 2010 - 11:02:24 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 16 2010 - 12:00:03 MDT