Dear all,
I use squid on my personal computer to provide HTTP proxy service to my
friends at college. I'm not a sysadmin --- just using squid occasionally
when necessary. I use a basic authenticator module written in Perl by
Thomas Börnert "squidauth.pl" <http://www.tbits.org/html/squidauth.html>.
The problem was like this. I recently upgraded my squid version from 2.6
to 3.0 after an OS upgrade. Back in the 2.6 days the module worked fine.
After I ported the authentication part of my squid.conf to the 3.0
version, it stopped working. After the squid service was started, the
authenticator processes got terminated unexpectedly. I looked at my logs
and found the suspicious lines (from /var/log/squid/cache.log):
[ omitted: squid initializing ]
2008/05/18 03:21:49| helperOpenServers: Starting 5 'squidauth.pl' processes
2008/05/18 03:21:49| ipcCreate: /usr/lib/squid/squidauth.pl: (13)
Permission denied
2008/05/18 03:21:49| ipcCreate: /usr/lib/squid/squidauth.pl: (13)
Permission denied
2008/05/18 03:21:49| ipcCreate: /usr/lib/squid/squidauth.pl: (13)
Permission denied
2008/05/18 03:21:49| ipcCreate: /usr/lib/squid/squidauth.pl: (13)
Permission denied
2008/05/18 03:21:49| ipcCreate: /usr/lib/squid/squidauth.pl: (13)
Permission denied
[ ... stuff omitted ...]
2008/05/18 03:21:49| Accepting HTTP connections at 0.0.0.0, port 3128,
FD 19.
2008/05/18 03:21:49| Accepting ICP messages at 0.0.0.0, port 3130, FD 20.
2008/05/18 03:21:49| HTCP Disabled.
2008/05/18 03:21:49| Ready to serve requests.
2008/05/18 03:21:49| WARNING: basicauthenticator #1 (FD 8) exited
2008/05/18 03:21:49| WARNING: basicauthenticator #2 (FD 9) exited
2008/05/18 03:21:49| WARNING: basicauthenticator #3 (FD 10) exited
2008/05/18 03:21:49| WARNING: basicauthenticator #4 (FD 11) exited
2008/05/18 03:21:49| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 3.0.STABLE2): Terminated abnormally.
CPU Usage: 0.059 seconds = 0.041 user + 0.018 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 3380 KB
Ordinary blocks: 3329 KB 3 blks
Small blocks: 0 KB 0 blks
Holding blocks: 1972 KB 9 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 51 KB
Total in use: 5301 KB 157%
Total free: 51 KB 2%
[end of log]
This strange behavior was not encountered with the 2.6 version. I have
no idea about the ipcCreate failures. I have offline-tested the
authenticator which turned out to be working properly.
I'd be glad to hear your suggestions.
Thanks in advance.
Cong.
Received on Sun May 18 2008 - 03:56:41 MDT
This archive was generated by hypermail 2.2.0 : Tue Aug 05 2008 - 01:05:13 MDT