<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [squid-users] Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Well there seems to be some recurring pattern of behaviour:<BR>
<BR>
grep tok.skip cache.log<BR>
<BR>
<BR>
2023/09/12 19:12:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:12:03 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:12:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:12:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:12:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:17:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:17:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:17:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:17:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:17:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:22:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:22:04 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:22:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:22:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:22:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:27:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:27:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:27:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:27:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:27:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:32:04 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:32:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:32:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:32:04 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:32:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:37:03 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:37:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:37:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:37:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:37:03 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:42:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:42:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:42:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:42:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:42:03 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:47:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:47:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:47:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:47:04 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:47:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
2023/09/12 19:52:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:52:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:52:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:52:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 19:52:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
and the same 5 lines at these times:<BR>
2023/09/12 19:57:03 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:02:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:07:03 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:12:03 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:17:03 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:22:03 kid1| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:27:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:32:03 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:37:04 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:42:03 kid2| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:47:03 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:52:04 kid4| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
2023/09/12 20:57:03 kid3| ERROR: Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
So we can see it's occurring every 5mins at the same time, every time 5 occurrences. I suppose this is caused by my mrtg script calling squidclient exactly 5 times (to get number of used fd, max currently use fd, mean object size and number of store entries + store entries in memory).<BR>
<BR>
So, put this aside as the script (running on another computer) uses older squidclient.  I call it like this:<BR>
squidclient -h squid_ip -p squid_port -vv mgr:info<BR>
<BR>
Request:<BR>
GET cache_object://squid_ip/info HTTP/1.0<BR>
Host: squid_ip<BR>
User-Agent: squidclient/4.6<BR>
Accept: */*<BR>
Connection: close<BR>
<BR>
Sending HTTP request ...<BR>
done.<BR>
HTTP/1.1 404 Not Found<BR>
Server: squid<BR>
Mime-Version: 1.0<BR>
Date: Tue, 12 Sep 2023 19:09:41 GMT<BR>
Content-Type: text/html;charset=utf-8<BR>
Content-Length: 13057<BR>
X-Squid-Error: ERR_INVALID_URL 0<BR>
Cache-Status: proxy;detail=no-cache<BR>
Via: 1.1 proxy (squid)<BR>
Connection: close<BR>
<BR>
This is obviously calling for url cache_object://squid_ip/info which I think is obsolete. Now I went with the new squidclient:<BR>
<BR>
./squidclient -h squid_ip -p squid_port -vv mgr:info<BR>
<BR>
Request:<BR>
GET <A HREF="http://squid_ip:squid_port/squid-internal-mgr/info">http://squid_ip:squid_port/squid-internal-mgr/info</A> HTTP/1.0<BR>
Host: 10.50.1.5:3127<BR>
User-Agent: squidclient/6.3<BR>
Accept: */*<BR>
Connection: close<BR>
<BR>
But it seems squid is then trying to open it's visible_hostname:squid_port/squid-internal-mgr/ and due my DNS setting it is its WAN IP - so it's connecting to its outside IP with its outside IP which is not in the http_access manager allow list (now it is and the newer squidclient works). So maybe I should just start with my DNS and then I will take a look how to implement the new cachemgr.cgi into my old setup...<BR>
<BR>
L<BR>
<BR>
<BR>
<BR>
<BR>
LL<BR>
<BR>
<BR>
-----Původní zpráva-----<BR>
Od: squid-users za uživatele Alex Rousskov<BR>
Odesláno: út 12.9.2023 19:28<BR>
Komu: squid-users@lists.squid-cache.org<BR>
Předmět: Re: [squid-users] Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
On 2023-09-12 13:06, Loučanský Lukáš wrote:<BR>
> Is this anyhow interesting?<BR>
<BR>
Not really, IMO -- the problem happens earlier. I can confirm that you<BR>
are running v6.3-based code. Let's call that progress :-).<BR>
<BR>
Can you share the a _pointer_ to a compressed ALL,9 cache.log file while<BR>
reproducing the problem using a single transaction?<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><BR>
<BR>
Alex.<BR>
<BR>
><BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| SBuf.cc(30) SBuf: SBuf15514952 created<BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| SBuf.cc(30) SBuf: SBuf15514953 created<BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| SBuf.cc(30) SBuf: SBuf15514954 created<BR>
> 2023/09/12 18:47:04.267 kid4| 24,7| SBuf.cc(85) assign: assigning<BR>
> SBuf15514952 from SBuf15514912<BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| SBuf.cc(38) SBuf: SBuf15514955<BR>
> created from id SBuf15514915<BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| SBuf.cc(445) startsWith:<BR>
> SBuf15514955 startsWith SBuf125812, caseSensitive: 0<BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| SBuf.cc(447) startsWith: no, too short<BR>
> 2023/09/12 18:47:04.267 kid4| 24,8| Tokenizer.cc(185) skip: no match,<BR>
> not skipping '/squid-internal-mgr/'<BR>
> 2023/09/12 18:47:04 kid4| ERROR: Squid BUG: assurance failed:<BR>
> tok.skip(WellKnownUrlPathPrefix())<BR>
> 2023/09/12 18:47:04.268 kid4| 24,8| SBuf.cc(70) ~SBuf: SBuf15514955<BR>
> destructed<BR>
><BR>
><BR>
> BTW debug 24,9 makes pretty big log files... :-)<BR>
><BR>
> L<BR>
><BR>
</FONT>
</P>

</BODY>
</HTML>