we have reinstalled cleanly Squid, have squid -z and it works for some time, then squid terminates with:

DiskThreadsDiskFile::openDone: (2) No such file or directory

the original config file is the one below.

thank you - David


2016/06/24 06:26:53 kid1| Set Current Directory to /var/cache/squid
2016/06/24 06:26:53 kid1| Starting Squid Cache version 3.5.19 for x86_64-pc-linux-gnu...
2016/06/24 06:26:53 kid1| Service Name: squid
2016/06/24 06:26:53 kid1| Process ID 7914
2016/06/24 06:26:53 kid1| Process Roles: worker
2016/06/24 06:26:53 kid1| With 1024 file descriptors available
2016/06/24 06:26:53 kid1| Initializing IP Cache...
2016/06/24 06:26:53 kid1| DNS Socket created at [::], FD 8
2016/06/24 06:26:53 kid1| DNS Socket created at 0.0.0.0, FD 9
2016/06/24 06:26:53 kid1| Adding nameserver 192.168.2.1 from /etc/resolv.conf 2016/06/24 06:26:53 kid1| Logfile: opening log daemon:/var/log/squid/access.log 2016/06/24 06:26:53 kid1| Logfile Daemon: opening log /var/log/squid/access.log 2016/06/24 06:26:53 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2016/06/24 06:26:53 kid1| Store logging disabled
2016/06/24 06:26:53 kid1| Swap maxSize 1024000 + 262144 KB, estimated 98934 objects
2016/06/24 06:26:53 kid1| Target number of buckets: 4946
2016/06/24 06:26:53 kid1| Using 8192 Store buckets
2016/06/24 06:26:53 kid1| Max Mem  size: 262144 KB
2016/06/24 06:26:53 kid1| Max Swap size: 1024000 KB
2016/06/24 06:26:53 kid1| Rebuilding storage in /var/cache/squid (dirty log)
2016/06/24 06:26:53 kid1| Using Least Load store dir selection
2016/06/24 06:26:53 kid1| Set Current Directory to /var/cache/squid
2016/06/24 06:26:53 kid1| Finished loading MIME types and icons.
2016/06/24 06:26:53 kid1| HTCP Disabled.
2016/06/24 06:26:53 kid1| Squid plugin modules loaded: 0
2016/06/24 06:26:53 kid1| Adaptation support is off.
2016/06/24 06:26:53 kid1| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 14 flags=9 2016/06/24 06:26:53 kid1| Done reading /var/cache/squid swaplog (705 entries)
2016/06/24 06:26:53 kid1| Finished rebuilding storage from disk.
2016/06/24 06:26:53 kid1|       705 Entries scanned
2016/06/24 06:26:53 kid1|         0 Invalid entries.
2016/06/24 06:26:53 kid1|         0 With invalid flags.
2016/06/24 06:26:53 kid1|       705 Objects loaded.
2016/06/24 06:26:53 kid1|         0 Objects expired.
2016/06/24 06:26:53 kid1|         0 Objects cancelled.
2016/06/24 06:26:53 kid1|         0 Duplicate URLs purged.
2016/06/24 06:26:53 kid1|         0 Swapfile clashes avoided.
2016/06/24 06:26:53 kid1|   Took 0.03 seconds (22704.58 objects/sec).
2016/06/24 06:26:53 kid1| Beginning Validation Procedure
2016/06/24 06:26:53 kid1|   Completed Validation Procedure
2016/06/24 06:26:53 kid1|   Validated 705 Entries
2016/06/24 06:26:53 kid1|   store_swap_size = 67156.00 KB
2016/06/24 06:26:54 kid1| storeLateRelease: released 0 objects
2016/06/24 06:32:50 kid1| DiskThreadsDiskFile::openDone: (2) No such file or directory
2016/06/24 06:32:50 kid1|     /var/cache/squid/00/00/0000000C
2016/06/24 06:56:49| Set Current Directory to /var/cache/squid
2016/06/24 06:56:49 kid1| Preparing for shutdown after 390 requests
2016/06/24 06:56:49 kid1| Waiting 30 seconds for active connections to finish
2016/06/24 06:56:49 kid1| Closing HTTP port [::]:3128

-------------------------------------------------------------------------------------------------------

#
# Recommended minimum configuration:
#

# 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:
#
# 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

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# 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

#
# 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

# Uncomment and adjust the following to add a disk cache directory.
cache_dir aufs /var/cache/squid 1000 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/cache/squid

#
# 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 -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private refresh_pattern -i \.(iso|avi|mkv|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private refresh_pattern -i \.(tar|run|deb|pkg|bz2|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern . 0 40% 40320

Am 23.06.2016 um 10:48 schrieb Eliezer Croitoru:
Hey David,

Are you using a squid instance with some old config file?

Eliezer

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: elie...@ngtech.co.il


-----Original Message-----
From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf 
Of David
Sent: Thursday, June 23, 2016 8:17 AM
To: squid-users@lists.squid-cache.org
Subject: [squid-users] Preparing for shutdown after xxx requests

So far Squid worked nice, but recently it shutdown again and again with:

Preparing for shutdown after xxx requests

has someone a hint what that causes squid to shutdown

Squid Cache: Version 3.5.19
on Archlinux

free -h:
                         total          used        free      shared
Puffer/Cache cached
Mem:              7.7G        3.4G        672M        333M 3.7G        3.7G
Swap:             4.0G         41M        4.0G

2016/06/23 07:45:06| Set Current Directory to /var/cache/squid
2016/06/23 07:45:06 kid1| Preparing for shutdown after 967 requests
2016/06/23 07:45:06 kid1| Waiting 10 seconds for active connections to
finish
2016/06/23 07:45:06 kid1| Closing HTTP port [::]:3128
2016/06/23 07:45:06 kid1| Set Current Directory to /var/cache/squid
2016/06/23 07:45:06 kid1| Starting Squid Cache version 3.5.19 for
x86_64-pc-linux-gnu...
2016/06/23 07:45:06 kid1| Service Name: squid
2016/06/23 07:45:06 kid1| Process ID 17879
2016/06/23 07:45:06 kid1| Process Roles: worker
2016/06/23 07:45:06 kid1| With 1024 file descriptors available
2016/06/23 07:45:06 kid1| Initializing IP Cache...
2016/06/23 07:45:06 kid1| DNS Socket created at [::], FD 8
2016/06/23 07:45:06 kid1| DNS Socket created at 0.0.0.0, FD 9
2016/06/23 07:45:06 kid1| Adding nameserver 192.168.2.1 from
/etc/resolv.conf
2016/06/23 07:45:06 kid1| Logfile: opening log
daemon:/var/log/squid/access.log
2016/06/23 07:45:06 kid1| Logfile Daemon: opening log
/var/log/squid/access.log
2016/06/23 07:45:06 kid1| Local cache digest enabled; rebuild/rewrite
every 3600/3600 sec
2016/06/23 07:45:06 kid1| Store logging disabled
2016/06/23 07:45:06 kid1| Swap maxSize 61440000 + 3072000 KB, estimated
4962461 objects
2016/06/23 07:45:06 kid1| Target number of buckets: 248123
2016/06/23 07:45:06 kid1| Using 262144 Store buckets
2016/06/23 07:45:06 kid1| Max Mem  size: 3072000 KB
2016/06/23 07:45:06 kid1| Max Swap size: 61440000 KB
2016/06/23 07:45:06 kid1| Rebuilding storage in /var/cache/squid (dirty log)
2016/06/23 07:45:06 kid1| Using Least Load store dir selection
2016/06/23 07:45:06 kid1| Set Current Directory to /var/cache/squid
2016/06/23 07:45:06 kid1| Finished loading MIME types and icons.
2016/06/23 07:45:06 kid1| HTCP Disabled.
2016/06/23 07:45:06 kid1| Squid plugin modules loaded: 0
2016/06/23 07:45:06 kid1| Adaptation support is off.
2016/06/23 07:45:06 kid1| Accepting HTTP Socket connections at
local=[::]:3128 remote=[::] FD 14 flags=9
2016/06/23 07:45:07 kid1| Store rebuilding is 53.75% complete
2016/06/23 07:45:07 kid1| Done reading /var/cache/squid swaplog (7441
entries)
2016/06/23 07:45:07 kid1| Finished rebuilding storage from disk.
2016/06/23 07:45:07 kid1|      7422 Entries scanned
2016/06/23 07:45:07 kid1|         0 Invalid entries.
2016/06/23 07:45:07 kid1|         0 With invalid flags.
2016/06/23 07:45:07 kid1|      7403 Objects loaded.
2016/06/23 07:45:07 kid1|         0 Objects expired.
2016/06/23 07:45:07 kid1|         0 Objects cancelled.
2016/06/23 07:45:07 kid1|        19 Duplicate URLs purged.
2016/06/23 07:45:07 kid1|         0 Swapfile clashes avoided.
2016/06/23 07:45:07 kid1|   Took 0.07 seconds (100137.97 objects/sec).
2016/06/23 07:45:07 kid1| Beginning Validation Procedure
2016/06/23 07:45:07 kid1|   Completed Validation Procedure
2016/06/23 07:45:07 kid1|   Validated 7403 Entries
2016/06/23 07:45:07 kid1|   store_swap_size = 490076.00 KB
2016/06/23 07:45:07 kid1| storeLateRelease: released 0 objects
2016/06/23 07:51:30| Set Current Directory to /var/cache/squid
2016/06/23 07:51:30 kid1| Preparing for shutdown after 28 requests
2016/06/23 07:51:30 kid1| Waiting 10 seconds for active connections to
finish
2016/06/23 07:51:30 kid1| Closing HTTP port [::]:3128

_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to