[squid-users] cachemgr.cgi & Internal Error: Missing Template MGR_INDEX

Brendan Kearney bpk678 at gmail.com
Sat Jul 29 16:31:30 UTC 2023


i am not following.

squid 4.14 on fedora 32 does not have the file, nor does it exhibit the 
issue.
squid 6.1 on fedora 38 does not have the file, but does exhibit the issue.

what am i missing, and is there a way to provide this functionality in 
6.1?  if an external tool, or different package, is needed what is that?

thanks,

brendan

On 7/29/23 12:22 PM, Alex Rousskov wrote:
> On 7/29/23 11:07, Brendan Kearney wrote:
>
>> the package installed does not have any file named MGR_INDEX. running 
>> "rpm -ql squid |grep -i index" does not return anything. searching in 
>> /usr/share/squid for the file does not find it, either.  funny that 
>> neither the old version of squid, nor the new version of squid have 
>> that file at all.
>
> Yes, the lack of MGR_INDEX file in Squid sources is "by design" of 
> that MGR_INDEX feature -- an "external tool" is supposed to provide 
> that file in certain cases[1]. Please do not misinterpret my statement 
> as defense of the corresponding design decisions or their side 
> effects; I am just stating the facts rather than trying to justify bad 
> user experience.
>
> [1] https://github.com/squid-cache/squid/pull/1176#discussion_r1010534845
>
>
> Alex.
>
>
>> @amos,
>>
>> i ran firefox with developer tools open, and browsed to the cachemgr 
>> URL, and reproduced the issue.  the traffic is not being proxied 
>> through squid, and is making the requests directly.  i am not sure if 
>> that is what you mean.  i saved the session as a HAR file, if that 
>> helps.
>>
>> thank you,
>>
>> brendan
>>
>> On 7/29/23 1:26 AM, Amos Jeffries wrote:
>>> On 29/07/23 14:42, Alex Rousskov wrote:
>>>> On 7/28/23 20:08, Brendan Kearney wrote:
>>>>
>>>>> i am running squid 6.1 on fedora 38, and cannot get the 
>>>>> cachemgr.cgi working on this box.  I am getting the error:
>>>>>
>>>>> Internal Error: Missing Template MGR_INDEX
>>>>>
>>>>> when i try to connect using the cache manager interface.
>>>>
>>>
>>> That is the expected output when you are trying to access the 
>>> manager interface directly from Squid. **Instead** of via the 
>>> cachemgr.cgi.
>>>
>>> If you want to try the new manager interface I have a prototype 
>>> javascript tool available at <https://github.com/yadij/cachemgr.js/>.
>>>
>>>
>>> Amos
>>> _______________________________________________
>>> squid-users mailing list
>>> squid-users at lists.squid-cache.org
>>> http://lists.squid-cache.org/listinfo/squid-users
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users


More information about the squid-users mailing list