Message Boards

Getting 502 proxy error (Error reading from remote server)

Ronak Parekh, modified 2 Years ago.

Getting 502 proxy error (Error reading from remote server)

New Member Posts: 10 Join Date: 11/5/20 Recent Posts

Hello Team,

We are using Liferay DXP 7.2(liferay-dxp-7.2.10-ga1).

I am getting 502 proxy error(Error reading from remote server) and not able to access the server until I restart Application Server. I am not able to find root cause for this error and also I am not getting any errors in logs. I don't know whether it is due to any activity performed on server or any other reasons.

PFB Error:

The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET/

Reason: Error reading from remote server

Please help me how I can debug and resolve the issue.

thumbnail
Christoph Rabel, modified 3 Years ago.

RE: Getting 502 proxy error (Error reading from remote server)

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts

Just guessing here, it could help if you tell us which proxy(Apache, Nginx, ...) and app servers you use and how you connected them(relevant lines of config)

Do you have a firewall between the proxy and the server?

One thing that bit me before are timeouts/lost connections. e.g. the ajp connector has an infinite timeout, while e.g. Apache has a default timeout of 60 seconds (I think)

You should configure the same timeout in the proxy and in the tomcat connector.

You can check the connection status on your server using netstat, if there are lots of open connections ...

Koffi AGHOSTO, modified 2 Years ago.

RE: RE: Getting 502 proxy error (Error reading from remote server)

Junior Member Posts: 67 Join Date: 5/27/14 Recent Posts

Hello Christoph,

 

I would like to ask you question on your suggestion about this issue, I

get the same error with IBM Http Server (IHS) and Liferay DXP 7.2 with the error

"The timeout specified has expired" followed by "Error reading from remote server..."

Can you help me, please

Thank you in advanced