[squid-users] Problems configuring Squid with C-ICAP+Squidclamav

C. L. Martinez carlopmart at gmail.com
Thu May 12 07:54:13 UTC 2016


On Wed 11.May'16 at 21:53:13 +0600, Yuri Voinov wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>  
> Try to increase debug level in c_icap.conf:
> 
> # TAG: DebugLevel
> # Format: DebugLevel level
> # Description:
> #    The level of debugging information to be logged.
> #    The acceptable range of levels is between 0 and 10.
> # Default:
> #    DebugLevel 1
> DebugLevel 3
> 
> and look at c_icap server log again.
> 
> 
Thanks Yuri. I have enabled debug, but nothing:

root at obsd:/var/log/c-icap# c-icap -N -D -d 10
Setting parameter :-d=10
Searching 0x109580a21bb8 for default value
Setting parameter :PidFile=/var/run/c-icap/c-icap.pid
Searching 0x109580a21bc0 for default value
Setting parameter :CommandsSocket=/var/run/c-icap/c-icap.ctl
Searching 0x109580a21b38 for default value
Setting parameter :Timeout=300
Searching 0x109580a21b40 for default value
Setting parameter :MaxKeepAliveRequests=100
Searching 0x109580a21b3c for default value
Setting parameter :KeepAliveTimeout=600
Searching 0x109580a21c10 for default value
Setting parameter :StartServers=3
Searching 0x109580a21c14 for default value
Setting parameter :MaxServers=10
Searching 0x109580a21c1c for default value
Setting parameter :MinSpareThreads=10
Searching 0x109580a21c20 for default value
Setting parameter :MaxSpareThreads=20
Searching 0x109580a21c18 for default value
Setting parameter :ThreadsPerChild=10
Searching 0x109580a21b4c for default value
Setting parameter :MaxRequestsPerChild=0
Searching 0x109580a21ba8 for default value
Setting parameter :Port=1344
Searching 0x109580a21c00 for default value
Setting parameter :ServerAdmin=squid at domain.com
Searching 0x109580a21bb0 for default value
Setting parameter :TmpDir=/var/tmp
Searching 0x1097e5919290 for default value
Setting parameter :MaxMemObject=131072
Searching 0x109580a21b60 for default value
Setting parameter :Pipelining=1
Searching 0x109580a21b64 for default value
Setting parameter :SupportBuggyClients=0
Searching 0x109580a21bf8 for default value
Setting parameter :ModulesDir=/usr/local/lib/c_icap
Searching 0x109580a21bf0 for default value
Setting parameter :ServicesDir=/usr/local/lib/c_icap
Searching 0x1097e591a698 for default value
Setting parameter :TemplateDir=/usr/local/share/c_icap/templates/
Searching 0x1097e591a6c0 for default value
Setting parameter :TemplateDefaultLanguage=en
The db file /etc/c-icap/c-icap.magic is the same as default. Ignoring...
Searching 0x109580a22408 for default value
Setting parameter :RemoteProxyUsers=0
Searching 0x109580a22440 for default value
Setting parameter :RemoteProxyUserHeader=X-Authenticated-User
Searching 0x109580a2240c for default value
Setting parameter :RemoteProxyUserHeaderEncoded=1
Adding to acl localhost the data 127.0.0.1/255.255.255.255
In search specs list 0x0,name localhost
New ACL with name:localhost and  ACL Type: src
Adding to acl ALLREQUESTS the data RESPMOD
In search specs list 0x10978ca90b00,name ALLREQUESTS
Checking name:ALLREQUESTS with specname localhost
Adding to acl ALLREQUESTS the data REQMOD
In search specs list 0x10978ca90b00,name ALLREQUESTS
Checking name:ALLREQUESTS with specname localhost
Checking name:ALLREQUESTS with specname ALLREQUESTS
New ACL with name:ALLREQUESTS and  ACL Type: type
Creating new access entry as allow with specs:
In search specs list 0x10978ca90b00,name localhost
Checking name:localhost with specname localhost
In search specs list 0x10978ca90b00,name localhost
Checking name:localhost with specname localhost
        Adding acl spec: localhost
In search specs list 0x10978ca90b00,name ALLREQUESTS
Checking name:ALLREQUESTS with specname localhost
Checking name:ALLREQUESTS with specname ALLREQUESTS
In search specs list 0x10978ca90b00,name ALLREQUESTS
Checking name:ALLREQUESTS with specname localhost
Checking name:ALLREQUESTS with specname ALLREQUESTS
        Adding acl spec: ALLREQUESTS
Creating new access entry as deny with specs:
In search specs list 0x10978ca90b00,name all
Checking name:all with specname localhost
Checking name:all with specname ALLREQUESTS
In search specs list 0x10978ca90b00,name all
Checking name:all with specname localhost
Checking name:all with specname ALLREQUESTS
The acl spec all does not exists!
        Adding acl spec: all
Adding the logformat myFormat: %tl, %a %im %iu %is %I %O %Ib %Ob %{10}bph
Searching 0x109580a22678 for default value
Setting parameter :ServerLog=/var/log/c-icap/server.log
Adding the access logfile /var/log/c-icap/access.log
Setting parameter :Logger=file_logger
Loading service :echo path srv_echo.so
Found handler C_handler for service with extension:.so
Initialization of echo module......
Registering conf table:echo
Warning, alias is the same as service_name, not adding
Loading service :logger path sys_logger.so
Registering conf table:sys_logger
Loading service :squidclamav path squidclamav.so
Found handler C_handler for service with extension:.so
squidclamav.c(183) squidclamav_init_service: DEBUG Going to initialize squidclamav
squidclamav.c(708) set_istag: DEBUG setting istag to -1-squidclamav-10
Command squidclamav:cfgreload registered
LOG Reading configuration from /etc/squidclamav.conf
LOG Reading directive maxsize with value 5000000
LOG Reading directive redirect with value http://proxy.domain.dom/cgi-bin/clwarn.cgi
LOG Reading directive clamd_ip with value 127.0.0.1
LOG Reading directive clamd_port with value 3310
LOG Reading directive timeout with value 1
LOG Reading directive logredir with value 0
LOG Reading directive dnslookup with value 1
LOG Reading directive safebrowsing with value 0
Registering conf table:squidclamav
Warning, alias is the same as service_name, not adding
My hostname is:obsd.domain.com
Command relog registered
squidclamav.c(258) squidclamav_post_init_service: DEBUG squidguard not defined, good
Create shared mem, qsize=20 stat_block_size=560 childshared data:1120
Command stop registered
Command reconfigure registered
Command dump_statistics registered
pool hits:0 allocations: 3
Geting buffer from pool 992:15
Command test registered
Register in shared mem, qsize=20 stat_block_size=560 childshared data:1120
Register in shared mem, qsize=20 stat_block_size=560 childshared data:1120
Register in shared mem, qsize=20 stat_block_size=560 childshared data:1120
Going to execute child commands
Going to execute child commands
Going to execute child commands
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Waiting for a request....
Check command:test, type: 3 
Check command:test, type: 3 
Check command:test, type: 3 
Waiting for a request....
Waiting for a request....
Waiting for a request....
Check command:dump_statistics, type: 1 
Check command:dump_statistics, type: 1 
Check command:reconfigure, type: 1 
Check command:stop, type: 1 
Check command:relog, type: 3 
Check command:squidclamav:cfgreload, type: 3 
Check command:dump_statistics, type: 1 
Check command:reconfigure, type: 1 
Check command:stop, type: 1 
Check command:relog, type: 3 
Check command:squidclamav:cfgreload, type: 3 
Check command:reconfigure, type: 1 
Check command:stop, type: 1 
Check command:relog, type: 3 
Check command:squidclamav:cfgreload, type: 3 
Child 23458 getting requests now ...
Server stats: 
         Children: 3
         Free servers: 30
        Used servers:0
        Requests served:0
Going to execute child commands
Going to execute child commands
Going to execute child commands
Server stats: 
         Children: 3
         Free servers: 30
        Used servers:0
        Requests served:0
Going to execute child commands
Going to execute child commands
Going to execute child commands
Server stats: 
         Children: 3
         Free servers: 30
        Used servers:0
        Requests served:0
Going to execute child commands
Going to execute child commands
Going to execute child commands
Server stats: 
         Children: 3
         Free servers: 30
        Used servers:0
        Requests served:0
Going to execute child commands
Going to execute child commands
Going to execute child commands
Server stats: 
         Children: 3
         Free servers: 30
        Used servers:0
        Requests served:0

 I don't see any errors ... Maybe squid can't connect to ICAP service?? But all services are running in the same machine....
-- 
Greetings,
C. L. Martinez


More information about the squid-users mailing list