Discussion:
[squid-users] squid on openwrt: aclhelper wrongly considered exited
reinerotto
2018-10-14 17:17:41 UTC
Permalink
Running squid 4.3 on openwrt, I notice following warnings from time to time:

2018/10/14 16:36:39 kid1| WARNING: helper.sh #Hlpr2 exited
2018/10/14 16:36:39 kid1| Too few helper processes are running (need 1/5)
2018/10/14 16:36:39 kid1| Starting new helpers
2018/10/14 16:36:39 kid1| helperOpenServers: Starting 1/5 'helper.sh'
processes

which causes a new helper process to be created.

Howver, the process considered to have exited is still alive, according to
"ps".
I can kill it manually, not causing a new warning again.

Any idea, which debug level to activate, to get some more info ?
Because of limited resources, not too generous debugs, pls.




--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
Alex Rousskov
2018-10-14 18:27:19 UTC
Permalink
Post by reinerotto
2018/10/14 16:36:39 kid1| WARNING: helper.sh #Hlpr2 exited
2018/10/14 16:36:39 kid1| Too few helper processes are running (need 1/5)
2018/10/14 16:36:39 kid1| Starting new helpers
2018/10/14 16:36:39 kid1| helperOpenServers: Starting 1/5 'helper.sh'
processes
which causes a new helper process to be created.
Howver, the process considered to have exited is still alive, according to
"ps". I can kill it manually, not causing a new warning again.
IIRC, squid does not monitor helper processes as such. Squid monitors
helper standard output stream (that output stream closure is interpreted
by Squid as helper exit). Also, Squid closes helper standard input
stream as a signal to the helper that the helper should exit.
Post by reinerotto
Any idea, which debug level to activate, to get some more info ?
Because of limited resources, not too generous debugs, pls.
You can start with

debug_options ALL,2 54,5 84,5

If this is your own helper, then check that it does not close its
standard output except when exiting.


HTH,

Alex.

Loading...