Squid 5 does not send ICAP request

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Squid 5 does not send ICAP request

橋本紘希
I made squid and ICAP system using docker-compose.

Squid 4 started sending ICAP requests 1 minute after boot.

However, squid 5 sends no ICAP request even 10 minutes after boot.
Squid continued to mark the ICAP service down.

How can I make squid 5 to start ICAP conversation?

* squid version
5.0.5-20210223-r4af19cc24

* squid.conf

```
http_port 3128
http_access allow all
icap_enable on
icap_service icapsvc reqmod_precache icap://icap5:1344 bypass=off
adaptation_access icapsvc allow all
icap_persistent_connections off
icap_service_revival_delay 60
debug_options ALL,9
```

* This is my environment.
https://github.com/hsmtkk/squidicap

* I uploaded access.log and cache.log to the GitHub issue.
https://github.com/hsmtkk/squidicap/issues/1

Best regards,
Kouki Hashimoto
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 5 does not send ICAP request

Alex Rousskov
I suspect you are suffering from Bug 4528:
https://bugs.squid-cache.org/show_bug.cgi?id=4528

Which has also been discussed earlier as Bug 3621:
https://bugs.squid-cache.org/show_bug.cgi?id=3621

Does adding icap5 to /etc/hosts (or whatever your hosts_file points to)
help?

Unfortunately, I currently do not have enough free time to study your
logs to explain why Squid v5 delay is longer than that of v4, but I hope
that you can work around the problem by adjusting your hosts file.


HTH,

Alex.


On 3/12/21 2:44 AM, 橋本紘希 wrote:

> I made squid and ICAP system using docker-compose.
>
> Squid 4 started sending ICAP requests 1 minute after boot.
>
> However, squid 5 sends no ICAP request even 10 minutes after boot.
> Squid continued to mark the ICAP service down.
>
> How can I make squid 5 to start ICAP conversation?
>
> * squid version
> 5.0.5-20210223-r4af19cc24
>
> * squid.conf
>
> ```
> http_port 3128
> http_access allow all
> icap_enable on
> icap_service icapsvc reqmod_precache icap://icap5:1344 bypass=off
> adaptation_access icapsvc allow all
> icap_persistent_connections off
> icap_service_revival_delay 60
> debug_options ALL,9
> ```
>
> * This is my environment.
> https://github.com/hsmtkk/squidicap
>
> * I uploaded access.log and cache.log to the GitHub issue.
> https://github.com/hsmtkk/squidicap/issues/1
>
> Best regards,
> Kouki Hashimoto
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 5 does not send ICAP request

橋本紘希
Dear Alex,

> Does adding icap5 to /etc/hosts (or whatever your hosts_file points to) help?

Yes, it dit.

When I added ICAP hostname and IP mapping to the /etc/hosts file
before starting the Squid, the system worked fine.
(I put some shell scripts in the container entry point.)

Thanks for your help.
I hope some fundamental solution might be implemented in the future version.

Best regards,
Kouki Hashimoto

2021年3月13日(土) 3:42 Alex Rousskov <[hidden email]>:

>
> I suspect you are suffering from Bug 4528:
> https://bugs.squid-cache.org/show_bug.cgi?id=4528
>
> Which has also been discussed earlier as Bug 3621:
> https://bugs.squid-cache.org/show_bug.cgi?id=3621
>
> Does adding icap5 to /etc/hosts (or whatever your hosts_file points to)
> help?
>
> Unfortunately, I currently do not have enough free time to study your
> logs to explain why Squid v5 delay is longer than that of v4, but I hope
> that you can work around the problem by adjusting your hosts file.
>
>
> HTH,
>
> Alex.
>
>
> On 3/12/21 2:44 AM, 橋本紘希 wrote:
> > I made squid and ICAP system using docker-compose.
> >
> > Squid 4 started sending ICAP requests 1 minute after boot.
> >
> > However, squid 5 sends no ICAP request even 10 minutes after boot.
> > Squid continued to mark the ICAP service down.
> >
> > How can I make squid 5 to start ICAP conversation?
> >
> > * squid version
> > 5.0.5-20210223-r4af19cc24
> >
> > * squid.conf
> >
> > ```
> > http_port 3128
> > http_access allow all
> > icap_enable on
> > icap_service icapsvc reqmod_precache icap://icap5:1344 bypass=off
> > adaptation_access icapsvc allow all
> > icap_persistent_connections off
> > icap_service_revival_delay 60
> > debug_options ALL,9
> > ```
> >
> > * This is my environment.
> > https://github.com/hsmtkk/squidicap
> >
> > * I uploaded access.log and cache.log to the GitHub issue.
> > https://github.com/hsmtkk/squidicap/issues/1
> >
> > Best regards,
> > Kouki Hashimoto
> > _______________________________________________
> > squid-users mailing list
> > [hidden email]
> > http://lists.squid-cache.org/listinfo/squid-users
> >
>
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 5 does not send ICAP request

Eliezer Croitoru-3
In reply to this post by Alex Rousskov
Hey Alex and Amos.

These bugs are open since forever.
There is a simple way to re-produce it.
There is also a simple bypass to the issue but still.
However, Would it be possible to fix it for 6?
It doesn't to even require a single http request to test and verify.
The ICAP hosts doesn't resolve for at-least 3 minutes.

Thanks,
Eliezer

----
Eliezer Croitoru
Tech Support
Mobile: +972-5-28704261
Email: [hidden email]
Zoom: Coming soon


-----Original Message-----
From: squid-users <[hidden email]> On Behalf Of Alex Rousskov
Sent: Friday, March 12, 2021 8:43 PM
To: 橋本紘希 <[hidden email]>; [hidden email]
Subject: Re: [squid-users] Squid 5 does not send ICAP request

I suspect you are suffering from Bug 4528:
https://bugs.squid-cache.org/show_bug.cgi?id=4528

Which has also been discussed earlier as Bug 3621:
https://bugs.squid-cache.org/show_bug.cgi?id=3621

Does adding icap5 to /etc/hosts (or whatever your hosts_file points to)
help?

Unfortunately, I currently do not have enough free time to study your
logs to explain why Squid v5 delay is longer than that of v4, but I hope
that you can work around the problem by adjusting your hosts file.


HTH,

Alex.


On 3/12/21 2:44 AM, 橋本紘希 wrote:

> I made squid and ICAP system using docker-compose.
>
> Squid 4 started sending ICAP requests 1 minute after boot.
>
> However, squid 5 sends no ICAP request even 10 minutes after boot.
> Squid continued to mark the ICAP service down.
>
> How can I make squid 5 to start ICAP conversation?
>
> * squid version
> 5.0.5-20210223-r4af19cc24
>
> * squid.conf
>
> ```
> http_port 3128
> http_access allow all
> icap_enable on
> icap_service icapsvc reqmod_precache icap://icap5:1344 bypass=off
> adaptation_access icapsvc allow all
> icap_persistent_connections off
> icap_service_revival_delay 60
> debug_options ALL,9
> ```
>
> * This is my environment.
> https://github.com/hsmtkk/squidicap
>
> * I uploaded access.log and cache.log to the GitHub issue.
> https://github.com/hsmtkk/squidicap/issues/1
>
> Best regards,
> Kouki Hashimoto
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 5 does not send ICAP request

Alex Rousskov
On 3/15/21 5:18 AM, Eliezer Croitoru wrote:

> These bugs are open since forever.
> There is a simple way to re-produce it.
> There is also a simple bypass to the issue but still.
> However, Would it be possible to fix it for 6?

Yes, it would be! We are waiting for a volunteer to contribute a quality
fix or a sponsor who can facilitate the same. The problem can be solved,
but there is no trivial solution AFAICT, and nobody volunteered to do or
pay for the necessary work.

https://wiki.squid-cache.org/SquidFaq/AboutSquid#How_to_add_a_new_Squid_feature.2C_enhance.2C_of_fix_something.3F

Alex.


> -----Original Message-----
> From: squid-users <[hidden email]> On Behalf Of Alex Rousskov
> Sent: Friday, March 12, 2021 8:43 PM
> To: 橋本紘希 <[hidden email]>; [hidden email]
> Subject: Re: [squid-users] Squid 5 does not send ICAP request
>
> I suspect you are suffering from Bug 4528:
> https://bugs.squid-cache.org/show_bug.cgi?id=4528
>
> Which has also been discussed earlier as Bug 3621:
> https://bugs.squid-cache.org/show_bug.cgi?id=3621
>
> Does adding icap5 to /etc/hosts (or whatever your hosts_file points to)
> help?
>
> Unfortunately, I currently do not have enough free time to study your
> logs to explain why Squid v5 delay is longer than that of v4, but I hope
> that you can work around the problem by adjusting your hosts file.
>
>
> HTH,
>
> Alex.
>
>
> On 3/12/21 2:44 AM, 橋本紘希 wrote:
>> I made squid and ICAP system using docker-compose.
>>
>> Squid 4 started sending ICAP requests 1 minute after boot.
>>
>> However, squid 5 sends no ICAP request even 10 minutes after boot.
>> Squid continued to mark the ICAP service down.
>>
>> How can I make squid 5 to start ICAP conversation?
>>
>> * squid version
>> 5.0.5-20210223-r4af19cc24
>>
>> * squid.conf
>>
>> ```
>> http_port 3128
>> http_access allow all
>> icap_enable on
>> icap_service icapsvc reqmod_precache icap://icap5:1344 bypass=off
>> adaptation_access icapsvc allow all
>> icap_persistent_connections off
>> icap_service_revival_delay 60
>> debug_options ALL,9
>> ```
>>
>> * This is my environment.
>> https://github.com/hsmtkk/squidicap
>>
>> * I uploaded access.log and cache.log to the GitHub issue.
>> https://github.com/hsmtkk/squidicap/issues/1
>>
>> Best regards,
>> Kouki Hashimoto
>> _______________________________________________
>> squid-users mailing list
>> [hidden email]
>> http://lists.squid-cache.org/listinfo/squid-users
>>
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 5 does not send ICAP request

Alex Rousskov
In reply to this post by Alex Rousskov
On 3/12/21 1:42 PM, Alex Rousskov wrote:
> I suspect you are suffering from Bug 4528:
> https://bugs.squid-cache.org/show_bug.cgi?id=4528
>
> Which has also been discussed earlier as Bug 3621:
> https://bugs.squid-cache.org/show_bug.cgi?id=3621

PR 795 fixes similar problems in my tests:
https://github.com/squid-cache/squid/pull/795

Please test whether the corresponding patch helps in your environment:
https://github.com/squid-cache/squid/commit/61fdbf0.patch


Thank you,

Alex.


> On 3/12/21 2:44 AM, 橋本紘希 wrote:
>> I made squid and ICAP system using docker-compose.
>>
>> Squid 4 started sending ICAP requests 1 minute after boot.
>>
>> However, squid 5 sends no ICAP request even 10 minutes after boot.
>> Squid continued to mark the ICAP service down.
>>
>> How can I make squid 5 to start ICAP conversation?
>>
>> * squid version
>> 5.0.5-20210223-r4af19cc24
>>
>> * squid.conf
>>
>> ```
>> http_port 3128
>> http_access allow all
>> icap_enable on
>> icap_service icapsvc reqmod_precache icap://icap5:1344 bypass=off
>> adaptation_access icapsvc allow all
>> icap_persistent_connections off
>> icap_service_revival_delay 60
>> debug_options ALL,9
>> ```
>>
>> * This is my environment.
>> https://github.com/hsmtkk/squidicap
>>
>> * I uploaded access.log and cache.log to the GitHub issue.
>> https://github.com/hsmtkk/squidicap/issues/1
>>
>> Best regards,
>> Kouki Hashimoto
>> _______________________________________________
>> squid-users mailing list
>> [hidden email]
>> http://lists.squid-cache.org/listinfo/squid-users
>>
>

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 5 does not send ICAP request

橋本紘希
Dear Alex,

Yes, it solved the problem in my environment.

> Please test whether the corresponding patch helps in your environment:
> https://github.com/squid-cache/squid/commit/61fdbf0.patch

ICAP works fine between squid and the ICAP server.
I hope the patch will be merged to the main line.

Thanks for your help.
Kouki Hashimoto
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users