• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

NGINX does not start up -> Too Many Open Files

ehrenwert

Basic Pleskian
Hello,

at the moment NGINX is not willing to start:

The error:
Jan 09 17:39:01 lichtenberg.ehrenwert-webhosting.de nginx[5200]: nginx: [emerg] open() "/var/www/vhosts/system/example.com/logs/proxy_access_log" failed (24: Too many open files)

I tried to follow https://kb.odin.com/de/115139 to solve this but the error still appears:
ulimit -n
1000000

in NGINX.conf:

worker_rlimit_nofile 65536;

System is Debian 8 on Systemd.
 
I also mention a lot of errors in php5-fpm.log:

[09-Jan-2016 23:37:17] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:17] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:17] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:20] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:20] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:22] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:22] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:48] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:50] ERROR: failed to prepare the stderr pipe: Too many open files (24)

[09-Jan-2016 23:37:51] ERROR: failed to prepare the stderr pipe: Too many open files (24)
 
@ehrenwert,

I am pretty sure that you should remove the worker_rlimit_nofile directive.

In fact, this directive is overriding your limits configuration, for which the settings should be correct, in the sense that the value is high enough.

The Nginx override is resulting in a lower limit of open files (i.e. lower than the limit configuration allows).

Removing the Nginx override should do the trick, so it is worth the attempt.

Please change the Nginx settings and reload the Nginx reconfiguration.

Can you report back? I am rather curious whether the above solution helps.

Regards.....
 
Back
Top