Sytem Error: nginx restart failed

nginx -t also checks that it can access auxiliary files like log files so the error before raising the limits :wink:

Regarding the other error… I’ve no idea :frowning:

Yes but never fails on max open files…

There are about 60 Domains

in /var/log/hestiadebug.log we have the following error

[ 2023-08-06 19:47:54 | nginx | PROXY ]
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] open() "/var/log/nginx/domains/webmail.mydomain.cx.log" failed (24: Too many open files)
nginx: configuration file /etc/nginx/nginx.conf test failed

is there another user accusing when I edit a domain in hestia?

No. I assume you are using a VPS?

It’s a dedicated server.

Does anyone know what is the script that is used to disable a user from the panel. That is when I get the error.

Do you mean suspend a user?

If you mean suspend a user, the command is:

v-suspend-user HereTheUserName yes

The last yes is to restart the services.

No Remove Delete…

v-delete-user HereTheUserName yes

This will remove the user and all the web domains, dbs, mails, etc for that user so take care.

What is the difference between the v-suspend-user HereTheUserName yes and pressing pause button on in the panel.

v-suspend-user works, but if I do it thought the web panell I get the Nginx error…

The same goes for v-delete-user, doesn’t the cli command restart Nginx like it does though the Web interface?

I even ran v-add-letsencrypt-domain and no problem…

Any ideas?

v-delete-user via command line doesn’t reload / restart Nginx unless you specify It

So why does the web panel do so (Reload Nginx)?
I guess v-add-letsencrypt-domain has to reload Nginx, Right?

It looks as it is somthing with the panel and Nginx…

Yes it is required as it needs to reload the Nginx for the challenge …

So any Ideas why the panel gives me the error?

Only thing I can think of we reload config instead and maybe due to the active connections it is over the max open files.

I have see the past where users where not able to reload but still restart how ever restarting is slower if you have a lot active connections

See:

It doesn’t seem the same, my problem is with the panel and not the server…

The panel does restart Nginx…

So If you don’t believe me don’t ask for support

I do believe you, sorry if I offended you, and thank you for your help.

I am trying to understand what is happening differently when I run a command from the terminal as root, for example v-delete-user or v-add-letsencrypt-domain and when I try to do the same thing from the panel.

nginx -t get a correct response.

Thank You Again for your patience and help.