YunoHost-Apps / privatebin_ynh

PrivateBin package for YunoHost
https://privatebin.info/
GNU General Public License v3.0
1 stars 4 forks source link

php-fpm pool file remains after deleting privatebin #39

Open retiolus opened 3 months ago

retiolus commented 3 months ago

It seems that php-fpm pool.d conf file /etc/php/8.2/fpm/pool.d/privatebin.conf is not removed when uninstalling privatebin. In my case, this let to an error with php-fpm service:

Aug 03 16:48:01 home.retiolus.net systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Aug 03 16:48:03 home.retiolus.net php-fpm8.2[1441]: [03-Aug-2024 16:48:03] ERROR: [pool privatebin] the chdir path '/var/www/privatebin' does not exist or is not a directory
Aug 03 16:48:03 home.retiolus.net php-fpm8.2[1441]: [03-Aug-2024 16:48:03] ERROR: failed to post process the configuration
Aug 03 16:48:03 home.retiolus.net php-fpm8.2[1441]: [03-Aug-2024 16:48:03] ERROR: FPM initialization failed
Aug 03 16:48:03 home.retiolus.net systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Aug 03 16:48:03 home.retiolus.net systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Aug 03 16:48:03 home.retiolus.net systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.

After removing manually the file, the service started correctly again:

sudo rm /etc/php/8.2/fpm/pool.d/privatebin.conf

oleole39 commented 1 month ago

I cannot reproduce this on a fresh privatebin 1.7.4~ynh2 instance on YNH 12.0.4 (testing). The privatebin.conf file is now located in /etc/php/8.3/fpm/pool.d/ and gets successfully deleted when uninstalling the app.