Re: no live upstreams and NO previous error

2018-03-22 Thread manjusv
Hey Drookie,

Can you let me know how you solved this issue?

We are facing a similar issue which results in 502 gateway error and I'm not
able to find a solution for it. 

Below is the error log from /var/log/nginx/error.log

2018/03/22 01:34:49 [error] 8779#0: *13133 no live upstreams while
connecting to upstream, client: 207.189.113.68, server: 192.168.10.4,
request: "POST /upload_app HTTP/1.1", upstream: "uwsgi://upload_clusters",
host: "173.255.9.88"
2018/03/22 01:34:50 [error] 8779#0: *13136 no live upstreams while
connecting to upstream, client: 207.189.113.68, server: 192.168.10.4,
request: "POST /upload_app HTTP/1.1", upstream: "uwsgi://upload_clusters",
host: "173.255.9.88"
2018/03/22 01:34:50 [error] 8779#0: *13143 no live upstreams while
connecting to upstream, client: 207.189.113.68, server: 192.168.10.4,
request: "POST /upload_app HTTP/1.1", upstream: "uwsgi://upload_clusters",
host: "173.255.9.88"
2018/03/22 01:34:50 [error] 8779#0: *13144 no live upstreams while
connecting to upstream, client: 207.189.113.68, server: 192.168.10.4,
request: "POST /upload_app HTTP/1.1", upstream: "uwsgi://upload_clusters",
host: "173.255.9.88"

We dont get this issue for all requests but for some random requests in
between. Below is the access log from /var/log/nginx/access.log
207.189.113.68 - - [22/Mar/2018:02:15:29 -0700] "POST /upload_app HTTP/1.1"
502 198 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:29 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:29 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:29 -0700] "POST /upload_app HTTP/1.1"
502 198 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:29 -0700] "POST /upload_app HTTP/1.1"
502 198 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:29 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:34 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:34 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:36 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:37 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:39 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:42 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:42 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:45 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:46 -0700] "POST /upload_app HTTP/1.1"
502 198 "-" "Apache-HttpClient/4.0.3 (java 1.5)"
207.189.113.68 - - [22/Mar/2018:02:15:46 -0700] "POST /upload_app HTTP/1.1"
200 162 "-" "Apache-HttpClient/4.0.3 (java 1.5)"

As you can see some requests got 200(success) response and some got
502(gateway error). I have tried parameter tuning by increasing timeouts but
no help.

It would be really helpful if you can let me know what worked for you.
Thanks.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,269577,279148#msg-279148

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: no live upstreams and NO previous error

2017-02-10 Thread vishnu.dinoct
We have json parsing data in between via api's. Anybody here to advise???

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,269577,272345#msg-272345

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: no live upstreams and NO previous error

2016-09-15 Thread drookie
Oh, solved. Upstreams do respond with 500.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,269577,269584#msg-269584

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: no live upstreams and NO previous error

2016-09-15 Thread drookie
(yup, it's still the author of the original post, but my other browser just
remembers another set of credentials).

If I increase verbosity of the error_log, I'm seeing additional messages in
log, like 

upstream server temporarily disabled while reading response header from


but this message doesn't explain why the upstream server was disabled. I
understand that the error occured, but what exaclty ? I'm used to see
timeouts instead, or some other explicit problem. This looks totally
mysterios for me. Could someone shine some light on it ?

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,269577,269583#msg-269583

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx