[squid-users] CHROOT Problems Part II

Casey Daniels mailinglist at cd.kcfam.net
Fri May 8 19:35:56 UTC 2015


I managed to get most of the errors cleaned up, in a LONG and TEDIOUS 
process, however when I assumed fixing one error would fix another error 
was wrong.  I'm still getting the following error.

logfileHandleWrite: daemon:/usr/local/squid/var/logs/access.log: error 
writing ((32) Broken pipe)

It only happens in the CHROOT environment.  If i take that directive 
out, squid works, if I put it in, it breaks and gives me this error.

Any help would be much appreciative.

Casey

On 05/01/2015 08:52 PM, Casey Daniels wrote:
> Hello,
>  I'm trying to get squid up and running under a CHROOT (which by the 
> way the instructions on wiki appear to point to a lot of directories 
> that are different if you compile and install with out changing anything)
>
> Prior to attempting the CHROOT I had Squid running fine, however there 
> appears to be some issues now that I'm running under chroot.
>
> Here is my log file
>
> <---- START LOG----->
>
> 2015/05/01 20:33:21| Starting Squid Cache version 3.3.9 for 
> x86_64-unknown-linux-gnu...
> 2015/05/01 20:33:21| Process ID 3095
> 2015/05/01 20:33:21| Process Roles: master worker
> 2015/05/01 20:33:21| With 1024 file descriptors available
> 2015/05/01 20:33:21| Initializing IP Cache...
> 2015/05/01 20:33:21| DNS Socket created at [::], FD 5
> 2015/05/01 20:33:21| DNS Socket created at 0.0.0.0, FD 6
> 2015/05/01 20:33:21| Adding domain kcfam.net from /etc/resolv.conf
> 2015/05/01 20:33:21| Adding nameserver [::1] from /etc/resolv.conf
> 2015/05/01 20:33:21| WARNING: rejecting '[::1]' as a name server, 
> because it is not a numeric IP address
> 2015/05/01 20:33:21| Adding nameserver 127.0.0.1 from /etc/resolv.conf
> 2015/05/01 20:33:21| Logfile: opening log 
> daemon:/usr/local/squid/var/logs/access.log
> 2015/05/01 20:33:21| Logfile Daemon: opening log 
> /usr/local/squid/var/logs/access.log
> 2015/05/01 20:33:21| ipcCreate: 
> /usr/local/squid/libexec/log_file_daemon: (2) No such file or directory
> 2015/05/01 20:33:21| ipcCreate: 
> /usr/local/squid/libexec/log_file_daemon: (2) No such file or directory
> 2015/05/01 20:33:21| Local cache digest enabled; rebuild/rewrite every 
> 3600/3600 sec
> 2015/05/01 20:33:21| Store logging disabled
> 2015/05/01 20:33:21| Swap maxSize 0 + 262144 KB, estimated 20164 objects
> 2015/05/01 20:33:21| Target number of buckets: 1008
> 2015/05/01 20:33:21| Using 8192 Store buckets
> 2015/05/01 20:33:21| Max Mem  size: 262144 KB
> 2015/05/01 20:33:21| Max Swap size: 0 KB
> 2015/05/01 20:33:21| Using Least Load store dir selection
> 2015/05/01 20:33:21| Set Current Directory to 
> /usr/local/squid/var/cache/squid
> 2015/05/01 20:33:21| Loaded Icons.
> 2015/05/01 20:33:21| HTCP Disabled.
> 2015/05/01 20:33:21| Pinger socket opened on FD 11
> 2015/05/01 20:33:21| Squid plugin modules loaded: 0
> 2015/05/01 20:33:21| ipcCreate: /usr/local/squid/libexec/pinger: (2) 
> No such file or directory
> 2015/05/01 20:33:21| ipcCreate: /usr/local/squid/libexec/pinger: (2) 
> No such file or directory
> 2015/05/01 20:33:21| Adaptation support is off.
> 2015/05/01 20:33:21| Accepting HTTP Socket connections at 
> local=[::]:3128 remote=[::] FD 9 flags=9
> 2015/05/02 00:33:22| logfileHandleWrite: 
> daemon:/usr/local/squid/var/logs/access.log: error writing ((32) 
> Broken pipe)
> 2015/05/02 00:33:22| Closing HTTP port [::]:3128
> 2015/05/02 00:33:22| storeDirWriteCleanLogs: Starting...
> 2015/05/02 00:33:22|   Finished.  Wrote 0 entries.
> 2015/05/02 00:33:22|   Took 0.00 seconds (  0.00 entries/sec).
> FATAL: I don't handle this error well!
> Squid Cache (Version 3.3.9): Terminated abnormally.
> CPU Usage: 0.019 seconds = 0.013 user + 0.006 sys
> Maximum Resident Size: 49008 KB
> Page faults with physical i/o: 0
> Memory usage for squid via mallinfo():
>     total space in arena:    4764 KB
>     Ordinary blocks:         4694 KB      4 blks
>     Small blocks:               0 KB      1 blks
>     Holding blocks:          1324 KB      4 blks
>     Free Small blocks:          0 KB
>     Free Ordinary blocks:      69 KB
>     Total in use:            6018 KB 126%
>     Total free:                69 KB 1%
> 2015/05/02 00:33:22| Closing Pinger socket on FD 11
>
> <--- END LOG --->
>
> I see three errors.
>
> Number 1
> 2015/05/01 20:33:21| ipcCreate: /usr/local/squid/libexec/pinger: (2) 
> No such file or directory
>
> Number 2
> 2015/05/01 20:33:21| ipcCreate: 
> /usr/local/squid/libexec/log_file_daemon: (2) No such file or directory
>
> Number 3
> 2015/05/02 00:33:22| logfileHandleWrite: 
> daemon:/usr/local/squid/var/logs/access.log: error writing ((32) 
> Broken pipe)
>
>
> Not knowing much about the inter workings of squid, and what not, but 
> I'm guessing that Number 3 will be resolved when Number 2 is resolved. 
> And Number 1 and 2 are closely related.
>
> The issue is I'm at a stand still have to proceed with fixing Number 1 
> and 2.
> my chroot directive is
>
> chroot /srv/squid
>
> and I've copied all of the /usr/local/squid/libexec/ to 
> /srv/squid/usr/local/squid/libexec
>
> So i believe I have it in the right place.  And the file permissions 
> appear to be the same within the CHROOT as they are in the normal 
> directories.
>
> Any Ideas?
>
> Casey
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list