Re: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No such file or directory

2011-11-23 Thread FredB
Maybe a problem with /var/cache/RockStore-0 directory ? Permission ?


- Mail original -
De: David Touzeau da...@touzeau.eu
À: squid-users@squid-cache.org
Envoyé: Mardi 22 Novembre 2011 17:35:37
Objet: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No 
such file or directory

Dear

I have enabled RockStore on my squid 3.2.0.13-20111027-r11388

has this

workers 2
cache_dir rock /var/cache/RockStore-0 256 max-size=32768
cache_dir rock /var/cache/RockStore-1 256 max-size=32768
cache_dir   ufs /var/cache/squid 2000 16 256

squid claim

2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
file: (2) No such file or directory

but the rock file exists:

 stat /var/cache/RockStore-0/rock
  File: «/var/cache/RockStore-0/rock»
  Size: 268435456   Blocks: 32 IO Block: 4096   fichier
Device: 801h/2049d  Inode: 262542  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1001/   squid)   Gid: ( 1001/   squid)
Access: 2011-11-22 17:16:32.401809206 +0100
Modify: 2011-11-22 17:23:17.601809860 +0100
Change: 2011-11-22 17:25:17.601309064 +0100



Squid Cache (Version 3.2.0.13-20111027-r11388): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.032 user + 0.004 sys
Maximum Resident Size: 31328 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%
Total free:   139 KB 6%



is it a misconfiguration ?

Here it is the full dump sequence :


Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%
Total free:   139 KB 6%
2011/11/22 17:25:28 kid1| Starting Squid Cache version
3.2.0.13-20111027-r11388 for i686-pc-linux-gnu...
2011/11/22 17:25:28 kid1| Process ID 31315
2011/11/22 17:25:28 kid1| Process Roles: worker
2011/11/22 17:25:28 kid1| With 1024 file descriptors available
2011/11/22 17:25:28 kid1| Initializing IP Cache...
2011/11/22 17:25:28 kid1| DNS Socket created at [::], FD 9
2011/11/22 17:25:28 kid1| DNS Socket created at 0.0.0.0, FD 10
2011/11/22 17:25:28 kid1| Adding nameserver 192.168.1.105
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding nameserver 192.168.1.1
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding domain touzeau.com
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding domain touzeau.com
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Logfile: opening log
daemon:/var/log/squid/access.log
2011/11/22 17:25:28 kid1| Logfile Daemon: opening
log /var/log/squid/access.log
2011/11/22 17:25:28 kid1| Logfile: opening log tcp:127.0.0.1:54424
2011/11/22 17:25:28 kid1| Logfile: opening log
daemon:/var/log/squid/sarg.log
2011/11/22 17:25:28 kid1| Logfile Daemon: opening
log /var/log/squid/sarg.log
2011/11/22 17:25:28 kid1| Unlinkd pipe opened on FD 19
2011/11/22 17:25:28 kid1| Local cache digest enabled; rebuild/rewrite
every 3600/3600 sec
2011/11/22 17:25:28 kid1| Logfile: opening log
stdio:/var/log/squid/store.log
2011/11/22 17:25:28 kid1| Swap maxSize 2048000 + 8192 KB, estimated
158168 objects
2011/11/22 17:25:28 kid1| Target number of buckets: 7908
2011/11/22 17:25:28 kid1| Using 8192 Store buckets
2011/11/22 17:25:28 kid1| Max Mem  size: 8192 KB [shared]
2011/11/22 17:25:28 kid1| Max Swap size: 2048000 KB
2011/11/22 17:25:28 kid1| Version 1 of swap file with LFS support
detected...
2011/11/22 17:25:28 kid1| Rebuilding storage in /var/cache/squid (DIRTY)
2011/11/22 17:25:28 kid1| Using Least Load store dir selection
2011/11/22 17:25:28 kid1| Set Current Directory to /var/squid/cache
2011/11/22 17:25:28 kid1| Loaded Icons.
2011/11/22 17:25:28 kid1| HTCP Disabled.
2011/11/22 17:25:28 kid1| Squid plugin modules loaded: 0
2011/11/22 17:25:28 kid1| Adaptation support is off.
2011/11/22 17:25:28 kid1| Ready to serve requests.
2011/11/22 17:25:28 kid1| Done reading /var/cache/squid swaplog (39
entries)
2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
file: (2) No such file or directory
Squid Cache (Version 3.2.0.13-20111027-r11388): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.032 user + 0.004 sys
Maximum Resident Size: 31328 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 

Re: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No such file or directory

2011-11-23 Thread FredB
Please add swap-timeout like this

workers 2
cache_dir rock /cache1 13 max-size=31000 max-swap-rate=250 swap-timeout=350
cache_dir rock /cache2 13 max-size=31000 max-swap-rate=250 swap-timeout=350

Under 250 I have

2011/11/23 09:21:28 kid1| DiskIO/IpcIo/IpcIoFile.cc(137) openCompleted: error: 
timeout
FATAL: Rock cache_dir at /cache1/rock failed to open db file: (111) Connection 
ref


- Mail original -
De: David Touzeau da...@touzeau.eu
À: squid-users@squid-cache.org
Envoyé: Mardi 22 Novembre 2011 17:35:37
Objet: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No 
such file or directory

Dear

I have enabled RockStore on my squid 3.2.0.13-20111027-r11388

has this

workers 2
cache_dir rock /var/cache/RockStore-0 256 max-size=32768
cache_dir rock /var/cache/RockStore-1 256 max-size=32768
cache_dir   ufs /var/cache/squid 2000 16 256

squid claim

2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
file: (2) No such file or directory

but the rock file exists:

 stat /var/cache/RockStore-0/rock
  File: «/var/cache/RockStore-0/rock»
  Size: 268435456   Blocks: 32 IO Block: 4096   fichier
Device: 801h/2049d  Inode: 262542  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1001/   squid)   Gid: ( 1001/   squid)
Access: 2011-11-22 17:16:32.401809206 +0100
Modify: 2011-11-22 17:23:17.601809860 +0100
Change: 2011-11-22 17:25:17.601309064 +0100



Squid Cache (Version 3.2.0.13-20111027-r11388): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.032 user + 0.004 sys
Maximum Resident Size: 31328 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%
Total free:   139 KB 6%



is it a misconfiguration ?

Here it is the full dump sequence :


Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%
Total free:   139 KB 6%
2011/11/22 17:25:28 kid1| Starting Squid Cache version
3.2.0.13-20111027-r11388 for i686-pc-linux-gnu...
2011/11/22 17:25:28 kid1| Process ID 31315
2011/11/22 17:25:28 kid1| Process Roles: worker
2011/11/22 17:25:28 kid1| With 1024 file descriptors available
2011/11/22 17:25:28 kid1| Initializing IP Cache...
2011/11/22 17:25:28 kid1| DNS Socket created at [::], FD 9
2011/11/22 17:25:28 kid1| DNS Socket created at 0.0.0.0, FD 10
2011/11/22 17:25:28 kid1| Adding nameserver 192.168.1.105
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding nameserver 192.168.1.1
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding domain touzeau.com
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding domain touzeau.com
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Logfile: opening log
daemon:/var/log/squid/access.log
2011/11/22 17:25:28 kid1| Logfile Daemon: opening
log /var/log/squid/access.log
2011/11/22 17:25:28 kid1| Logfile: opening log tcp:127.0.0.1:54424
2011/11/22 17:25:28 kid1| Logfile: opening log
daemon:/var/log/squid/sarg.log
2011/11/22 17:25:28 kid1| Logfile Daemon: opening
log /var/log/squid/sarg.log
2011/11/22 17:25:28 kid1| Unlinkd pipe opened on FD 19
2011/11/22 17:25:28 kid1| Local cache digest enabled; rebuild/rewrite
every 3600/3600 sec
2011/11/22 17:25:28 kid1| Logfile: opening log
stdio:/var/log/squid/store.log
2011/11/22 17:25:28 kid1| Swap maxSize 2048000 + 8192 KB, estimated
158168 objects
2011/11/22 17:25:28 kid1| Target number of buckets: 7908
2011/11/22 17:25:28 kid1| Using 8192 Store buckets
2011/11/22 17:25:28 kid1| Max Mem  size: 8192 KB [shared]
2011/11/22 17:25:28 kid1| Max Swap size: 2048000 KB
2011/11/22 17:25:28 kid1| Version 1 of swap file with LFS support
detected...
2011/11/22 17:25:28 kid1| Rebuilding storage in /var/cache/squid (DIRTY)
2011/11/22 17:25:28 kid1| Using Least Load store dir selection
2011/11/22 17:25:28 kid1| Set Current Directory to /var/squid/cache
2011/11/22 17:25:28 kid1| Loaded Icons.
2011/11/22 17:25:28 kid1| HTCP Disabled.
2011/11/22 17:25:28 kid1| Squid plugin modules loaded: 0
2011/11/22 17:25:28 kid1| Adaptation support is off.
2011/11/22 17:25:28 kid1| Ready to serve requests.
2011/11/22 17:25:28 kid1| Done reading /var/cache/squid swaplog (39
entries)
2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at 

