PHP-FPM pool doesn't exists

Hello. When trying to add a new domain, I get the error: Error: php-fpm pool doesn’t exist. I installed updates in December and apparently something went wrong, but I found the problem only now, when I needed to add a new domain. Before everything worked fine, choosing php version for domains also worked. How can I solve this problem?

Please do not comment under 1 year old topics it will not improve the readability…

Make sure you you update to the last version. (Currently 1.3.2) an try again.

I have updated now to the latest version 1.3.2 and this did not solve my problem = (

Check systemctl status php-fpmX.X (X.X for your version, probaly 7.3 or 7.4), then you’ll probaly find more informations about the missing pool file.

I run command: systemctl status php7.3-fpm and i get:

  • php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-01-11 17:54:03 MSK; 23min ago
    Docs: man:php-fpm7.3(8)
    Process: 17944 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
    Process: 733 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
    Main PID: 659 (php-fpm7.3)
    Status: “Processes active: 0, idle: 0, Requests: 10, slow: 0, Traffic: 0req/sec”
    Tasks: 1 (limit: 2338)
    CGroup: /system.slice/php7.3-fpm.service
    `-659 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)

Jan 11 17:54:02 systemd[1]: Starting The PHP 7.3 FastCGI Process Manager…
Jan 11 17:54:03 systemd[1]: Started The PHP 7.3 FastCGI Process Manager.
Jan 11 17:54:34 systemd[1]: Reloading The PHP 7.3 FastCGI Process Manager.
Jan 11 17:54:34 systemd[1]: Reloaded The PHP 7.3 FastCGI Process Manager.

What happens if you manualy restart your fpm service? Do you’ve also checked 7.4 (if installed)?

Run command: systemctl status php7.4-fpm, get: Unit php7.4-fpm.service could not be found.
Run command: service php7.3-fpm restart | stop | start, get: restarts, stops, and starts without error.
It cannot be restarted via the control panel, the timer is not reset.
In Hestia log: added php-fpm backend configuration for newdomainname.

I have active and running next version of php-fpm: 5.6, 7.1, 7.2, 7.3:

PHP-FPM
  • php5.6-fpm.service - The PHP 5.6 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php5.6-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-01-11 19:56:54 MSK; 9min ago
    Docs: man:php-fpm5.6(8)
    Process: 23669 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/5.6/fpm/pool.d/www.conf 56 (code=exited, status=0/S
    Process: 6899 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
    Process: 25218 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/5.6/fpm/pool.d/www.conf 56 (code=exited, status=0
    Main PID: 25217 (php-fpm5.6)
    Status: “Processes active: 0, idle: 0, Requests: 5, slow: 0, Traffic: 0req/sec”
    Tasks: 1 (limit: 2338)
    CGroup: /system.slice/php5.6-fpm.service
    `-25217 php-fpm: master process (/etc/php/5.6/fpm/php-fpm.conf)

Jan 11 19:56:54 systemd[1]: Starting The PHP 5.6 FastCGI Process Manager…
Jan 11 19:56:54 systemd[1]: Started The PHP 5.6 FastCGI Process Manager.

  • php7.1-fpm.service - The PHP 7.1 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.1-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-01-11 17:54:03 MSK; 2h 12min ago
    Docs: man:php-fpm7.1(8)
    Process: 6913 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
    Process: 746 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.1/fpm/pool.d/www.conf 71 (code=exited, status=0/S
    Main PID: 648 (php-fpm7.1)
    Status: “Processes active: 0, idle: 0, Requests: 19, slow: 0, Traffic: 0req/sec”
    Tasks: 1 (limit: 2338)
    CGroup: /system.slice/php7.1-fpm.service
    `-648 php-fpm: master process (/etc/php/7.1/fpm/php-fpm.conf)

Jan 11 18:42:42 systemd[1]: Reloading The PHP 7.1 FastCGI Process Manager.
Jan 11 18:42:42 systemd[1]: Reloaded The PHP 7.1 FastCGI Process Manager.
Jan 11 18:45:34 systemd[1]: Reloading The PHP 7.1 FastCGI Process Manager.
Jan 11 18:45:34 systemd[1]: Reloaded The PHP 7.1 FastCGI Process Manager.
Jan 11 18:47:12 systemd[1]: Reloading The PHP 7.1 FastCGI Process Manager.
Jan 11 18:47:12 systemd[1]: Reloaded The PHP 7.1 FastCGI Process Manager.
Jan 11 18:49:01 systemd[1]: Reloading The PHP 7.1 FastCGI Process Manager.
Jan 11 18:49:01 systemd[1]: Reloaded The PHP 7.1 FastCGI Process Manager.
Jan 11 19:15:21 systemd[1]: Reloading The PHP 7.1 FastCGI Process Manager.
Jan 11 19:15:21 systemd[1]: Reloaded The PHP 7.1 FastCGI Process Manager.

  • php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-01-11 17:54:03 MSK; 2h 13min ago
    Docs: man:php-fpm7.2(8)
    Process: 6928 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
    Process: 724 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.2/fpm/pool.d/www.conf 72 (code=exited, status=0/S
    Main PID: 650 (php-fpm7.2)
    Status: “Processes active: 0, idle: 0, Requests: 30, slow: 0, Traffic: 0req/sec”
    Tasks: 1 (limit: 2338)
    CGroup: /system.slice/php7.2-fpm.service
    `-650 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf)

Jan 11 18:42:42 systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager.
Jan 11 18:42:42 systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager.
Jan 11 18:45:34 systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager.
Jan 11 18:45:34 systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager.
Jan 11 18:47:12 systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager.
Jan 11 18:47:12 systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager.
Jan 11 18:49:01 systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager.
Jan 11 18:49:01 systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager.
Jan 11 19:15:21 systemd[1]: Reloading The PHP 7.2 FastCGI Process Manager.
Jan 11 19:15:21 systemd[1]: Reloaded The PHP 7.2 FastCGI Process Manager.

  • php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-01-11 18:44:19 MSK; 1h 22min ago
    Docs: man:php-fpm7.3(8)
    Process: 20243 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/S
    Process: 6942 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
    Process: 20303 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0
    Main PID: 20302 (php-fpm7.3)
    Status: “Processes active: 0, idle: 0, Requests: 54, slow: 0, Traffic: 0req/sec”
    Tasks: 1 (limit: 2338)
    CGroup: /system.slice/php7.3-fpm.service
    `-20302 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)

Jan 11 18:44:19 systemd[1]: Starting The PHP 7.3 FastCGI Process Manager…
Jan 11 18:44:19 systemd[1]: Started The PHP 7.3 FastCGI Process Manager.
Jan 11 18:45:34 systemd[1]: Reloading The PHP 7.3 FastCGI Process Manager.
Jan 11 18:45:34 systemd[1]: Reloaded The PHP 7.3 FastCGI Process Manager.
Jan 11 18:47:12 systemd[1]: Reloading The PHP 7.3 FastCGI Process Manager.
Jan 11 18:47:12 systemd[1]: Reloaded The PHP 7.3 FastCGI Process Manager.
Jan 11 18:49:01 systemd[1]: Reloading The PHP 7.3 FastCGI Process Manager.
Jan 11 18:49:01 systemd[1]: Reloaded The PHP 7.3 FastCGI Process Manager.
Jan 11 19:15:21 systemd[1]: Reloading The PHP 7.3 FastCGI Process Manager.
Jan 11 19:15:21 systemd[1]: Reloaded The PHP 7.3 FastCGI Process Manager.

I found that this error occurs when a previously deleted domain name is added to the server. If I add a completely new domain, then the error does not occur! How can I add a previously deleted domain?

Problem solved! Updates have nothing to do with! When the domain was deleted, the php-fpm configuration files were not deleted - domainname.com.conf in the /etc/php/7.2/fpm/pool.d directory, then this site used php 7.2. Now when I added this domain again a new config file was created for it with php version 7.3, which is used by default, which caused the conflict since there were 2 config files. After deleting all files related to this domain in the /etc/php/7.2/fpm/pool.d, /etc/php/7.3/fpm/pool.d folders, I was able to create this domain without errors. If you have the same problem, check all /etc/php/-.-/fpm/pool.d folders for a domain configuration file, delete them and the problem will be solved.

2 Likes

Know issue in the past it should have been fixed now.

When you delete know an domain it should also remove the config files…

1 Like