[squid-users] worker per cache_dir

Amos Jeffries squid3 at treenet.co.nz
Sat Jun 6 01:48:25 UTC 2015


On 6/06/2015 12:26 p.m., Marcel Fossua wrote:
> Hi Amos 
> any hints to help me with this issue 
> I not able to set more than on cache_dir per worker because
> it's alway end up with errors  (but no errors appears if only one cache_dir
> is set per worker)
> 
> 
> 2015/06/06 01:36:09 kid7| Starting eCAP service:
> ecap://www.vigos.com/ecap_gzip
> 2015/06/06 01:36:09 kid7| commBind: Cannot bind socket FD 9 to [::]: (13)
> Permission denied
> 2015/06/06 01:36:09 kid6| commBind: Cannot bind socket FD 21 to [::]: (13)
> Permission denied

These are a Squid process not being able to open /dev/shm UDS sockets.

> 2015/06/06 01:36:09 kid6| Store rebuilding is 0.00% complete
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-cf__metadata.shm):
> (2) No such file or directory
> 
> Squid Cache (Version 3.5.5): Terminated abnormally.
> CPU Usage: 0.016 seconds = 0.016 user + 0.000 sys
> Maximum Resident Size: 31344 KB
> Page faults with physical i/o: 0
> 2015/06/06 01:36:14 kid6| Store rebuilding is 43.40% complete
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-cf__metadata.shm):
> (2) No such file or directory
> 
> Squid Cache (Version 3.5.5): Terminated abnormally.
> CPU Usage: 0.016 seconds = 0.016 user + 0.000 sys
> Maximum Resident Size: 31328 KB
> Page faults with physical i/o: 0
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-cf__metadata.shm):
> (2) No such file or directory
> 
> Squid Cache (Version 3.5.5): Terminated abnormally.
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-cf__metadata.shm):
> (2) No such file or directory
> 

These ones are the result of /dev/shm UDS sockets not existing.

Check the /dev/shm has write permission for everyone. And that Squid is
fully shutdown and restarted (not just reconfigured). And that no other
Squid process is already running - that includes a previous "squid -z".

Amos


More information about the squid-users mailing list