PHP-FPM wont start if server have 1 acount with over quota

Skamasle

Member
Mar 18, 2012
24
0
51
cPanel Access Level
Root Administrator
HI

I suppose this is bug, today I have this situation:

PHP-FPM 7.4 wont start whit the following error:

15-Nov-2022 08:03:57] ERROR: [pool SOME_USER_ACCOUNT] failed to chown() the socket '/opt/cpanel/ea-php74/root/usr/var/run/php-fpm/133ee989293f92736301280c6f14c89d521200c17d.sock': Disk quota exceeded (122)

So, I check disk space, innodes and all was fine in a server, but SOME_USER_ACCOUNT run over quota:

blocks quota limit grace files quota limit grace
305240* 2097152 2097152 6days 52518 0 0


In this case, cpanel leave down 50 cpanel accounts ( all cpanel with php-fpm 7.4 ) because SOME_SUER_ACCOUNT run over quota.

I can confirm than PHP not start because in: /opt/cpanel/ea-php74/root/usr/var/run/php-fpm the sock: 133ee989293f92736301280c6f14c89d521200c17d.sock was owened by root

I disable php-fpm in SOME_USER_ACCOUNT and php-fpm 7.4 starts fine, but if tomorrow some account get out of space php-fpm will fail again.

So, how can I solve this issue ?

I suppose this happen today because expire grace time of quota.

PD: I not use </> ( code tag because when clicking in it, popup with forum list was opened.
 

Skamasle

Member
Mar 18, 2012
24
0
51
cPanel Access Level
Root Administrator
Hi CPRex

I have some servers with this issue, we solve it disabling PHP_FPM or reaise quota, we cant leave you reproduce issue, because when happen all web sites get down because PHP-FPM wont start if one account is over quota :/