Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP-FPM fails to start after removing virtual server #56

Open
aresxc opened this issue Jun 8, 2023 · 2 comments
Open

PHP-FPM fails to start after removing virtual server #56

aresxc opened this issue Jun 8, 2023 · 2 comments

Comments

@aresxc
Copy link

aresxc commented Jun 8, 2023

After removing a virtual server that uses PHP-FPM and Nginx, PHP-FPM fails to start. This is due to website pool not begin deleted after using Virtualmin > Disable and Delete > Delete Virtual Server.

[08-Jun-2023 03:36:58] ERROR: [pool 1680217373282286] cannot get uid for user 'example.com' [08-Jun-2023 03:36:58] ERROR: FPM initialization failed

LEMP installation.
Ubuntu 22.04.2
Webmin 2.021
Virtualmin 7.7
PHP 8.1 (kinetic)

@iliajie
Copy link
Contributor

iliajie commented Jun 8, 2023

Hello,

I didn't see this issue happening with Nginx. Nevertheless, we recently addressed it in a more general way, to make sure the PHP-FPM pool file is always removed.

Although, it's not clear exactly what's causing it. Do you have steps to reproduce this issue?

@aresxc
Copy link
Author

aresxc commented Jun 8, 2023

Yes, I did it 3 times, with 3 Virtualmin installs, the 4 time I tried it didn't work.

Installation:
./virtualmin-install.sh --bundle LEMP --minimal

  1. Create Virtual Server: example.com (Top-level server, default settings)
  2. Create Virtual Server: test.example.com (Alias of example.com, default settings)
  3. example.com > Disable and Delete > Disable Virtual Server > Also disable sub-servers? Yes
  4. example.com > Disable and Delete > Delete Virtual Server > Yes, Delete It

The progress log didn't show anything wrong, it's shown later when restarting PHP-FPM manually, creating a Virtual Server or rebooting the system.

Edit:
In steps 3 and 4 wait a few minutes or hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants