<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA256 <br>
<br>
First check c-icap log.<br>
<br>
<br>
/var/log/c-icap/server.log<br>
<br>
<br>
11.05.16 20:41, C. L. Martinez пишет:<br>
<span style="white-space: pre;">> Hi all,<br>
><br>
> I am installing a new squid proxy server under OpenBSD 5.9
with C-ICAP+Squidclamav, and I am having some troubles. When squid
start up and I request some web page, it is returning the
following error:<br>
><br>
> 2016/05/11 14:22:06 kid1| essential ICAP service is down
after an options fetch failure: icap://localhost:1344/squidclamav
[down,!opt]<br>
> 2016/05/11 14:23:54 kid1| suspending ICAP service for too
many failures<br>
><br>
> I've read Squid's wiki page about this and I don't see any
error in my config. Squid's config is:<br>
><br>
> icap_enable on<br>
> icap_send_client_ip on<br>
> icap_send_client_username on<br>
> icap_client_username_header X-Authenticated-User<br>
> icap_preview_enable on<br>
> icap_preview_size 1024<br>
> #icap_service_failure_limit -1<br>
> icap_service service_avi_req reqmod_precache
icap://localhost:1344/squidclamav bypass=off<br>
> adaptation_access service_avi_req allow all<br>
> icap_service service_avi_resp respmod_precache
icap://localhost:1344/squidclamav bypass=on<br>
> adaptation_access service_avi_resp allow all<br>
><br>
> And c-icap's config is:<br>
><br>
> PidFile /var/run/c-icap/c-icap.pid<br>
> CommandsSocket /var/run/c-icap/c-icap.ctl<br>
> Timeout 300<br>
> MaxKeepAliveRequests 100<br>
> KeepAliveTimeout 600<br>
> StartServers 3<br>
> MaxServers 10<br>
> MinSpareThreads 10<br>
> MaxSpareThreads 20<br>
> ThreadsPerChild 10<br>
> MaxRequestsPerChild 0<br>
> Port 1344<br>
> TmpDir /var/tmp<br>
> MaxMemObject 131072<br>
> DebugLevel 1<br>
> Pipelining on<br>
> ModulesDir /usr/local/lib/c_icap<br>
> ServicesDir /usr/local/lib/c_icap<br>
> TemplateDir /usr/local/share/c_icap/templates/<br>
> LoadMagicFile /etc/c-icap/c-icap.magic<br>
> RemoteProxyUsers off<br>
> RemoteProxyUserHeader X-Authenticated-User<br>
> RemoteProxyUserHeaderEncoded on<br>
> acl localhost src 127.0.0.1/255.255.255.255<br>
> acl ALLREQUESTS type RESPMOD REQMOD<br>
> icap_access allow localhost ALLREQUESTS<br>
> icap_access deny all<br>
> ServerLog /var/log/c-icap/server.log<br>
> AccessLog /var/log/c-icap/access.log<br>
> Logger file_logger<br>
> Module logger sys_logger.so<br>
> Service squidclamav squidclamav.so<br>
><br>
> Any idea what am I doing wrong?? How can I do a simple test
against c-icap server from command line??<br>
><br>
> Thanks.<br>
></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBCAAGBQJXM0X7AAoJENNXIZxhPexGOqwH/1WJ3K1ATlDOU+ZvtzJxZZ9m
<br>
1augL6CaAfo1GNsKnbZpRkJ+VfPceT0DKD2a9YinJEBXjdFNmicmlf52ngE6YEeE
<br>
D7v1hIyeei06b4388FIwHneCy5VKARAp87QE9jPpveg98ZXwAOMSFe7PkRwIsNnB
<br>
31DlcEO8zL5qzAY9frX3RLyFSHItukU0CQxzW/W9TdHNZyO1VF0Dtu/+9AvvOeoa
<br>
6IOQ4+HR9s+P68w3c61ju9W+BjWpqpDvQP7dxprSdyKatg2HFidBI6as9gFyZfrD
<br>
6YSygOlpeBiIfk2aL5ytG+4e94ZLOtK0PCvhqf5Z6psGmj39hG12JE9zk9IjQiE=
<br>
=ZS1D
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>