Search squid archive

Re: cachemgr.cgi & Internal Error: Missing Template MGR_INDEX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/29/23 12:31, Brendan Kearney wrote:
i am not following.

Sorry, I was just gathering evidence and explaining what you saw. I have not confirmed a bug and have not been offering a solution (yet?).


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.

... and you do not have a MGR_INDEX file and, presumably, did not have that file before. That piece of information was missing. Now we have it. Let's call that progress, even though it may not look like one :-).

One additional checkbox to tick is to make sure that the cachemgr.cgi script you are using comes from the Squid version you are testing.


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?

cachemgr.cgi is not my area of expertise, but I believe that, bugs notwithstanding, the functionality you want should be available without an external tool.

The next step, AFAICT, is for you to detail:

* what HTTP response cachemgr.cgi script gets from Squid and
* what HTTP response your browser gets from cachemgr.cgi

According to [2], Squid should send a 404 response to cachemgr.cgi. You may be able to find some Squid response details (e.g., status code) in Squid access.log. If your cachemgr.cgi is sending plain text requests to Squid, you can also capture HTTP traffic to and from cachemgr.cgi using tcpdump, wireshark, or similar tools.

[2] https://github.com/squid-cache/squid/pull/1176#discussion_r1010645870


Thank you,

Alex.


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@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

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

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




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux