Welcome! Log In Create A New Profile

Advanced

Re: NGINX 500 http error

Maxim Dounin
November 15, 2013 06:04AM
Hello!

On Fri, Nov 15, 2013 at 05:51:16AM -0500, fatine,al wrote:

> Hi,
>
> I have a lot of 500 http error in nginx access.log.
> I think it's due to the number of requests that nginx receives. Because when
> I was testing the configuration with one ip adress I don't have this error
> but when I redirect all client traffic (sometimes more than 2000
> simultaneous connexions) to nginx I'm getting 500 http error.
> I don't have any error log in error.log.

The 500 errors usually indicate either configuration problem (e.g,
an infinite rewrite loop or something like this) or some resource
shortage (memory, file descriptors, space for temporary files, and
so on).

> I tried to modify this parameters : worker_connections,
> worker_rlimit_nofile, keepalive_timeout, proxy_connect_timeout ...
>
> And then I start to get this logs in error.log :
> worker process XXXXX exited on signal 11

Here nginx exits due to memory access violation. This is a
serious problem and usually indicate a bug somewhere (well, it
might be also hardware problem).

First of all, it might be a good idea to show "nginx -V" output
(and basically make sure you are using latest version and no 3rd
party modules), and obtain core dump and show a backtrace.

See here for basic instructions and more details:

http://wiki.nginx.org/Debugging

> an upstream response is buffered to a temporary file
> /var/lib/nginx/proxy/2/00/0000000002
> failed (104: Connection reset by peer) while sending response to
> client

These are not problems per se.

> Here is my nginx.log conf :
>
> user www-data;
> worker_processes 4;
> worker_rlimit_nofile 50000;
> pid /var/run/nginx.pid;

[...]

> include /etc/nginx/sites-enabled/*;

Note that configuration you've provided isn't nearly a full one.
It lacks an unsepcified number of included files.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX 500 http error

fatine,al November 15, 2013 05:51AM

Re: NGINX 500 http error

Maxim Dounin November 15, 2013 06:04AM

Re: NGINX 500 http error

fatine,al November 15, 2013 07:00AM

Re: NGINX 500 http error

Maxim Dounin November 15, 2013 08:24AM

Re: NGINX 500 http error

fatine,al November 15, 2013 09:16AM

Re: NGINX 500 http error

fatine,al November 21, 2013 10:51AM

Re: NGINX 500 http error

itpp2012 November 21, 2013 12:11PM

Re: NGINX 500 http error

fatine,al November 22, 2013 05:05AM

Re: NGINX 500 http error

itpp2012 November 22, 2013 06:40AM

Re: NGINX 500 http error

fatine,al November 28, 2013 06:21AM

Re: NGINX 500 http error

itpp2012 November 28, 2013 06:47AM

Re: NGINX 500 http error

fatine,al December 03, 2013 04:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready