nginx proxy return 11: resource temporarily unavailable -




this got debug level info error log

"get /api/account/logout http/1.0 host: http://server_ip/ connection: close cache-control: max-age=0 user-agent: mozilla/5.0 (macintosh; intel mac os x 10_12_6) applewebkit/537.36 (khtml, gecko) chrome/60.0.3112.90 safari/537.36 upgrade-insecure-requests: 1 accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 accept-encoding: gzip, deflate accept-language: zh-cn,zh;q=0.8,en-us;q=0.6,en;q=0.4,zh-tw;q=0.2  " 2017/08/22 19:38:42 [debug] 22939#0: *62 http cleanup add: 00007f557d385fd0 2017/08/22 19:38:42 [debug] 22939#0: *62 rr peer, try: 1 2017/08/22 19:38:42 [debug] 22939#0: *62 stream socket 8 2017/08/22 19:38:42 [debug] 22939#0: *62 epoll add connection: fd:8 ev:80002005 2017/08/22 19:38:42 [debug] 22939#0: *62 connect 10.14.6.4:80, fd:8 #63 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream connect: -2 2017/08/22 19:38:42 [debug] 22939#0: *62 posix_memalign: 00007f557d2e7de0:128 @16 2017/08/22 19:38:42 [debug] 22939#0: *62 event timer add: 8: 60000:1503401982521 2017/08/22 19:38:42 [debug] 22939#0: *62 http finalize request: -4, "/admin_api/account/logout?" a:1, c:2 2017/08/22 19:38:42 [debug] 22939#0: *62 http request count:2 blk:0 2017/08/22 19:38:42 [debug] 22939#0: *62 post event 00007f557d41a6e0 2017/08/22 19:38:42 [debug] 22939#0: *62 delete posted event 00007f557d41a6e0 2017/08/22 19:38:42 [debug] 22939#0: *62 http run request: "/admin_api/account/logout?" 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream check client, write event:1, "/admin_api/account/logout" 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream recv(): -1 (11: resource temporarily unavailable) 2017/08/22 19:38:42 [debug] 22939#0: *62 post event 00007f557d41a740 2017/08/22 19:38:42 [debug] 22939#0: *62 delete posted event 00007f557d41a740 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream request: "/admin_api/account/logout?" 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream send request handler 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream send request 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream send request body 2017/08/22 19:38:42 [debug] 22939#0: *62 chain writer buf fl:1 s:467 2017/08/22 19:38:42 [debug] 22939#0: *62 chain writer in: 00007f557d386008 2017/08/22 19:38:42 [debug] 22939#0: *62 writev: 467 of 467 2017/08/22 19:38:42 [debug] 22939#0: *62 chain writer out: 0000000000000000 2017/08/22 19:38:42 [debug] 22939#0: *62 event timer del: 8: 1503401982521 2017/08/22 19:38:42 [debug] 22939#0: *62 event timer add: 8: 60000:1503401982522 2017/08/22 19:38:42 [debug] 22939#0: *62 post event 00007f557d402730 2017/08/22 19:38:42 [debug] 22939#0: *62 post event 00007f557d41a740 2017/08/22 19:38:42 [debug] 22939#0: *62 delete posted event 00007f557d402730 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream request: "/admin_api/account/logout?" 2017/08/22 19:38:42 [debug] 22939#0: *62 http upstream process header 2017/08/22 19:38:42 [debug] 22939#0: *62 malloc: 00007f557d35a4d0:4096 2017/08/22 19:38:42 [debug] 22939#0: *62 recv: fd:8 325 of 4096 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy status 400 "400 bad request" 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy header: "server: nginx/1.10.2" 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy header: "date: tue, 22 aug 2017 11:38:42 gmt" 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy header: "content-type: text/html" 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy header: "content-length: 173" 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy header: "connection: close" 2017/08/22 19:38:42 [debug] 22939#0: *62 http proxy header done 2017/08/22 19:38:42 [debug] 22939#0: *62 xslt filter header 2017/08/22 19:38:42 [debug] 22939#0: *62 http/1.1 400 bad request 

i'm forwarding requests internal server. request has admin_api prefix , should forwarded internal server api prefix. here nginx config.

server {     listen 8006;     server_name this_server_ip;      root /usr/share/nginx;     error_log /var/log/nginx/xxx-error.log debug;      location /admin_api {       proxy_pass http://internal_server_ip/api;       proxy_set_header host http://internal_server_ip/;       proxy_pass_request_headers on;     }      location / {         try_files $uri /index.html;     } } 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -