<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Hi Alex,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Which log should those be found?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Can’t see “</span><span style="font-size:11.0pt">HTTP Server RESPONSE” in the access.log or cache.log.</span><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US">Regards,
<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US">Ben.
</span><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">squid-users <squid-users-bounces@lists.squid-cache.org> on behalf of Alex Rousskov <rousskov@measurement-factory.com><br>
<b>Date: </b>Friday, 12 July 2024 at 17:11<br>
<b>To: </b>squid-users@lists.squid-cache.org <squid-users@lists.squid-cache.org><br>
<b>Subject: </b>Re: [squid-users] TCP_MISS_ABORTED/502<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On 2024-07-12 11:38, Ben Toms wrote:<br>
> Think I made the changes Alex requested:<br>
> <br>
> 12/Jul/2024:15:36:31 +0000.640 local.server.ip TCP_MISS_ABORTED/502 3974 <br>
> GET <a href="https://local.server.fqdn/path/to/file">https://local.server.fqdn/path/to/file</a> -
<br>
> FIRSTUP_PARENT/public.ip.of.public.server text/html <br>
> ERR_READ_ERROR/WITH_SERVER<br>
<br>
Thank you for using Squid v6 for this test.<br>
<br>
Unfortunately, due to Squid logging bugs, ERR_READ_ERROR/WITH_SERVER <br>
does not always mean what it says. For example, parent Squid could have <br>
closed the child-parent connection prematurely, but there could be other <br>
reasons. A full debugging log should give us more information.<br>
<br>
<br>
> 2024/07/12 14:57:08.678 kid1| 11,2| Stream.cc(274) sendStartOfMessage: <br>
> HTTP Client REPLY:<br>
<br>
This is a child proxy response to the client. We need parent response to <br>
the child proxy. Look for "HTTP Server RESPONSE" lines instead.<br>
<br>
<br>
HTH,<br>
<br>
Alex.<br>
<br>
<br>
<br>
> ---------<br>
> <br>
> HTTP/1.1 502 Bad Gateway<br>
> <br>
> Server: squid/6.6<br>
> <br>
> Mime-Version: 1.0<br>
> <br>
> Date: Fri, 12 Jul 2024 14:57:08 GMT<br>
> <br>
> Content-Type: text/html;charset=utf-8<br>
> <br>
> Content-Length: 3629<br>
> <br>
> X-Squid-Error: ERR_READ_ERROR 0<br>
> <br>
> Vary: Accept-Language<br>
> <br>
> Content-Language: en<br>
> <br>
> Cache-Status: squid.host;detail=mismatch<br>
> <br>
> Via: 1.1 squid.host (squid/6.6)<br>
> <br>
> Connection: keep-alive<br>
> <br>
> ----------<br>
> <br>
> Regards,<br>
> <br>
> Ben.<br>
> <br>
> *From: *squid-users <squid-users-bounces@lists.squid-cache.org> on <br>
> behalf of Amos Jeffries <squid3@treenet.co.nz><br>
> *Date: *Friday, 12 July 2024 at 15:22<br>
> *To: *squid-users@lists.squid-cache.org <squid-users@lists.squid-cache.org><br>
> *Subject: *Re: [squid-users] TCP_MISS_ABORTED/502<br>
> <br>
> <br>
> On 13/07/24 01:52, Alex Rousskov wrote:<br>
>> On 2024-07-12 08:06, Ben Toms wrote:<br>
>>> Seems that my issue is similar to - <br>
>>> <a href="https://serverfault.com/questions/1104330/squid-cache-items-behind-basic-authentication">
https://serverfault.com/questions/1104330/squid-cache-items-behind-basic-authentication</a> <<a href="https://serverfault.com/questions/1104330/squid-cache-items-behind-basic-authentication">https://serverfault.com/questions/1104330/squid-cache-items-behind-basic-authentication</a>><br>
>> <br>
>> You are facing up to two problems:<br>
>> <br>
>> 1. Some authenticated responses are not cachable by Squid. Please share <br>
>> HTTP headers of the response in question.<br>
>> <br>
> <br>
> FYI, those can be obtained by configuring squid.conf with<br>
> <br>
>     debug_options 11,2<br>
> <br>
> <br>
> Cheers<br>
> Amos<br>
> <br>
> <br>
>> 2. TCP_MISS_ABORTED/502 errors may delete a being-cached response. These <br>
>> can be bogus errors (essentially Squid logging bugs) or real ones (e.g., <br>
>> due to communication bugs, misconfiguration, or compatibility problems). <br>
>> I recommend adding %err_code/%err_detail to your logformat and sharing <br>
>> the corresponding access.log lines (obfuscated as needed).<br>
>> <br>
>> Sharing (privately if needed) a pointer to compressed ALL,9 cache.log <br>
>> while reproducing the issue using a single transaction may help us <br>
>> resolve all the unknowns:<br>
>> <br>
>> <a href="https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction">
https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction</a> <<a href="https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction">https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction</a>><br>
>> <br>
>> <br>
>> HTH,<br>
>> <br>
>> Alex.<br>
>> <br>
>> <br>
> <br>
> <br>
> _______________________________________________<br>
> squid-users mailing list<br>
> squid-users@lists.squid-cache.org<br>
> <a href="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</a>
<br>
> <<a href="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</a>><br>
> <br>
> <br>
> _______________________________________________<br>
> squid-users mailing list<br>
> squid-users@lists.squid-cache.org<br>
> <a href="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
squid-users@lists.squid-cache.org<br>
<a href="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>