[squid-users] AdZap: WARNING: Cannot run '/usr/local/bin/squid_redirect' process.

From: Alexander Farber <alexander.farber@dont-contact.us>
Date: Sat, 26 Nov 2005 16:31:15 +0100

Hello,

I'm running Squid 2.5.STABLE12 on OpenBSD -current (i.e. post 3.8) in
transparent mode as described at http://www.benzedrine.cx/transquid.html

It works fine - both as transparent proxy and also if I enter the IP and
port explicitly as the proxy server in the Firefox browser settings.

However when I add 1 line to the /etc/squid/squid.conf:

    redirect_program /usr/local/bin/squid_redirect
or
    redirect_program /usr/local/bin/wrapzap

(both scripts are from http://adzapper.sourceforge.net/ - they are there,
they are executable, the shebang lines are ok and they are in Unix text format).

then I can't telnet to port 8080 anymore, "netstat -an" shows that no processes
are listening at that port and in the /var/squid/logs/cache.log I see:

2005/11/26 16:48:48| Starting Squid Cache version 2.5.STABLE12 for
i386-unknown-openbsd3.8...
2005/11/26 16:48:48| Process ID 18166
2005/11/26 16:48:48| With 1024 file descriptors available
2005/11/26 16:48:48| Performing DNS Tests...
2005/11/26 16:48:48| Successful DNS name lookup tests...
2005/11/26 16:48:48| DNS Socket created at 0.0.0.0, port 7382, FD 4
2005/11/26 16:48:48| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2005/11/26 16:48:48| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2005/11/26 16:48:48| helperOpenServers: Starting 5 'squid_redirect' processes
2005/11/26 16:48:53| WARNING: Cannot run
'/usr/local/bin/squid_redirect' process.

But I don't see what is the reason for that failure. How could I debug
it please?

I looked from the source code of AdZap's squid_redirect, but didn't
see there any files being created (re some permission problems).

Squid on OpenBSD runs as _squid:_squid:

gate:bin {274} ps uawwwx | grep -i squid
_squid 22565 9.2 1.5 4124 5932 ?? S 5:09PM 0:00.19
(squid) -D (squid)
root 31118 0.0 0.1 900 576 ?? Ss 5:09PM 0:00.01 squid -D
_squid 7633 0.0 0.1 152 320 ?? Ss 5:09PM 0:00.07
(unlinkd) (unlinkd)

But the dir and file permissions in /var/squid seem to be fine...

I've also run "sudo squid -NX -d 5 | & tee ~/log.txt" and compared
the outputs with and without redirect_program-line. The latter one stops at:

...
2005/11/26 17:11:18| fd_open FD 0 stdin
2005/11/26 17:11:18| fd_open FD 1 stdout
2005/11/26 17:11:18| fd_open FD 2 stderr
2005/11/26 17:11:18| leave_suid: PID 28801 called
2005/11/26 17:11:18| leave_suid: PID 28801 giving up root, becoming '_squid'
2005/11/26 17:11:18| Starting Squid Cache version 2.5.STABLE12 for
i386-unknown-openbsd3.8...
2005/11/26 17:11:18| Process ID 28801
2005/11/26 17:11:18| With 1024 file descriptors available
2005/11/26 17:11:18| Performing DNS Tests...
2005/11/26 17:11:18| Successful DNS name lookup tests...
2005/11/26 17:11:18| DNS Socket created at 0.0.0.0, port 29927, FD 4
2005/11/26 17:11:18| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2005/11/26 17:11:18| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2005/11/26 17:11:18| helperOpenServers: Starting 5 'squid_redirect' processes

(the full outputs are attached). How do I get more details there?

Regards
Alex

Received on Sat Nov 26 2005 - 08:31:17 MST

This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:10 MST