[squid-users] FATAL: Rock cache_dir at /cache/rock failed to open db file: (2) No such file or directory

From: George Tepnadze <giorgi_at_mia.gov.ge>
Date: Wed, 26 Sep 2012 15:42:27 +0400

Dear

I have compiled squid 3.2.1 on Ubuntu 12.04.01 LTS with this configure options:
'--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--sbindir=/usr/sbin'
'--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' '--localstatedir=/var/spool/squid'
'--datadir=/usr/share/squid' '--with-logdir=/var/log/squid' '--with-default-user=proxy'
--enable-ltdl-convenience

Created cache dir with proxy owner and put this in config:
cache_dir rock /cache 3000 max-size=31000 max-swap-rate=250 swap-timeout=350

Run squid -z, received output:

2012/09/26 15:33:28 kid2| Creating Swap Directories
2012/09/26 15:33:28 kid3| Creating Swap Directories

Run squid, received error:

2012/09/26 15:35:23 kid1| Using Least Load store dir selection
2012/09/26 15:35:23 kid1| Set Current Directory to /var/spool/squid/cache/squid
2012/09/26 15:35:23 kid1| Loaded Icons.
2012/09/26 15:35:23 kid1| HTCP Disabled.
2012/09/26 15:35:23 kid1| Sending SNMP messages from [::]:3401
2012/09/26 15:35:23 kid1| Squid plugin modules loaded: 0
2012/09/26 15:35:23 kid1| commBind: Cannot bind socket FD 21 to [::]: (13) Permission denied
2012/09/26 15:35:35 kid1| DiskIO/IpcIo/IpcIoFile.cc(138) openCompleted: error: timeout
2012/09/26 15:35:35 kid1| Closing HTTP port [::]:3128
2012/09/26 15:35:35 kid1| Closing HTTP port [::]:3128
FATAL: Rock cache_dir at /cache/rock failed to open db file: (2) No such file or directory
Squid Cache (Version 3.2.1): Terminated abnormally.
CPU Usage: 0.060 seconds = 0.036 user + 0.024 sys
Maximum Resident Size: 47216 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena: 4748 KB
        Ordinary blocks: 4715 KB 9 blks
        Small blocks: 0 KB 1 blks
        Holding blocks: 8592 KB 4 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 32 KB
        Total in use: 13307 KB 280%
        Total free: 32 KB 1%

File /cache/rock exists with correct permisions:

ls -l /cache
-rw------- 1 proxy proxy 3145728000 Sep 26 15:34 rock

Squid run with user proxy:

ps axu|grep squid
root 27350 0.0 0.1 1184768 1896 ? Ss 15:34 0:00 squid
proxy 27352 0.0 1.1 1183560 11436 ? S 15:34 0:00 (squid-coord-3)
proxy 27353 1.4 1.1 1194112 11792 ? S 15:34 0:02 (squid-disk-2)

Whats the problem with ROCK storage?

George Tepnadze
Received on Wed Sep 26 2012 - 11:42:45 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 27 2012 - 12:00:13 MDT