502 error Bad Gateway nginx server and also running Shiny Server , Rstudio

Dear Team ,
I'm facing the issue on 502 bad gateway error last 1 month , now i didn't find out any solution

Also No CPU, RAM issue also users continuity is very low up to 1-10 but we are facing 502 bad gateway error
please help me , log details are below

i) Nginx Access log
223.XXX.XXX.1X1 - - [22/Nov/2023:18:41:46 +0530] "POST /juWbow/sockjs/n=FxkWHmy0QS8rlbOTw4/950/st0slail/xhr_send HTTP/1.1" 502 166 "https://XXXXYYYZZ.net/jsXXw/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0"

#----------------------
ii) Nginx Error log
2023/11/22 18:41:46 [error] 36309#36309: *14376592 connect() failed (111: Connection refused) while connecting to upstream, client: 223.XXX.XXX.1X1 , server: XXXXYYYZZ.net, request: "POST /juWbow/sockjs/n=FxkWHmy0QS8rlbOTw4/950/st0slail/xhr_send HTTP/1.1", upstream: "http://[::1]:3838/juWbow/sockjs/n=FxkWHmy0QS8rlbOTw4/950/st0slail/xhr_send", host: "XXXXYYYZZ.net", referrer: "https://XXXXYYYZZ.net/juWbow/"

#-------------

iii) Shiny server log

2023/11/22 18:41:47 [error] 36309#36309: *14376731 no live upstreams while connecting to upstream, client: 49.XXX.129.XX, server: XXXXYYYZZ.net, request: "POST /juW/sockjs/n=wHf4vci8bRLHS2Xyr3/359/p3jxfpk3/xhr_send HTTP/1.1", upstream: "http://localhost/juW/__sockjs__/n=wHf4vci8bRLHS2Xyr3/359/p3jxfpk3/xhr_send", host: "XXXXYYYZZ.net", referrer: "https://XXXXYYYZZ.net/juW/"

2023/11/22 18:41:47 [error] 36309#36309: *14376592 no live upstreams while connecting to upstream, client: 223.XXX.XXX.1X1 , server: XXXXYYYZZ.net, request: "GET /juWbow/sockjs/o=FxkWHmy0QS8rlbOTw4/info HTTP/1.1", upstream: "http://localhost/juWbow/__sockjs__/o=FxkWHmy0QS8rlbOTw4/info", host: "XXXXYYYZZ.net", referrer: "https://XXXXYYYZZ.net/juWbow/"

Please Try to give the better solution

1 Like

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.