[squid-users] assertion failed: store_swapout.cc:315: "mem->swapout.sio == self

From: viral shah <viral21may_at_gmail.com>
Date: Fri, 2 May 2014 15:39:11 -0700

Hello,

I am running squid as http caching server, after running for few days
our squid server will stop responding to client requests.

When this occurs, I see below errors in cache.log.

2014/05/02 12:02:57| assertion failed: store_swapout.cc:315:
"mem->swapout.sio == self"
2014/05/02 12:03:01| Starting Squid Cache version 3.1.10 for
x86_64-redhat-linux-gnu...
2014/05/02 12:03:01| Process ID 23162
2014/05/02 12:03:01| With 65536 file descriptors available
2014/05/02 12:03:01| Initializing IP Cache...
2014/05/02 12:03:01| DNS Socket created at 0.0.0.0, FD 7
2014/05/02 12:03:01| Adding domain compute-1.internal from /etc/resolv.conf
2014/05/02 12:03:01| Adding nameserver 172.16.0.23 from /etc/resolv.conf
2014/05/02 12:03:01| User-Agent logging is disabled.
2014/05/02 12:03:01| Referer logging is disabled.
2014/05/02 12:03:01| Unlinkd pipe opened on FD 12
2014/05/02 12:03:01| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2014/05/02 12:03:01| Swap maxSize 340787200 + 262144 KB, estimated
26234564 objects
2014/05/02 12:03:01| Target number of buckets: 1311728
2014/05/02 12:03:01| Using 2097152 Store buckets

Squid is running on CentOS 6.2 , below is the package details, I
deployed using yum.

###########
Name : squid
Arch : x86_64
Epoch : 7
Version : 3.1.10
Release : 20.el6_5
Size : 5.8 M
Repo : installed
From repo : updates
Summary : The Squid proxy caching server
URL : http://www.squid-cache.org
License : GPLv2 and (LGPLv2+ and Public Domain)
Description : Squid is a high-performance proxy caching server for Web clients,
            : supporting FTP, gopher, and HTTP data objects. Unlike traditional
            : caching software, Squid handles all requests in a single,
            : non-blocking, I/O-driven process. Squid keeps meta data
and especially
            : hot objects cached in RAM, caches DNS lookups, supports
non-blocking
            : DNS lookups, and implements negative caching of failed requests.
            :
            : Squid consists of a main server program squid, a Domain
Name System
            : lookup program (dnsserver), a program for retrieving FTP data
            : (ftpget), and some management and client tools.
###########################

Please find the below squid configuration I have.

squid.conf

###################################################################
#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl localhost src 206.80.1.253/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
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 fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly
plugged) machines

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

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
cache_mgr root_at_localhost

#################Logging configurations#######################
cache_log /mnt/log/squid/cache.log
access_log /mnt/log/squid/access.log squid
cache_store_log /mnt/log/squid/store.log squid
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

#Maximum object size
maximum_object_size 32 MB

# Uncomment and adjust the following to add a disk cache directory.

cache_dir ufs /data/squid/dirs/1 5120 4 1024
cache_dir ufs /data/squid/dirs/2 5120 4 1024
cache_dir ufs /data/squid/dirs/3 5120 4 1024
cache_dir ufs /data/squid/dirs/4 5120 4 1024
cache_dir ufs /data/squid/dirs/5 5120 4 1024
cache_dir ufs /data/squid/dirs/6 5120 4 1024
cache_dir ufs /data/squid/dirs/7 5120 4 1024
cache_dir ufs /data/squid/dirs/8 5120 4 1024
cache_dir ufs /data/squid/dirs/9 5120 4 1024
cache_dir ufs /data/squid/dirs/10 5120 4 1024
cache_dir ufs /data/squid/dirs/11 5120 4 1024
cache_dir ufs /data/squid/dirs/12 5120 4 1024
cache_dir ufs /data/squid/dirs/13 5120 4 1024
cache_dir ufs /data/squid/dirs/14 5120 4 1024
cache_dir ufs /data/squid/dirs/15 5120 4 1024
cache_dir ufs /data/squid/dirs/16 5120 4 1024
cache_dir ufs /data/squid/dirs/17 5120 4 1024
cache_dir ufs /data/squid/dirs/18 5120 4 1024
cache_dir ufs /data/squid/dirs/19 5120 4 1024
cache_dir ufs /data/squid/dirs/20 5120 4 1024
cache_dir ufs /data/squid/dirs/21 5120 4 1024
cache_dir ufs /data/squid/dirs/22 5120 4 1024
cache_dir ufs /data/squid/dirs/23 5120 4 1024
cache_dir ufs /data/squid/dirs/24 5120 4 1024
cache_dir ufs /data/squid/dirs/25 5120 4 1024
cache_dir ufs /data/squid/dirs/26 5120 4 1024
cache_dir ufs /data/squid/dirs/27 5120 4 1024
cache_dir ufs /data/squid/dirs/28 5120 4 1024
cache_dir ufs /data/squid/dirs/29 5120 4 1024
cache_dir ufs /data/squid/dirs/30 5120 4 1024
cache_dir ufs /data/squid/dirs/31 5120 4 1024
cache_dir ufs /data/squid/dirs/32 5120 4 1024
cache_dir ufs /data/squid/dirs/33 5120 4 1024
cache_dir ufs /data/squid/dirs/34 5120 4 1024
cache_dir ufs /data/squid/dirs/35 5120 4 1024
cache_dir ufs /data/squid/dirs/36 5120 4 1024
cache_dir ufs /data/squid/dirs/37 5120 4 1024
cache_dir ufs /data/squid/dirs/38 5120 4 1024
cache_dir ufs /data/squid/dirs/39 5120 4 1024
cache_dir ufs /data/squid/dirs/40 5120 4 1024
cache_dir ufs /data/squid/dirs/41 5120 4 1024
cache_dir ufs /data/squid/dirs/42 5120 4 1024
cache_dir ufs /data/squid/dirs/43 5120 4 1024
cache_dir ufs /data/squid/dirs/44 5120 4 1024
cache_dir ufs /data/squid/dirs/45 5120 4 1024
cache_dir ufs /data/squid/dirs/46 5120 4 1024
cache_dir ufs /data/squid/dirs/47 5120 4 1024
cache_dir ufs /data/squid/dirs/48 5120 4 1024
cache_dir ufs /data/squid/dirs/49 5120 4 1024
cache_dir ufs /data/squid/dirs/50 5120 4 1024
cache_dir ufs /data/squid/dirs/51 5120 4 1024
cache_dir ufs /data/squid/dirs/52 5120 4 1024
cache_dir ufs /data/squid/dirs/53 5120 4 1024
cache_dir ufs /data/squid/dirs/54 5120 4 1024
cache_dir ufs /data/squid/dirs/55 5120 4 1024
cache_dir ufs /data/squid/dirs/56 5120 4 1024
cache_dir ufs /data/squid/dirs/57 5120 4 1024
cache_dir ufs /data/squid/dirs/58 5120 4 1024
cache_dir ufs /data/squid/dirs/59 5120 4 1024
cache_dir ufs /data/squid/dirs/60 5120 4 1024
cache_dir ufs /data/squid/dirs/61 5120 4 1024
cache_dir ufs /data/squid/dirs/62 5120 4 1024
cache_dir ufs /data/squid/dirs/63 5120 4 1024
cache_dir ufs /data/squid/dirs/64 5120 4 1024

# Leave coredumps in the first cache dir
coredump_dir /data/squid/coredump

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/) 0 0% 0
refresh_pattern . 129600 100% 518400
##############################################################################################

Tried searching mailing list for any help with this error,
unfortunately couldn't find anything useful.

Can someone please help me with this error. Thanks in advance.

Viral
Received on Fri May 02 2014 - 22:39:18 MDT

This archive was generated by hypermail 2.2.0 : Sun May 04 2014 - 12:00:05 MDT