Public bug reported:

Binary package hint: squid3

# lsb_release -rd
Description:    Ubuntu 10.10
Release:        10.10

# apt-cache policy squid3
squid3:
  Installed: 3.1.6-1.1ubuntu1
  Candidate: 3.1.6-1.1ubuntu1
  Version table:
 *** 3.1.6-1.1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
        100 /var/lib/dpkg/status

On installation I expect squid3 to create the swap directories by
default in /var/spool/squid3 this does not happen.

Executing squid3 -z as root should re-create (or create) the swap
directories by default in /var/spool/squid3 this does not happen.

# apt-get install squid3 
<snip>
Setting up squid3 (3.1.6-1.1ubuntu1) ...
Creating Squid HTTP proxy 3.x spool directory structure
2011/03/01 06:41:54| Creating Swap Directories
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
# echo $?

# cd /var/spool/squid3/
# ls -al
total 8
drwxr-xr-x 2 proxy proxy 4096 Sep 20 16:12 .
drwxr-xr-x 5 root  root  4096 Mar  1 06:41 ..
#

# squid3 -z -X
2011/03/01 06:45:06.897| command-line -X overrides: ALL,7
2011/03/01 06:45:06.897| CacheManager::registerAction: registering legacy mem
2011/03/01 06:45:06.897| CacheManager::findAction: looking for action mem
2011/03/01 06:45:06.897| Action not found.
2011/03/01 06:45:06.897| CacheManager::registerAction: registered mem
2011/03/01 06:45:06.897| CacheManager::registerAction: registering legacy 
squidaio_counts
2011/03/01 06:45:06.897| CacheManager::findAction: looking for action 
squidaio_counts
2011/03/01 06:45:06.897| Action not found.
2011/03/01 06:45:06.897| CacheManager::registerAction: registered 
squidaio_counts
2011/03/01 06:45:06.897| CacheManager::registerAction: registering legacy diskd
2011/03/01 06:45:06.897| CacheManager::findAction: looking for action diskd
2011/03/01 06:45:06.897| Action not found.
2011/03/01 06:45:06.897| CacheManager::registerAction: registered diskd
2011/03/01 06:45:06.897| Detected IPv6 hybrid or v4-mapping stack...
2011/03/01 06:45:06.897| IPv6 transport Enabled
2011/03/01 06:45:06.897| aclDestroyACLs: invoked
2011/03/01 06:45:06.897| ACL::Prototype::Registered: invoked for type src
2011/03/01 06:45:06.897| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.897| ACL::FindByName 'all'
2011/03/01 06:45:06.898| ACL::FindByName found no match
2011/03/01 06:45:06.898| aclParseAclLine: Creating ACL 'all'
2011/03/01 06:45:06.898| ACL::Prototype::Factory: cloning an object for type 
'src'
2011/03/01 06:45:06.898| aclIpParseIpData: all
2011/03/01 06:45:06.898| aclIpParseIpData: magic 'all' found.
2011/03/01 06:45:06.898| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.898| ACL::FindByName 'all'
2011/03/01 06:45:06.898| Processing Configuration File: /etc/squid3/squid.conf 
(depth 0)
2011/03/01 06:45:06.899| Processing: 'acl manager proto cache_object'
2011/03/01 06:45:06.899| ACL::Prototype::Registered: invoked for type proto
2011/03/01 06:45:06.899| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.899| ACL::FindByName 'manager'
2011/03/01 06:45:06.899| ACL::FindByName found no match
2011/03/01 06:45:06.899| aclParseAclLine: Creating ACL 'manager'
2011/03/01 06:45:06.899| ACL::Prototype::Factory: cloning an object for type 
'proto'
2011/03/01 06:45:06.899| Processing: 'acl localhost src 127.0.0.1/32 ::1'
2011/03/01 06:45:06.900| ACL::Prototype::Registered: invoked for type src
2011/03/01 06:45:06.900| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.900| ACL::FindByName 'localhost'
2011/03/01 06:45:06.900| ACL::FindByName found no match
2011/03/01 06:45:06.900| aclParseAclLine: Creating ACL 'localhost'
2011/03/01 06:45:06.900| ACL::Prototype::Factory: cloning an object for type 
'src'
2011/03/01 06:45:06.900| aclIpParseIpData: 127.0.0.1/32
2011/03/01 06:45:06.900| aclIpParseIpData: '127.0.0.1/32' matched: SCAN3-v4: 
%[0123456789.]/%[0123456789.]
2011/03/01 06:45:06.900| Ip.cc(509) FactoryParse: Parsed: 
127.0.0.1-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff](/128)
2011/03/01 06:45:06.900| aclIpParseIpData: ::1
2011/03/01 06:45:06.900| aclIpParseIpData: Lookup Host/IP ::1
2011/03/01 06:45:06.900| aclIpParseIpData: Located host/IP: '[::1]'
2011/03/01 06:45:06.900| ::1 --> [::1]
2011/03/01 06:45:06.900| aclIpParseIpData: Duplicate host/IP: '[::1]' dropped.
2011/03/01 06:45:06.900| aclIpParseIpData: Duplicate host/IP: '[::1]' dropped.
2011/03/01 06:45:06.900| aclIpAddrNetworkCompare: compare: 
127.0.0.1/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] (127.0.0.1)  vs 
[::1]-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
2011/03/01 06:45:06.900| aclIpAddrNetworkCompare: compare: 
[::1]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] ([::1])  vs 
127.0.0.1-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
2011/03/01 06:45:06.900| Processing: 'acl to_localhost dst 127.0.0.0/8 
0.0.0.0/32 ::1'
2011/03/01 06:45:06.900| ACL::Prototype::Registered: invoked for type dst
2011/03/01 06:45:06.900| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.900| ACL::FindByName 'to_localhost'
2011/03/01 06:45:06.900| ACL::FindByName found no match
2011/03/01 06:45:06.900| aclParseAclLine: Creating ACL 'to_localhost'
2011/03/01 06:45:06.900| ACL::Prototype::Factory: cloning an object for type 
'dst'
2011/03/01 06:45:06.900| aclIpParseIpData: 127.0.0.0/8
2011/03/01 06:45:06.900| aclIpParseIpData: '127.0.0.0/8' matched: SCAN3-v4: 
%[0123456789.]/%[0123456789.]
2011/03/01 06:45:06.900| Ip.cc(509) FactoryParse: Parsed: 
127.0.0.0-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ff00:0](/104)
2011/03/01 06:45:06.900| aclIpParseIpData: 0.0.0.0/32
2011/03/01 06:45:06.900| aclIpParseIpData: '0.0.0.0/32' matched: SCAN3-v4: 
%[0123456789.]/%[0123456789.]
2011/03/01 06:45:06.900| Ip.cc(509) FactoryParse: Parsed: 
0.0.0.0-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff](/128)
2011/03/01 06:45:06.900| aclIpAddrNetworkCompare: compare: 
127.0.0.0/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] (127.0.0.0)  vs 
0.0.0.0-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
2011/03/01 06:45:06.900| aclIpAddrNetworkCompare: compare: 
0.0.0.0/[ffff:ffff:ffff:ffff:ffff:ffff:ff00:0] (0.0.0.0)  vs 
127.0.0.0-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ff00:0]
2011/03/01 06:45:06.900| aclIpParseIpData: ::1
2011/03/01 06:45:06.901| aclIpParseIpData: Lookup Host/IP ::1
2011/03/01 06:45:06.901| aclIpParseIpData: Located host/IP: '[::1]'
2011/03/01 06:45:06.901| ::1 --> [::1]
2011/03/01 06:45:06.901| aclIpParseIpData: Duplicate host/IP: '[::1]' dropped.
2011/03/01 06:45:06.901| aclIpParseIpData: Duplicate host/IP: '[::1]' dropped.
2011/03/01 06:45:06.901| aclIpAddrNetworkCompare: compare: 
0.0.0.0/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] (0.0.0.0)  vs 
[::1]-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
2011/03/01 06:45:06.901| aclIpAddrNetworkCompare: compare: 
[::1]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] ([::1])  vs 
0.0.0.0-[::]/[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
2011/03/01 06:45:06.901| Processing: 'acl SSL_ports port 443'
2011/03/01 06:45:06.901| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.901| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.901| ACL::FindByName 'SSL_ports'
2011/03/01 06:45:06.901| ACL::FindByName found no match
2011/03/01 06:45:06.901| aclParseAclLine: Creating ACL 'SSL_ports'
2011/03/01 06:45:06.901| ACL::Prototype::Factory: cloning an object for type 
'port'
2011/03/01 06:45:06.901| Processing: 'acl Safe_ports port 80            # http'
2011/03/01 06:45:06.901| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.901| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.901| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.901| ACL::FindByName found no match
2011/03/01 06:45:06.901| aclParseAclLine: Creating ACL 'Safe_ports'
2011/03/01 06:45:06.901| ACL::Prototype::Factory: cloning an object for type 
'port'
2011/03/01 06:45:06.901| Processing: 'acl Safe_ports port 21            # ftp'
2011/03/01 06:45:06.901| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.901| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.901| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.901| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.901| Processing: 'acl Safe_ports port 443           # https'
2011/03/01 06:45:06.901| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.901| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.901| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.901| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.901| Processing: 'acl Safe_ports port 70            # 
gopher'
2011/03/01 06:45:06.901| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.901| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.901| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.901| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.901| Processing: 'acl Safe_ports port 210           # wais'
2011/03/01 06:45:06.901| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.901| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.901| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.901| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.901| Processing: 'acl Safe_ports port 1025-65535    # 
unregistered ports'
2011/03/01 06:45:06.909| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.909| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.909| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.909| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.909| Processing: 'acl Safe_ports port 280           # 
http-mgmt'
2011/03/01 06:45:06.909| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.909| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.909| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.909| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.909| Processing: 'acl Safe_ports port 488           # 
gss-http'
2011/03/01 06:45:06.909| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.909| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.909| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.909| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.909| Processing: 'acl Safe_ports port 591           # 
filemaker'
2011/03/01 06:45:06.909| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.909| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.909| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.909| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.909| Processing: 'acl Safe_ports port 777           # 
multiling http'
2011/03/01 06:45:06.909| ACL::Prototype::Registered: invoked for type port
2011/03/01 06:45:06.909| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.909| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.909| aclParseAclLine: Appending to 'Safe_ports'
2011/03/01 06:45:06.909| Processing: 'acl CONNECT method CONNECT'
2011/03/01 06:45:06.909| ACL::Prototype::Registered: invoked for type method
2011/03/01 06:45:06.909| ACL::Prototype::Registered:    yes
2011/03/01 06:45:06.909| ACL::FindByName 'CONNECT'
2011/03/01 06:45:06.909| ACL::FindByName found no match
2011/03/01 06:45:06.909| aclParseAclLine: Creating ACL 'CONNECT'
2011/03/01 06:45:06.909| ACL::Prototype::Factory: cloning an object for type 
'method'
2011/03/01 06:45:06.909| Processing: 'http_access allow manager localhost'
2011/03/01 06:45:06.909| aclParseAclList: looking for ACL name 'manager'
2011/03/01 06:45:06.909| ACL::FindByName 'manager'
2011/03/01 06:45:06.909| aclParseAclList: looking for ACL name 'localhost'
2011/03/01 06:45:06.909| ACL::FindByName 'localhost'
2011/03/01 06:45:06.909| Processing: 'http_access deny manager'
2011/03/01 06:45:06.909| aclParseAclList: looking for ACL name 'manager'
2011/03/01 06:45:06.909| ACL::FindByName 'manager'
2011/03/01 06:45:06.910| Processing: 'http_access deny !Safe_ports'
2011/03/01 06:45:06.910| aclParseAclList: looking for ACL name 'Safe_ports'
2011/03/01 06:45:06.910| ACL::FindByName 'Safe_ports'
2011/03/01 06:45:06.910| Processing: 'http_access deny CONNECT !SSL_ports'
2011/03/01 06:45:06.910| aclParseAclList: looking for ACL name 'CONNECT'
2011/03/01 06:45:06.910| ACL::FindByName 'CONNECT'
2011/03/01 06:45:06.910| aclParseAclList: looking for ACL name 'SSL_ports'
2011/03/01 06:45:06.910| ACL::FindByName 'SSL_ports'
2011/03/01 06:45:06.910| Processing: 'http_access allow localhost'
2011/03/01 06:45:06.910| aclParseAclList: looking for ACL name 'localhost'
2011/03/01 06:45:06.910| ACL::FindByName 'localhost'
2011/03/01 06:45:06.910| Processing: 'http_access deny all'
2011/03/01 06:45:06.910| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.910| ACL::FindByName 'all'
2011/03/01 06:45:06.910| Processing: 'http_port 3128'
2011/03/01 06:45:06.910| http(s)_port: found Listen on Port: 3128
2011/03/01 06:45:06.910| http(s)_port: found Listen on wildcard address: *:3128
2011/03/01 06:45:06.910| Processing: 'hierarchy_stoplist cgi-bin ?'
2011/03/01 06:45:06.910| Processing: 'coredump_dir /var/spool/squid3'
2011/03/01 06:45:06.911| Processing: 'refresh_pattern ^ftp:             1440   
20%      10080'
2011/03/01 06:45:06.911| Processing: 'refresh_pattern ^gopher:  1440    0%     
1440'
2011/03/01 06:45:06.911| Processing: 'refresh_pattern -i (/cgi-bin/|\?) 0      
0%       0'
2011/03/01 06:45:06.911| Processing: 'refresh_pattern .         0       20%    
4320'
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| Log definition name 'squid' file 
'/var/log/squid3/access.log'
2011/03/01 06:45:06.912| wccp2_add_service_list: added service id 0
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| aclParseAclList: looking for ACL name 'all'
2011/03/01 06:45:06.912| ACL::FindByName 'all'
2011/03/01 06:45:06.912| tools.cc(672) uniqueHostname:  Config: '
2011/03/01 06:45:06.912| tools.cc(672) uniqueHostname:  Config: '
2011/03/01 06:45:06.913| leave_suid: PID 22972 called
2011/03/01 06:45:06.913| leave_suid: PID 22972 giving up root, becoming 'proxy'
2011/03/01 06:45:06.913| command-line -X overrides: ALL,1
2011/03/01 06:45:06.914| Creating Swap Directories
3# pwd
/var/spool/squid3
# ls -al
total 8
drwxr-xr-x 2 proxy proxy 4096 Sep 20 16:12 .
drwxr-xr-x 5 root  root  4096 Mar  1 06:41 ..

By default, squid3 configuration file has the cache_dir commented out:

# cat /etc/squid3/squid.conf | grep cache_dir
#       Applies to any cache_dir lines listed below this.
#  TAG: cache_dir
#       cache_dir Type Directory-Name Fs-specific-data [options]
#       You can specify multiple cache_dir lines to spread the
#       cache_dir ufs Directory-Name Mbytes L1 L2 [options]
#       cache_dir aufs Directory-Name Mbytes L1 L2 [options]
#       cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
#       block-size=n defines the "block size" for COSS cache_dir's.
#       leads to a maximum cache_dir size of 512<<24, or 8 GB.  Note
#       has written some objects to the cache_dir.
#       no-store, no new objects should be stored to this cache_dir
#       the cache_dir lines with the smallest max-size value first and the
#cache_dir ufs /var/spool/squid3 100 16 256

http://www.squid-cache.org/Versions/v3/3.1/cfgman/cache_dir.html says
there's not a default value for cache_dir

Option Name:    cache_dir
Replaces:       
Requires:       
Default Value:  none

I'm wondering if the squid3 package is expecting there to be a default
value?

** Affects: squid3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/726994

Title:
  Failure to create swap directories

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to