[squid-users] Resource temporarily unavailable

From: Adam Clark <chumblybum@dont-contact.us>
Date: Sun, 9 May 2004 11:58:47 +1000

I found squid today terminated abnormally

I have been using squid for months with no problems its been acting up
lately
I found it today

There is a cache log snippet at the end of the mail which repeats itself
every 30 seconds

storeDiskdSend OPEN: (35) Resource temporarily unavailable
2004/05/07 12:32:53| storeDiskdSend: msgsnd: (35) Resource temporarily
unavailable

This is really strange as no body is generally using it at this time. Its
my personal
gateway and I was snuggly asleep at 1 am last night.

Any ideas?

Relevant info:

(13:26:58 <~>) 0 $ uname -v
FreeBSD 5.2.1-RC #1: Sun Feb 1 16:13:06 EST 2004

(13:25:48 <~>) 0 $ /usr/local/squid/sbin/squid -v
Squid Cache: Version 2.5.STABLE3
configure
options: --prefix=/usr/local/squid-2.5.STABLE3 --enable-removal-policies --
enable-poll --enable-snmp --enable-cache-digests --enable-ipf-transparent --
disable-internal-dns --enable-basic-auth-helpers=NCSA --with-pthreads --enab
le-storeio=ufs,diskd --with-ssl --with-openssl=/usr/local/ssl --enable-delay
-pools

squid.conf:
http_port 192.168.0.1:3128
http_port 192.168.0.1:8080
http_port 127.0.0.1:3128
http_port 127.0.0.1:8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
acl LOWBROW urlpath_regex lowbrow
no_cache deny QUERY
no_cache deny LOWBROW
cache_mem 48 MB
maximum_object_size 24576 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir diskd /var/webcache 1600 16 256 Q1=72 Q2=64
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic program /usr/local/squid/libexec/ncsa_auth
/usr/local/etc/squid/passwd
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
acl home_net src 192.168.0.0/255.255.0.0
acl auth_users proxy_auth REQUIRED
acl adam proxy_auth adam
acl movies urlpath_regex -i \.avi$ \.mpe?g$ \.moo?v$ \.wmv$
acl executables urlpath_regex -i \.exe$ \.cab$ \.dll$
acl bad_sites url_regex -i "/usr/local/etc/squid/denied"
acl Exchange port 80
http_access allow manager localhost
http_access deny manager
http_access allow Exchange to_localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access deny bad_sites
http_access allow executables auth_users
http_access allow home_net
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user squid
cache_effective_group squid
visible_hostname milkrun.wiggedy
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
logfile_rotate 7
delay_pools 1
delay_class 1 2
delay_access 1 allow movies
delay_access 1 deny all
delay_parameters 1 8000/16000 8000/16000
coredump_dir /tmp

repeating log entries in cache.log:
2004/05/07 01:12:23| storeDiskdSend: msgsnd: (35) Resource temporarily
unavailable
2004/05/07 01:12:23| assertion failed: diskd/store_io_diskd.c:494:
"++send_errors < 100"
2004/05/07 01:12:26| Starting Squid Cache version 2.5.STABLE3 for
i386-unknown-freebsd5.1...
2004/05/07 01:12:26| Process ID 33703
2004/05/07 01:12:26| With 3636 file descriptors available
2004/05/07 01:12:26| Performing DNS Tests...
2004/05/07 01:12:26| Successful DNS name lookup tests...
2004/05/07 01:12:26| helperOpenServers: Starting 5 'dnsserver' processes
2004/05/07 01:12:26| helperOpenServers: Starting 5 'ncsa_auth' processes
2004/05/07 01:12:26| Unlinkd pipe opened on FD 20
2004/05/07 01:12:26| Swap maxSize 1638400 KB, estimated 126030 objects
2004/05/07 01:12:26| Target number of buckets: 6301
2004/05/07 01:12:26| Using 8192 Store buckets
2004/05/07 01:12:26| Max Mem size: 49152 KB
2004/05/07 01:12:26| Max Swap size: 1638400 KB
2004/05/07 01:12:26| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2004/05/07 01:12:26| Rebuilding storage in /var/webcache (DIRTY)
2004/05/07 01:12:26| Using Least Load store dir selection
2004/05/07 01:12:26| Set Current Directory to /tmp
2004/05/07 01:12:26| Loaded Icons.
2004/05/07 01:12:27| Accepting HTTP connections at 192.168.0.1, port 3128,
FD 22.
2004/05/07 01:12:27| Accepting HTTP connections at 192.168.0.1, port 8080,
FD 24.
2004/05/07 01:12:27| Accepting HTTP connections at 127.0.0.1, port 3128, FD
25.
2004/05/07 01:12:27| Accepting HTTP connections at 127.0.0.1, port 8080, FD
26.
2004/05/07 01:12:27| Accepting ICP messages at 0.0.0.0, port 3130, FD 27.
2004/05/07 01:12:27| Accepting SNMP messages on port 3401, FD 28.
2004/05/07 01:12:27| WCCP Disabled.
2004/05/07 01:12:27| Ready to serve requests.
2004/05/07 01:12:27| Store rebuilding is 4.9% complete
2004/05/07 01:12:40| Done reading /var/webcache swaplog (83179 entries)
2004/05/07 01:12:40| Finished rebuilding storage from disk.
2004/05/07 01:12:40| 83072 Entries scanned
2004/05/07 01:12:40| 0 Invalid entries.
2004/05/07 01:12:40| 0 With invalid flags.
2004/05/07 01:12:40| 83072 Objects loaded.
2004/05/07 01:12:40| 0 Objects expired.
2004/05/07 01:12:40| 0 Objects cancelled.
2004/05/07 01:12:40| 8 Duplicate URLs purged.
2004/05/07 01:12:40| 0 Swapfile clashes avoided.
2004/05/07 01:12:40| Took 14.0 seconds (5928.0 objects/sec).
2004/05/07 01:12:40| Beginning Validation Procedure
2004/05/07 01:12:40| Completed Validation Procedure
2004/05/07 01:12:40| Validated 83064 Entries
2004/05/07 01:12:40| store_swap_size = 1481440k
2004/05/07 01:12:40| storeLateRelease: released 0 objects
2004/05/07 01:12:41| storeDiskdSend: msgsnd: (35) Resource temporarily
unavailable

which repeats
Received on Sat May 08 2004 - 19:59:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT