Control Web Panel

WebPanel => Apache => Nginx => Topic started by: sizenet on July 26, 2019, 08:31:40 PM

Title: Nginx 24: Too many open files
Post by: sizenet on July 26, 2019, 08:31:40 PM
Hello everyone;

Nginx not working;

Error log:

2019/07/26 20:58:28 [warn] 20115#20115: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/hostname-ssl.conf:8
2019/07/26 20:58:28 [emerg] 20115#20115: open() "/usr/local/apache/domlogs/ozgurfr3.ozgurfreedus.com.error.log" failed (24: Too many open files)

Can someone help me?
Title: Re: Nginx 24: Too many open files
Post by: evansa on July 27, 2019, 12:05:59 AM
check for user in /etc/security/limits.d and increase the value for nofile
Title: Re: Nginx 24: Too many open files
Post by: nuffsaid on October 06, 2019, 06:47:40 PM
I'm having a similar issue.

But when i changed the files from the following

username hard nproc 40
username hard nofile 100

to


username hard nproc 500
username hard nofile 1000

I'm still having the same issue.

How can i resolve this and what else can i check / change ?
Title: Re: Nginx 24: Too many open files
Post by: studio4host on October 07, 2019, 12:11:14 AM
you probably replaced username with user nobody, this is the limit for user nobody which has the issue