On Wed, Jan 28, 2009 at 10:28 PM, Chris Robertson <crobertson@xxxxxxx> wrote: > polloxx wrote: >> >> Dear group, >> >> I'm trying to setup a squid proxy server (2.6.5-6etch4) with clamav >> content scanning (0.94.dfsg.2-1~volatile1) on a Debian Etch server. As >> a helper program I use SCAVR 1.8.0. When I start squid it crashes with >> the below messages from syslog. >> In squid.conf I have: >> redirect_program /usr/local/bin/SquidClamAV_Redirector.py -c >> /etc/squid/SquidClamAV_Redirector.conf >> >> What is going wrong here? > > What happens if you run... > > su -c /usr/local/bin/SquidClamAV_Redirector.py\ \-c\ > /etc/squid/SquidClamAV_Redirector.conf ${squid_effective_user} > > ...where ${squid_effective_user} is the account that Squid runs as? > >> Should I use another script between squid and clamav? >> >> Thanks for your help. >> P. >> >> /var/log/syslog: >> >> Jan 28 16:35:27 proxy01 squid[3082]: Squid Parent: child process 3084 >> started >> Jan 28 16:35:27 proxy01 squid[3084]: Starting Squid Cache version >> 2.6.STABLE5 for i386-debian-linux-gnu... >> Jan 28 16:35:27 proxy01 squid[3084]: Process ID 3084 >> Jan 28 16:35:27 proxy01 squid[3084]: With 1024 file descriptors available >> Jan 28 16:35:27 proxy01 squid[3084]: Using epoll for the IO loop >> Jan 28 16:35:27 proxy01 squid[3084]: Performing DNS Tests... >> Jan 28 16:35:28 proxy01 squid[3084]: Successful DNS name lookup tests... >> Jan 28 16:35:28 proxy01 squid[3084]: DNS Socket created at 0.0.0.0, >> port 1026, FD 6 >> Jan 28 16:35:28 proxy01 squid[3084]: Adding nameserver 192.168.100.1 >> from /etc/resolv.conf >> Jan 28 16:35:28 proxy01 squid[3084]: helperOpenServers: Starting 5 >> 'SquidClamAV_Redirector.py' processes >> Jan 28 16:35:28 proxy01 squid[3084]: helperOpenServers: Starting 5 >> 'pam_auth' processes >> Jan 28 16:35:28 proxy01 squid[3084]: User-Agent logging is disabled. >> Jan 28 16:35:28 proxy01 squid[3084]: Referer logging is disabled. >> Jan 28 16:35:28 proxy01 squid[3084]: Unlinkd pipe opened on FD 21 >> Jan 28 16:35:28 proxy01 squid[3084]: Swap maxSize 2048000 KB, >> estimated 157538 objects >> Jan 28 16:35:28 proxy01 squid[3084]: Target number of buckets: 7876 >> Jan 28 16:35:28 proxy01 squid[3084]: Using 8192 Store buckets >> Jan 28 16:35:28 proxy01 squid[3084]: Max Mem size: 8192 KB >> Jan 28 16:35:28 proxy01 squid[3084]: Max Swap size: 2048000 KB >> Jan 28 16:35:28 proxy01 squid[3084]: Local cache digest enabled; >> rebuild/rewrite every 3600/3600 sec >> Jan 28 16:35:28 proxy01 squid[3084]: Rebuilding storage in >> /data/var/squid/spool (DIRTY) >> Jan 28 16:35:28 proxy01 squid[3084]: Using Least Load store dir selection >> Jan 28 16:35:28 proxy01 squid[3084]: Set Current Directory to >> /var/spool/squid >> Jan 28 16:35:28 proxy01 squid[3084]: Loaded Icons. >> Jan 28 16:35:28 proxy01 squid[3084]: Accepting proxy HTTP connections >> at 0.0.0.0, port 8080, FD 23. >> Jan 28 16:35:28 proxy01 squid[3084]: Accepting ICP messages at >> 0.0.0.0, port 3130, FD 24. >> Jan 28 16:35:28 proxy01 squid[3084]: HTCP Disabled. >> Jan 28 16:35:28 proxy01 squid[3084]: WCCP Disabled. >> Jan 28 16:35:28 proxy01 squid[3084]: Ready to serve requests. >> Jan 28 16:35:28 proxy01 squid[3084]: WARNING: url_rewriter #5 (FD 11) >> exited >> Jan 28 16:35:28 proxy01 squid[3084]: WARNING: url_rewriter #4 (FD 10) >> exited >> Jan 28 16:35:28 proxy01 squid[3084]: WARNING: url_rewriter #3 (FD 9) >> exited >> Jan 28 16:35:28 proxy01 squid[3084]: Too few url_rewriter processes are >> running >> Jan 28 16:35:28 proxy01 squid[3084]: The url_rewriter helpers are >> crashing too rapidly, need help! >> > > You need to figure out why... > >> Jan 28 16:35:28 proxy01 squid[3082]: Squid Parent: child process 3084 >> exited due to signal 6 >> > > > Chris > Thanks for your answer Chris. I had to use the syntax like: su -c "/usr/local/bin/SquidClamAV_Redirector.py -c /etc/squid/SquidClamAV_Redirector.conf" proxy Than I saw that I was missing libclamav2. After installing this libary squid didn't crash anymore, but does nothing at all. doing su -c "/usr/local/bin/SquidClamAV_Redirector.py -c /etc/squid/SquidClamAV_Redirector.conf" proxy results in a waiting cursor, until I press ctrl-C. Any ideas? Thank you, P.