In an attempt to implement the download execution module , the following server configuration causes too many open files to fail
2014/11/19 12:10:34 [alert] 31761#0: *1010 socket() failed (24: Too many open files) while connecting to upstream, client: 127.0.0.1, server: xxx, request: "GET /documents/15/edit HTTP/1.0", upstream: "http://127.0.0.1:80/documents/15/edit", host: "127.0.0.1" 2014/11/19 12:10:34 [crit] 31761#0: *1010 open() "/usr/share/nginx/html/50x.html" failed (24: Too many open files), client: 127.0.0.1, server: xxx, request: "GET /documents/15/edit HTTP/1.0", upstream: "http://127.0.0.1:80/documents/15/edit", host: "127.0.0.1"
Below is the corresponding part of the server block that causes the passenger conflict; rails_env development; root / home / user / app / current / public;
# redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location / { # proxy to upstream server proxy_pass http:
Being relative n00b to nginx, I do not understand where this generates too many file errors. I assumed that the error pages are only for server errors 500-504 ...
source share