nginx 500 internal server error

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
zoto
Posts: 1
Joined: Thu Aug 04, 2016 10:30 am

nginx 500 internal server error

Postby zoto » Thu Aug 04, 2016 10:53 am

Error log for nginx (/var/log/nginx/error.log)

Code: Select all

2016/08/04 06:15:59 [alert] 16205#16205: socketpair() failed while spawning "worker process" (24: Too many open files)
2016/08/04 06:15:59 [alert] 16205#16205: socketpair() failed while spawning "worker process" (24: Too many open files)
2016/08/04 06:15:59 [alert] 16205#16205: socketpair() failed while spawning "worker process" (24: Too many open files)
2016/08/04 06:15:59 [alert] 16205#16205: socketpair() failed while spawning "worker process" (24: Too many open files)
2016/08/04 06:15:59 [alert] 16205#16205: socketpair() failed while spawning "cache manager process" (24: Too many open files)
2016/08/04 06:15:59 [alert] 16205#16205: socketpair() failed while spawning "cache loader process" (24: Too many open files)


I have followed this instructions.

http://stackoverflow.com/questions/7325 ... ts-per-min

Somewhere on google I also read about changing soft and hard limit but I don't know if this is the culprit and that how to change it.

The default

ulimit -Sn
1024

ulimit -Hn
4096

I am using CentOS 6.7 x64

Elizine
Posts: 48
Joined: Wed Aug 12, 2015 12:11 pm
Location: United States
Contact:

Re: nginx 500 internal server error

Postby Elizine » Tue Aug 09, 2016 11:25 am

Remove the line where you are assigning a different log file so he uses the standard one at /var/log/nginx/error.log

Also the socket thing is a recommendation and some people can recommend you to use tcp, but still should not be related to your error if you phpinfo.php is working.

Does this Yii requires any kind of cute urls or something similar?

try adding " fastcgiintercepterrors on; " to the php block and check error log.

kareem
Posts: 1
Joined: Fri Sep 08, 2017 2:33 am

Re: nginx 500 internal server error

Postby kareem » Fri Sep 08, 2017 2:36 am

You can change the soft and hard limits in etc/nginx/nginx.conf

increase the values of
worker_rlimit_nofile xxxxxx;
worker_connections xxxxxx;

noogen
Posts: 38
Joined: Thu Jan 05, 2017 9:20 pm

Re: nginx 500 internal server error

Postby noogen » Thu Sep 14, 2017 7:00 pm

kareem wrote:You can change the soft and hard limits in etc/nginx/nginx.conf

increase the values of
worker_rlimit_nofile xxxxxx;
worker_connections xxxxxx;


I believe the issue is with the system. Should be this one: https://serverfault.com/questions/63721 ... -on-centos


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 8 guests