Article ID: 124574, created on Feb 24, 2015, last review on Feb 24, 2015

  • Applies to:
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix


When creating new subscription the web server configuration files were not properly created. Panel shows a message:

New files of configuration for Apache web server were not built due to errors in configuration templates: nginx: (24: Too many open files)

Panel error log /usr/local/psa/admin/panel.log contains an error:

ERR (3): Apache config (13523804010.47553900) generation failed: nginx: [emerg] open() "/var/www/vhosts/test255.tld/statistics/logs/proxy_access_ssl_log" failed (24: Too many open files)
nginx: configuration file /etc/nginx/nginx.conf test failed

When you reconfigure domain with cli utility /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <domain.tld> it creates configuration files properly.


Limits of 'sw-engine' process is not correctly set. Product issue #PPPM-1464 .


By design, sw-engine process has limitations on number of files opened in same time (1024):

for i in `ps aux|grep sw-engine|grep -v grep|awk '{print $2}'`; do cat /proc/$i/limits|grep open;done

Max open files            1024                 4096                 files
Max open files            1024                 4096                 files

Because of these limits configurations fails when initiated from GUI, and succeeds when initiated from CLI.

There are two ways to workaround the issue:

  1. Restart 'sw-engine' service by root, limits changed according to 'ulimit -n' output. But it will remain until next service start.

  2. Permanent fix - add the line 'ulimit -n 65536' to the beginning of '/etc/init.d/sw-engine' script, e.g. like this:

    ulimit -n 65536

It will be fixed in the future Plesk updates.

Search Words

failed (24: Too many open files)

nginx: (24: Too many open files)

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040

Email subscription for changes to this article
Save as PDF