Author Topic: Nginx 24: Too many open files  (Read 9028 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Nginx 24: Too many open files
« 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?

Offline
**
Re: Nginx 24: Too many open files
« Reply #1 on: July 27, 2019, 12:05:59 AM »
check for user in /etc/security/limits.d and increase the value for nofile

Offline
*
Re: Nginx 24: Too many open files
« Reply #2 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 ?

Offline
*
Re: Nginx 24: Too many open files
« Reply #3 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
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.