What is 502 Proxy error? How to Resolve it - apache

When i try to login into Artifactory web appliaction ,its showing proxy error. The Error message is below.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /artifactory/webapp/login.html.
Reason: Error reading from remote server
Apache/2.2.15 (CentOS) Server at XX.XX.XX.XX Port 80
Any Solution for this?

Related

coturn turn server error CREATE_PERMISSION 403: Forbidden IP

I deployed turn server using coturn with near-default configurations on ec2 instance. I was not able to connect with another peer using this turn server. It showed iceConnectionState changed to disconnected on the connection with error as peerjs logs on browser console and incoming packet CREATE_PERMISSION processed, error 403: Forbidden IP error on coturn server logs. How to fix this? (rhetorical)
In my case,This answer absolutely helped me( although, it was not my error). I was setting only public dns for external-ip in turnserver.conf. I set it as public-ip/private-ip and it worked. something like below:
external-ip=13.some.thing.229/172.some.thing.else and now even the error made sense.

An existing connection was forcibly closed by the remote host (net::ERR_HTTP2_PROTOCOL_ERROR)

I have unique apache http server which deliver html/css/js ressources for all clients.
each client access to his private account with subdomain
client-1.myurl.com
client-2.myurl.com
And I use mod_macro with ProxyPass to map request of a subdomain url to an external ip server:
by example
https://pastebin.com/Xp8ydjZD
But sometimes i got net::ERR_HTTP2_PROTOCOL_ERROR in my console while navigating on my website and a lot 503 errors, here is my apache log error file : https://pastebin.com/PjU7D3Py
Various error in apache log :
An existing connection was forcibly closed by the remote host. ...
AH01102: error reading status line from remote server at.myurl.com:8082, referer: https://at.myurl....
No connection could be made because the target machine actively refused it. : AH00957: HTTPS: attempt to connect to zzz.zz.zzz.zz:8082 (ij.myurl.com) failed....
AH01114: HTTP: failed to make connection to backend: ij.myurl.com, referer:...
Screenshot

Proxy passing setup for stomp over websocket on apache 2.4

I want to map a domain with my spring websocket deployed on server(tomcat) over port 8090.
I need to access my application through proxy passing over apache 2.4 installed on centOS.
The application(.war file) is being accessed from a client build on
react and this client is on another server.
I followed each step of below article but it is not working in my case.
Getting below error :
WebSocket connection to 'ws://xyz/abc/greeting/251/lcnlhdwc/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
Please help me.
WebSockets and Apache proxy : how to configure mod_proxy_wstunnel?

(103) Software caused connection abort: proxy: pass request body failed

The following errors are being logged in our proxy Apache logs while processing the request with Tomcat Server:
(103)Software caused connection abort: proxy: pass request body failed
proxy: pass request body failed
We've a Apache reverse proxy which serves the request for the client from our Tomcat Server. Sometimes, the request from the proxy returns 502 with the above error. There are no error logs in Tomcat Server Logs correlated with the above errors in Proxy. Also, the request didn't timeout since some of the requests response time is 1 sec and our default timeout is 120 sec.
We've added ProxyBadHeader Ignore to our httpd configuration [Ref: 502 Proxy Error / Uploading from Apache (mod_proxy) to Tomcat 7] and still didn't see any errors in our Tomcat logs.
Have anyone seen this issue earlier?
We recently had this issue after upgrading one of our machines from Tomcat 6 to 7. Someone forgot to change the default apache-tomcat/conf/tomcat-users.xml file from our standard one and so the wrong password was getting checked by the server. Interestingly this results in the 502 Error you saw above. This can be avoided with some decent logging to determine it is actually an auth problem.

service httpd status shows Internal Server Error

I have a dedicated server. No PHP files were running when i use my website so i tried looking into the apache and used "service httpd status" to check apache status and this is what i am getting
service httpd status
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, root#mps-vm1 and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.
More information about this error may be available in the server error
log.
Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
______________________________________________________________
Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips
mod_bwlimited/1.4 Server at localhost Port 80
Can someone please tell me what should i do?