Operating System - Linux
1827730 Members
2821 Online
109968 Solutions
New Discussion

Re: invalid xml or is not responding

 
SOLVED
Go to solution
'chris'
Super Advisor

invalid xml or is not responding

hi

We have proxy squid/3.0.PRE5 installed on linux debian etch stable and we have big problems with one very important webseite.

We're getting quite often this error message in browser:

invalid xml or is not responding

We don't know howto find and fix this problem?
Is it the problem of the timeout?
Knows someone more about this error message?

Which squid log should show this problem ?
15 REPLIES 15
Ivan Ferreira
Honored Contributor
Solution

Re: invalid xml or is not responding

Maybe, to start diagnosing the problem, you can use the no_cache option to avoid caching of that site.

See:

http://www.geocities.com/vladislav_isaev/squid/FAQ-7.html

Maybe the problem is at origin.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

thx, I'll try but In Squid 3 no_cache is changed to cache

http://www.squid-cache.org/Versions/v3/3.0/cfgman/cache.html

so:

cache deny ACL

is correct.
'chris'
Super Advisor

Re: invalid xml or is not responding

I tried:

acl mydomain dstdomain .mydomain.net
cache deny mydomain

but it doesn't help.

the remote webserver uses a kind of balancing system and uses asp
the user is logging into and getting an asp ID in the header.
this session should stay of the same, one of this balancing server.
the problem is, over squid the user gets second asp ID, is not staying
on the same server, switching to the other one and getting this error above.

without proxy works well.
Ivan Ferreira
Honored Contributor

Re: invalid xml or is not responding

I think I don't understand correctly the problem, but if you are using IDs, then you should be accesing via https, and https connections should not be cached/proxied.

¿Are you using https?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

no, it's only HTTP with a header ID
Ivan Ferreira
Honored Contributor

Re: invalid xml or is not responding

Check this link, it discusses how squid handles dynamic pages and the differences between 2 and 3. It may help you:

http://wiki.squid-cache.org/ConfigExamples/DynamicContent

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

thx, but this is not cgi-bin, just asp

howto configure squid 3 to deny cache of all asp websites ?
Ivan Ferreira
Honored Contributor

Re: invalid xml or is not responding

That is just a sample, and it's a regex, cgi-bin and the ? symbol are by default, you can include for example "asp" in that rule to match asp pages, there should be a common pattern in the URL of your asp pages, like .asp.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

you mean like this?

hierarchy_stoplist asp ?
acl QUERY urlpath_regex asp \?
cache deny QUERY
Ivan Ferreira
Honored Contributor

Re: invalid xml or is not responding

Yes, if in your URL the word asp appears somewhere.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

thx, but what about:

acl asp url_regex .asp
cache deny asp
Ivan Ferreira
Honored Contributor

Re: invalid xml or is not responding

That should also work, but in regular expressions, the "dot" just means "any" character. Then you should use \.asp.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

thx again, but is it a good idea to put both of them in squid.conf?

acl asp url_regex \.asp
cache deny asp

hierarchy_stoplist asp ?
acl QUERY urlpath_regex asp \?
cache deny QUERY
Ivan Ferreira
Honored Contributor

Re: invalid xml or is not responding

>> thx again, but is it a good idea to put both of them in squid.conf?

No, just ose one of them, like:

hierarchy_stoplist \.asp ?
acl QUERY urlpath_regex \.asp \?
cache deny QUERY
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
'chris'
Super Advisor

Re: invalid xml or is not responding

thx a lot !

but I I've read somewhere, that hierarchy_stoplist is NOT related to caching, only forwarding.

'cache deny' for example is the equivalent directive affecting caching.

greetings
chris