LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid FATAL: The basic authenticator helpers are crashing too rapidly, need help!!! (https://www.linuxquestions.org/questions/linux-server-73/squid-fatal-the-basic-authenticator-helpers-are-crashing-too-rapidly-need-help-855806/)

linuxlover.chaitanya 01-12-2011 07:19 AM

Squid FATAL: The basic authenticator helpers are crashing too rapidly, need help!!!
 
Hello all,
Running Squid version 2.6.STABLE21 on CentOS5 release 5.5 (Final) in non transparent mode. All the browsers are configured to connect to the squid on the said port. And that is working fine in conjunction with dansguardian.
Now I want to integrate ncsa_auth basic authentication mechanism into squid. And the error is what is mentioned in the thread title.
Here is cache.out file contents:
Code:

2011/01/12 18:16:14| Starting Squid Cache version 2.6.STABLE21 for i686-redhat-linux-gnu...
2011/01/12 18:16:14| Process ID 29318
2011/01/12 18:16:14| With 1024 file descriptors available
2011/01/12 18:16:14| Using epoll for the IO loop
2011/01/12 18:16:14| DNS Socket created at 0.0.0.0, port 52054, FD 6
2011/01/12 18:16:14| Adding domain ib.com.local from /etc/resolv.conf
2011/01/12 18:16:14| Adding domain ib from /etc/resolv.conf
2011/01/12 18:16:14| Adding domain localdomain from /etc/resolv.conf
2011/01/12 18:16:14| Adding nameserver 192.168.2.2 from /etc/resolv.conf
2011/01/12 18:16:14| Adding nameserver 202.54.29.5 from /etc/resolv.conf
2011/01/12 18:16:14| Adding nameserver 202.54.10.2 from /etc/resolv.conf
2011/01/12 18:16:14| helperOpenServers: Starting 5 'squidclamav' processes
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
2011/01/12 18:16:14| helperOpenServers: Starting 10 'ncsa_auth' processes
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
2011/01/12 18:16:14| User-Agent logging is disabled.
2011/01/12 18:16:14| Referer logging is disabled.
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
2011/01/12 18:16:14| Unlinkd pipe opened on FD 26
2011/01/12 18:16:14| Swap maxSize 102400 + 8192 KB, estimated 0 objects
2011/01/12 18:16:14| Target number of buckets: 425
2011/01/12 18:16:14| Using 8192 Store buckets
2011/01/12 18:16:14| Max Mem  size: 8192 KB
2011/01/12 18:16:14| Max Swap size: 102400 KB
2011/01/12 18:16:14| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/01/12 18:16:14| Rebuilding storage in /var/spool/squid (DIRTY)
2011/01/12 18:16:14| Using Least Load store dir selection
2011/01/12 18:16:14| Set Current Directory to /var/spool/squid
2011/01/12 18:16:14| Loaded Icons.
2011/01/12 18:16:15| Accepting proxy HTTP connections at 192.168.2.1, port 3128, FD 28.
2011/01/12 18:16:15| Accepting ICP messages at 0.0.0.0, port 3130, FD 29.
2011/01/12 18:16:15| WCCP Disabled.
2011/01/12 18:16:15| Ready to serve requests.
2011/01/12 18:16:15| WARNING: basicauthenticator #10 (FD 21) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #9 (FD 20) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #8 (FD 19) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #7 (FD 18) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #6 (FD 17) exited
2011/01/12 18:16:15| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!

Squid Cache (Version 2.6.STABLE21): Terminated abnormally.


Sayan Acharjee 01-13-2011 12:33 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 4221602)
Hello all,
Running Squid version 2.6.STABLE21 on CentOS5 release 5.5 (Final) in non transparent mode. All the browsers are configured to connect to the squid on the said port. And that is working fine in conjunction with dansguardian.
Now I want to integrate ncsa_auth basic authentication mechanism into squid. And the error is what is mentioned in the thread title.
Here is cache.out file contents:
Code:

2011/01/12 18:16:14| Starting Squid Cache version 2.6.STABLE21 for i686-redhat-linux-gnu...
2011/01/12 18:16:14| Process ID 29318
2011/01/12 18:16:14| With 1024 file descriptors available
2011/01/12 18:16:14| Using epoll for the IO loop
2011/01/12 18:16:14| DNS Socket created at 0.0.0.0, port 52054, FD 6
2011/01/12 18:16:14| Adding domain ib.com.local from /etc/resolv.conf
2011/01/12 18:16:14| Adding domain ib from /etc/resolv.conf
2011/01/12 18:16:14| Adding domain localdomain from /etc/resolv.conf
2011/01/12 18:16:14| Adding nameserver 192.168.2.2 from /etc/resolv.conf
2011/01/12 18:16:14| Adding nameserver 202.54.29.5 from /etc/resolv.conf
2011/01/12 18:16:14| Adding nameserver 202.54.10.2 from /etc/resolv.conf
2011/01/12 18:16:14| helperOpenServers: Starting 5 'squidclamav' processes
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
2011/01/12 18:16:14| helperOpenServers: Starting 10 'ncsa_auth' processes
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
Wed Jan 12 18:16:14 2011 LOG Reading configuration from /etc/squidclamav.conf
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
2011/01/12 18:16:14| User-Agent logging is disabled.
2011/01/12 18:16:14| Referer logging is disabled.
cannot stat /etc/squid/password/.htpasswd
cannot stat /etc/squid/password/.htpasswd
2011/01/12 18:16:14| Unlinkd pipe opened on FD 26
2011/01/12 18:16:14| Swap maxSize 102400 + 8192 KB, estimated 0 objects
2011/01/12 18:16:14| Target number of buckets: 425
2011/01/12 18:16:14| Using 8192 Store buckets
2011/01/12 18:16:14| Max Mem  size: 8192 KB
2011/01/12 18:16:14| Max Swap size: 102400 KB
2011/01/12 18:16:14| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/01/12 18:16:14| Rebuilding storage in /var/spool/squid (DIRTY)
2011/01/12 18:16:14| Using Least Load store dir selection
2011/01/12 18:16:14| Set Current Directory to /var/spool/squid
2011/01/12 18:16:14| Loaded Icons.
2011/01/12 18:16:15| Accepting proxy HTTP connections at 192.168.2.1, port 3128, FD 28.
2011/01/12 18:16:15| Accepting ICP messages at 0.0.0.0, port 3130, FD 29.
2011/01/12 18:16:15| WCCP Disabled.
2011/01/12 18:16:15| Ready to serve requests.
2011/01/12 18:16:15| WARNING: basicauthenticator #10 (FD 21) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #9 (FD 20) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #8 (FD 19) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #7 (FD 18) exited
2011/01/12 18:16:15| WARNING: basicauthenticator #6 (FD 17) exited
2011/01/12 18:16:15| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!

Squid Cache (Version 2.6.STABLE21): Terminated abnormally.


Looks like an authentication error, may be the passwd file is not readble by the user account that squid is trying to use? :confused:

linuxlover.chaitanya 01-13-2011 01:04 AM

No. That is not the error. passwd file is readable by squid user. It is world readable.

linuxlover.chaitanya 01-13-2011 01:08 AM

And this is what I see if I try to manually run the authenticator for the command line
Code:

[root@squid passwords]# /usr/lib/squid/ncsa_auth /etc/squid/passwords/.htpasswd
 
ERR

ERR

ERR

ERR


linuxlover.chaitanya 01-13-2011 03:55 AM

I think there is no limit to ones stupidness. If there is, then I am an exception. Sorry solved the issue. The error was due to the spelling mistake of the directory name where password file resides. :o :doh: :banghead:

mmma 08-03-2017 06:38 AM

the splash_page helpers are crashing too rapidly need help
 
hi,
i am trying to configure squid proxy server and set up a splash page the moment browser is opened.

i have configured my /etc/squid3/squid.conf file as following :

acl localnet src 10.0.2.0/16
acl localnet src 10.0.3.0/16

acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128
coredump_dir /var/spool/squid

## addition for splash page passive##

external_acl_type splash_page ttl=60 concurrency=100 %SRC /usr/lib/squid/ext_session_acl -t 7200 -b /var/run/squid/session.db
acl existing_users external splash_page
http_access deny !existing_users
deny_info 511:/usr/share/nginx/html/splash.html existing_users

but i am getting the following error:

sudo squid3 -NDd1
2017/08/03 16:42:45| WARNING: -D command-line option is obsolete.
2017/08/03 16:42:45| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '10.0.2.0/16'
2017/08/03 16:42:45| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '10.0.3.0/16'
2017/08/03 16:42:45| WARNING: (B) '10.0.0.0/16' is a subnetwork of (A) '10.0.0.0/16'
2017/08/03 16:42:45| WARNING: because of this '10.0.0.0/16' is ignored to keep splay tree searching predictable
2017/08/03 16:42:45| WARNING: You should probably remove '10.0.0.0/16' from the ACL named 'localnet'
2017/08/03 16:42:45| WARNING: (B) '10.0.0.0/16' is a subnetwork of (A) '10.0.0.0/8'
2017/08/03 16:42:45| WARNING: because of this '10.0.0.0/8' is ignored to keep splay tree searching predictable
2017/08/03 16:42:45| WARNING: You should probably remove '10.0.0.0/16' from the ACL named 'localnet'
2017/08/03 16:42:45| Starting Squid Cache version 3.3.8 for x86_64-pc-linux-gnu...
2017/08/03 16:42:45| Process ID 7070
2017/08/03 16:42:45| Process Roles: master worker
2017/08/03 16:42:45| With 65536 file descriptors available
2017/08/03 16:42:45| Initializing IP Cache...
2017/08/03 16:42:45| DNS Socket created at [::], FD 5
2017/08/03 16:42:45| DNS Socket created at 0.0.0.0, FD 6
2017/08/03 16:42:45| Warning: Could not find any nameservers. Trying to use localhost
2017/08/03 16:42:45| Please check your /etc/resolv.conf file
2017/08/03 16:42:45| or use the 'dns_nameservers' option in squid.conf.
2017/08/03 16:42:45| helperOpenServers: Starting 5/5 'ext_session_acl' processes
2017/08/03 16:42:45| Logfile: opening log daemon:/var/log/squid3/access.log
2017/08/03 16:42:45| Logfile Daemon: opening log /var/log/squid3/access.log
2017/08/03 16:42:45| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/08/03 16:42:45| Store logging disabled
2017/08/03 16:42:45| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/08/03 16:42:45| Target number of buckets: 1008
2017/08/03 16:42:45| Using 8192 Store buckets
2017/08/03 16:42:45| Max Mem size: 262144 KB
2017/08/03 16:42:45| Max Swap size: 0 KB
2017/08/03 16:42:45| Using Least Load store dir selection
2017/08/03 16:42:45| chdir: /var/spool/squid: (2) No such file or directory
2017/08/03 16:42:45| Current Directory is /usr/lib/squid
2017/08/03 16:42:45| Loaded Icons.
2017/08/03 16:42:45| HTCP Disabled.
2017/08/03 16:42:45| Pinger socket opened on FD 21
2017/08/03 16:42:45| Configuring Parent 10.0.0.2/3128/0
2017/08/03 16:42:45| Squid plugin modules loaded: 0
2017/08/03 16:42:45| Adaptation support is off.
2017/08/03 16:42:45| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 19 flags=9
2017/08/03 16:42:45| WARNING: splash_page #3 exited
2017/08/03 16:42:45| Too few splash_page processes are running (need 1/5)
2017/08/03 16:42:45| Closing HTTP port [::]:3128
2017/08/03 16:42:45| storeDirWriteCleanLogs: Starting...
2017/08/03 16:42:45| Finished. Wrote 0 entries.
2017/08/03 16:42:45| Took 0.00 seconds ( 0.00 entries/sec).
FATAL: The splash_page helpers are crashing too rapidly, need help!

2017/08/03 16:42:45| Closing Pinger socket on FD 21


Any help is welcome...


All times are GMT -5. The time now is 12:03 AM.