You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kenichi MASUDA <ma...@gmail.com> on 2016/03/10 10:52:07 UTC
a lot of 502 error with using version 7.0.68-1
Hi,
I updated the tomcat on CentOS6 from 7.0.39-1 to 7.0.68-1,
and it seems to that the 502 proxy error was increased than before.
The error is below:
- apache log: proxy: Error reading from remote server returned by
- mobile phone display: 502 proxy error. The proxy server received an
invalid response from an upstream server.
The proxy server could not handle the request POST /foo/bar
Is there anyone know or encounter the same situation?
Apache: 2.24-1
tomcat: 7.0.68-1
--
mailto:masuken@gmail.com
Re: a lot of 502 error with using version 7.0.68-1
Posted by Kenichi MASUDA <ma...@gmail.com>.
Dear Christopher,
Thank you for your reply.
Our circumstances are so old, sorry. I want to renew them, but it seems to
be difficult for these errors for now.
> This might not be the best list to ask about mod_proxy_http, but there
> are some people who probably have good experience with it here.
Thank for guiding to the mailing list and I'll post about my situation.
2016-03-11 10:49 GMT+09:00 Christopher Schultz <chris@christopherschultz.net
>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Kenchi,
>
> On 3/10/16 8:25 PM, Kenichi MASUDA wrote:
> > Thank you for your reply and I'm sorry for less information.
> >
> >> how are you connecting httpd -> Tomcat?
> >>
> > A client sends a request to httpd which listens as 80, after that
> > httpd throw it like this to the tomcat which exists in backend and
> > serves as 8080 port with the rewrite rule.
> >
> > RewriteCond %{REQUEST_URI}
> > !\.(png|jpe?g|gif|css|js|xml|json|jsonp|ico|html?|swf|txt)$
> > RewriteRule ^/(.*)$ http://localhost:8080/core/$1 [P,L]
>
> So you are using mod_proxy_http.
>
> > The error is: httpd log say that "proxy: Error reading from remote
> > server returned by"
> >
> > and
> >
> > a client say that "502 proxy error. The proxy server received an
> > invalid response from an upstream server. The proxy server could
> > not handle the request POST /foo/bar"
> >
> > After having checked that error occurred, I've downgraded the
> > tomcat version to 7.0.39 (the version which I used to use), so that
> > the error disappeared.
>
> That is a very old Tomcat version indeed (more than 3 years old). You
> would be better upgrading to latest Tomcat 7.0.68 and figuring out
> what's wrong with the proxy.
>
> This might not be the best list to ask about mod_proxy_http, but there
> are some people who probably have good experience with it here.
>
> The best place to ask about mod_proxy_http would be on the httpd
> user's list:
> http://httpd.apache.org/lists.html#http-users
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlbiJEYACgkQ9CaO5/Lv0PA2KACfbdp4wR3rXQcJ82jEK/GWLls7
> /EUAoLpT6SzzPYoyZYF1Zh/481dnCvLt
> =hiN1
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
mailto:masuken@gmail.com
Re: a lot of 502 error with using version 7.0.68-1
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kenchi,
On 3/10/16 8:25 PM, Kenichi MASUDA wrote:
> Thank you for your reply and I'm sorry for less information.
>
>> how are you connecting httpd -> Tomcat?
>>
> A client sends a request to httpd which listens as 80, after that
> httpd throw it like this to the tomcat which exists in backend and
> serves as 8080 port with the rewrite rule.
>
> RewriteCond %{REQUEST_URI}
> !\.(png|jpe?g|gif|css|js|xml|json|jsonp|ico|html?|swf|txt)$
> RewriteRule ^/(.*)$ http://localhost:8080/core/$1 [P,L]
So you are using mod_proxy_http.
> The error is: httpd log say that "proxy: Error reading from remote
> server returned by"
>
> and
>
> a client say that "502 proxy error. The proxy server received an
> invalid response from an upstream server. The proxy server could
> not handle the request POST /foo/bar"
>
> After having checked that error occurred, I've downgraded the
> tomcat version to 7.0.39 (the version which I used to use), so that
> the error disappeared.
That is a very old Tomcat version indeed (more than 3 years old). You
would be better upgrading to latest Tomcat 7.0.68 and figuring out
what's wrong with the proxy.
This might not be the best list to ask about mod_proxy_http, but there
are some people who probably have good experience with it here.
The best place to ask about mod_proxy_http would be on the httpd
user's list:
http://httpd.apache.org/lists.html#http-users
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlbiJEYACgkQ9CaO5/Lv0PA2KACfbdp4wR3rXQcJ82jEK/GWLls7
/EUAoLpT6SzzPYoyZYF1Zh/481dnCvLt
=hiN1
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: a lot of 502 error with using version 7.0.68-1
Posted by Kenichi MASUDA <ma...@gmail.com>.
Thank you for your reply and I'm sorry for less information.
> how are you connecting httpd -> Tomcat?
>
A client sends a request to httpd which listens as 80, after
that httpd throw it like this to the tomcat which exists in backend and
serves as 8080 port with the rewrite rule.
RewriteCond %{REQUEST_URI}
!\.(png|jpe?g|gif|css|js|xml|json|jsonp|ico|html?|swf|txt)$
RewriteRule ^/(.*)$ http://localhost:8080/core/$1 [P,L]
The error is:
httpd log say that "proxy: Error reading from remote server returned by"
and
a client say that "502 proxy error. The proxy server received an invalid
response from an upstream server. The proxy server could not handle the
request POST /foo/bar"
After having checked that error occurred, I've downgraded the tomcat
version to 7.0.39(the version which I used to use), so that the error
disappeared.
2016-03-10 21:17 GMT+09:00 Christopher Schultz <chris@christopherschultz.net
>:
> Kenichi,
>
> On 3/10/16 4:52 AM, Kenichi MASUDA wrote:
> > Hi,
> >
> > I updated the tomcat on CentOS6 from 7.0.39-1 to 7.0.68-1,
> > and it seems to that the 502 proxy error was increased than before.
> >
> > The error is below:
> > - apache log: proxy: Error reading from remote server returned by
> > - mobile phone display: 502 proxy error. The proxy server received an
> > invalid response from an upstream server.
> > The proxy server could not handle the request POST /foo/bar
> >
> > Is there anyone know or encounter the same situation?
> >
> > Apache: 2.24-1
> > tomcat: 7.0.68-1
>
> Can you provide more information. For example, what do the logs say?
> Also, how are you connecting httpd -> Tomcat?
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
mailto:masuken@gmail.com
Re: a lot of 502 error with using version 7.0.68-1
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Kenichi,
On 3/10/16 4:52 AM, Kenichi MASUDA wrote:
> Hi,
>
> I updated the tomcat on CentOS6 from 7.0.39-1 to 7.0.68-1,
> and it seems to that the 502 proxy error was increased than before.
>
> The error is below:
> - apache log: proxy: Error reading from remote server returned by
> - mobile phone display: 502 proxy error. The proxy server received an
> invalid response from an upstream server.
> The proxy server could not handle the request POST /foo/bar
>
> Is there anyone know or encounter the same situation?
>
> Apache: 2.24-1
> tomcat: 7.0.68-1
Can you provide more information. For example, what do the logs say?
Also, how are you connecting httpd -> Tomcat?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org