Re: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No such file or directory

2011-11-23 Thread FredB


 Please add swap-timeout like this

 workers 2 
 cache_dir rock /cache1 13 max-size=31000 max-swap-rate=250 
 swap-timeout=350
 cache_dir rock /cache2 13 max-size=31000 max-swap-rate=250 
 swap-timeout=350

 Under 250 I have

I meant with max-swap-rate under 250 




Re: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No such file or directory

2011-11-23 Thread Amos Jeffries

On 23/11/2011 9:12 p.m., FredB wrote:

Maybe a problem with /var/cache/RockStore-0 directory ? Permission ?


- Mail original -
De: David Touzeauda...@touzeau.eu
À: squid-users@squid-cache.org
Envoyé: Mardi 22 Novembre 2011 17:35:37
Objet: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No 
such file or directory

Dear

I have enabled RockStore on my squid 3.2.0.13-20111027-r11388

has this

workers 2
cache_dir rock /var/cache/RockStore-0 256 max-size=32768
cache_dir rock /var/cache/RockStore-1 256 max-size=32768
cache_dir   ufs /var/cache/squid 2000 16 256

squid claim

2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
file: (2) No such file or directory

but the rock file exists:

  stat /var/cache/RockStore-0/rock
   File: «/var/cache/RockStore-0/rock»
   Size: 268435456  Blocks: 32 IO Block: 4096   fichier
Device: 801h/2049d  Inode: 262542  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1001/   squid)   Gid: ( 1001/   squid)
Access: 2011-11-22 17:16:32.401809206 +0100
Modify: 2011-11-22 17:23:17.601809860 +0100
Change: 2011-11-22 17:25:17.601309064 +0100



Hmm, yes. I'm a little suspicious about the 755 permission and cannot 
open message.
We have an unresolved bug about Squid reporting its UID wrongly (as 
squid when its still running as whatever UID started the app) which 
could be biting you here.


Amos


Re: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No such file or directory

2011-11-23 Thread David Touzeau
Le mercredi 23 novembre 2011 à 22:40 +1300, Amos Jeffries a écrit :
 On 23/11/2011 9:12 p.m., FredB wrote:
  Maybe a problem with /var/cache/RockStore-0 directory ? Permission ?
 
 
  - Mail original -
  De: David Touzeauda...@touzeau.eu
  À: squid-users@squid-cache.org
  Envoyé: Mardi 22 Novembre 2011 17:35:37
  Objet: [squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / 
  No such file or directory
 
  Dear
 
  I have enabled RockStore on my squid 3.2.0.13-20111027-r11388
 
  has this
 
  workers 2
  cache_dir rock /var/cache/RockStore-0 256 max-size=32768
  cache_dir rock /var/cache/RockStore-1 256 max-size=32768
  cache_dir   ufs /var/cache/squid 2000 16 256
 
  squid claim
 
  2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
  error: timeout
  FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
  file: (2) No such file or directory
 
  but the rock file exists:
 
stat /var/cache/RockStore-0/rock
 File: «/var/cache/RockStore-0/rock»
 Size: 268435456  Blocks: 32 IO Block: 4096   fichier
  Device: 801h/2049d  Inode: 262542  Links: 1
  Access: (0755/-rwxr-xr-x)  Uid: ( 1001/   squid)   Gid: ( 1001/   squid)
  Access: 2011-11-22 17:16:32.401809206 +0100
  Modify: 2011-11-22 17:23:17.601809860 +0100
  Change: 2011-11-22 17:25:17.601309064 +0100
 
 
 Hmm, yes. I'm a little suspicious about the 755 permission and cannot 
 open message.
 We have an unresolved bug about Squid reporting its UID wrongly (as 
 squid when its still running as whatever UID started the app) which 
 could be biting you here.
 
 Amos

Thanks Amos, by waiting the fix how can i resolve this behavior ?




[squid-users] [3.2.0.13]: DiskIO/IpcIo/IpcIoFile.cc for RockStore / No such file or directory

2011-11-22 Thread David Touzeau
Dear 

I have enabled RockStore on my squid 3.2.0.13-20111027-r11388

has this 

workers 2
cache_dir rock /var/cache/RockStore-0 256 max-size=32768
cache_dir rock /var/cache/RockStore-1 256 max-size=32768
cache_dir   ufs /var/cache/squid 2000 16 256

squid claim 

2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
file: (2) No such file or directory

but the rock file exists: 

 stat /var/cache/RockStore-0/rock 
  File: «/var/cache/RockStore-0/rock»
  Size: 268435456   Blocks: 32 IO Block: 4096   fichier
Device: 801h/2049d  Inode: 262542  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1001/   squid)   Gid: ( 1001/   squid)
Access: 2011-11-22 17:16:32.401809206 +0100
Modify: 2011-11-22 17:23:17.601809860 +0100
Change: 2011-11-22 17:25:17.601309064 +0100



Squid Cache (Version 3.2.0.13-20111027-r11388): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.032 user + 0.004 sys
Maximum Resident Size: 31328 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%
Total free:   139 KB 6%



is it a misconfiguration ?

Here it is the full dump sequence :


Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%
Total free:   139 KB 6%
2011/11/22 17:25:28 kid1| Starting Squid Cache version
3.2.0.13-20111027-r11388 for i686-pc-linux-gnu...
2011/11/22 17:25:28 kid1| Process ID 31315
2011/11/22 17:25:28 kid1| Process Roles: worker
2011/11/22 17:25:28 kid1| With 1024 file descriptors available
2011/11/22 17:25:28 kid1| Initializing IP Cache...
2011/11/22 17:25:28 kid1| DNS Socket created at [::], FD 9
2011/11/22 17:25:28 kid1| DNS Socket created at 0.0.0.0, FD 10
2011/11/22 17:25:28 kid1| Adding nameserver 192.168.1.105
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding nameserver 192.168.1.1
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding domain touzeau.com
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Adding domain touzeau.com
from /etc/resolv.conf
2011/11/22 17:25:28 kid1| Logfile: opening log
daemon:/var/log/squid/access.log
2011/11/22 17:25:28 kid1| Logfile Daemon: opening
log /var/log/squid/access.log
2011/11/22 17:25:28 kid1| Logfile: opening log tcp:127.0.0.1:54424
2011/11/22 17:25:28 kid1| Logfile: opening log
daemon:/var/log/squid/sarg.log
2011/11/22 17:25:28 kid1| Logfile Daemon: opening
log /var/log/squid/sarg.log
2011/11/22 17:25:28 kid1| Unlinkd pipe opened on FD 19
2011/11/22 17:25:28 kid1| Local cache digest enabled; rebuild/rewrite
every 3600/3600 sec
2011/11/22 17:25:28 kid1| Logfile: opening log
stdio:/var/log/squid/store.log
2011/11/22 17:25:28 kid1| Swap maxSize 2048000 + 8192 KB, estimated
158168 objects
2011/11/22 17:25:28 kid1| Target number of buckets: 7908
2011/11/22 17:25:28 kid1| Using 8192 Store buckets
2011/11/22 17:25:28 kid1| Max Mem  size: 8192 KB [shared]
2011/11/22 17:25:28 kid1| Max Swap size: 2048000 KB
2011/11/22 17:25:28 kid1| Version 1 of swap file with LFS support
detected... 
2011/11/22 17:25:28 kid1| Rebuilding storage in /var/cache/squid (DIRTY)
2011/11/22 17:25:28 kid1| Using Least Load store dir selection
2011/11/22 17:25:28 kid1| Set Current Directory to /var/squid/cache
2011/11/22 17:25:28 kid1| Loaded Icons.
2011/11/22 17:25:28 kid1| HTCP Disabled.
2011/11/22 17:25:28 kid1| Squid plugin modules loaded: 0
2011/11/22 17:25:28 kid1| Adaptation support is off.
2011/11/22 17:25:28 kid1| Ready to serve requests.
2011/11/22 17:25:28 kid1| Done reading /var/cache/squid swaplog (39
entries)
2011/11/22 17:25:31 kid2| DiskIO/IpcIo/IpcIoFile.cc(132) openCompleted:
error: timeout
FATAL: Rock cache_dir at /var/cache/RockStore-0/rock failed to open db
file: (2) No such file or directory
Squid Cache (Version 3.2.0.13-20111027-r11388): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.032 user + 0.004 sys
Maximum Resident Size: 31328 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena:2448 KB
Ordinary blocks: 2308 KB 14 blks
Small blocks:   0 KB  0 blks
Holding blocks:  1024 KB  4 blks
Free Small blocks:  0 KB
Free Ordinary blocks: 139 KB
Total in use:3332 KB 136%