Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.