Ok - thanks for your reply. But this does not clarify it fully. You said 
cachemgr.cgi auto-detects the existence of MGR_INDEX template. But what is it 
supposed to do if none is found? Just displaying the message about missing 
MGR_INDEX? Or doing the old style "Cache Manager menu"? I have applied Alex's  
patch to re-enable cache_object URI and now it obviously works - both 
cache_object and squid-internal-mgr. I mean - squidclient from debian packages 
(v4.6) works and the one compiled with squid v6.3 works too. Because of my old 
network NOC system a use a very old cachemgr (in fact version index.cgi/3.1.16) 
to ask the current v6.3 squid for its data and now it works too. 
But as I said previously - the current cachemgr.cgi displays "Internal Error: 
Missing Template MGR_INDEX" without MGR_INDEX file and the content of the 
MGR_INDEX file while it is present. As I found out - it does not like files 
with content with some tags or javascript references etc. Have not ruled it out 
- but the MGR_INDEX file provided in the https://github.com/yadij/cachemgr.js/  
project just makes the mentioned assert fail in the membuf.cc.

Note - I do not like the fact it's looking for the MGR_INDEX file upon start or 
reconfigure - as it makes the changes more stressful while I have to call 
reconfigure on the working squid.

LL


-----Původní zpráva-----
Od: squid-users za uživatele Amos Jeffries
Odesláno: pá 15.9.2023 03:46
Komu: squid-users@lists.squid-cache.org
Předmět: Re: [squid-users] Squid BUG: assurance failed: 
tok.skip(WellKnownUrlPathPrefix())
 
On 15/09/23 09:55, Alex Rousskov wrote:
> On 2023-09-14 06:40, Loučanský Lukáš wrote:
> 
>> But - could someone (or you) clarify the next one for me? I've read 
>> some questions about the "new" cachemgr.cgi and the MGR_INDEX template. 
> 
> Sorry, I cannot help with cachemgr.cgi without heroic efforts. IMHO, 
> Squid Project should remove cachemgr.cgi feature instead of supporting 
> it. I hope that somebody else will help you with it.
> 

FYI, the cachemgr.cgi provided by current Squid tries to auto-detect the 
existence of a working MGR_INDEX and simply provides a URL to that 
instead of doing the "old" CGI interface things.

The reasons to use it are:
  1) when managing very outdated Squid versions, or
  2) managing Squid which have not yet had a tool providing MGR_INDEX 
installed yet.


The recent changes to squidclient "mgr:" support and the cache_object:// 
  URL scheme have had a few issues. I am currently setting up a test 
environment to analyze and re-document the new/current situation. 
Hopefully some detailed info can be added to the wiki in the coming days.


HTH
Amos
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users


_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users

Reply via email to