Clean up monica db- error PHP 7.2

Hi all,

I’m asking for help because I run into a problem during my latest update:

I guess this issue is somewhat related to this discussion but it was closed bevore solving the problem :wink:

My YunoHost server

Hardware: normal Intel-Basex x64 chipset
YunoHost version: 4.0.8
I have access to my server : Through SSH | through the weba dmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I tried to perform an update and got the following error message:

You cannot do this right now because dpkg/APT (the system package manager) seems to be in a broken state… You can try to solve this problem by connecting via SSH and running sudo dpkg --configure -a.

When I run the recommended command I got an error regarding php 7.2fpm: Failed to start The PHP 7.2 FastCGI Process Manager

Yunohost paste

Thanks in advance and have a nice day

sudo dpkg --configure -a
php7.2-fpm (7.2.34-8+0~20201103.52+debian10~1.gbpafa084) wird eingerichtet ...
Job for php7.2-fpm.service failed because the control process exited with error code.
See "systemctl status php7.2-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.2-fpm, action "restart" failed.
● 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: failed (Result: exit-code) since Sun 2020-11-08 14:05:42 CET; 23ms ago
     Docs: man:php-fpm7.2(8)
  Process: 11524 ExecStart=/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm.conf (code=exited, status=78)
  Process: 11525 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.2/fpm/pool.d/www.conf 72 (code=exited, status=0/SUCCESS)
 Main PID: 11524 (code=exited, status=78)

Nov 08 14:05:42 matthaei.nohost.me systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
Nov 08 14:05:42 matthaei.nohost.me php-fpm7.2[11524]: [08-Nov-2020 14:05:42] ERROR: [pool monica] the chdir path '/var/www/monica' does not exist or is not a directory
Nov 08 14:05:42 matthaei.nohost.me php-fpm7.2[11524]: [08-Nov-2020 14:05:42] ERROR: failed to post process the configuration
Nov 08 14:05:42 matthaei.nohost.me php-fpm7.2[11524]: [08-Nov-2020 14:05:42] ERROR: FPM initialization failed
Nov 08 14:05:42 matthaei.nohost.me systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Nov 08 14:05:42 matthaei.nohost.me systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
Nov 08 14:05:42 matthaei.nohost.me systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.
dpkg: Fehler beim Bearbeiten des Paketes php7.2-fpm (--configure):
 »installiertes php7.2-fpm-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 php7.2-fpm

```text
sudo journalctl -u php7.2-fpm -n 100 --no-hostname --no-pager
-- Logs begin at Thu 2020-11-05 22:39:01 CET, end at Sun 2020-11-08 14:06:20 CET. --
Nov 08 13:44:30 systemd[1]: Stopping The PHP 7.2 FastCGI Process Manager...
Nov 08 13:44:30 systemd[1]: php7.2-fpm.service: Succeeded.
Nov 08 13:44:30 systemd[1]: Stopped The PHP 7.2 FastCGI Process Manager.
Nov 08 13:44:30 systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
Nov 08 13:44:30 php-fpm7.2[861]: [08-Nov-2020 13:44:30] ERROR: [pool monica] the chdir path '/var/www/monica' does not exist or is not a directory
Nov 08 13:44:30 php-fpm7.2[861]: [08-Nov-2020 13:44:30] ERROR: failed to post process the configuration
Nov 08 13:44:30 php-fpm7.2[861]: [08-Nov-2020 13:44:30] ERROR: FPM initialization failed
Nov 08 13:44:30 systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Nov 08 13:44:30 systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
Nov 08 13:44:30 systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.
Nov 08 13:49:19 systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
Nov 08 13:49:19 php-fpm7.2[5929]: [08-Nov-2020 13:49:19] ERROR: [pool monica] the chdir path '/var/www/monica' does not exist or is not a directory
Nov 08 13:49:19 php-fpm7.2[5929]: [08-Nov-2020 13:49:19] ERROR: failed to post process the configuration
Nov 08 13:49:19 php-fpm7.2[5929]: [08-Nov-2020 13:49:19] ERROR: FPM initialization failed
Nov 08 13:49:19 systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Nov 08 13:49:19 systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
Nov 08 13:49:19 systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.
Nov 08 13:51:08 systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
Nov 08 13:51:08 php-fpm7.2[7493]: [08-Nov-2020 13:51:08] ERROR: [pool monica] the chdir path '/var/www/monica' does not exist or is not a directory
Nov 08 13:51:08 php-fpm7.2[7493]: [08-Nov-2020 13:51:08] ERROR: failed to post process the configuration
Nov 08 13:51:08 php-fpm7.2[7493]: [08-Nov-2020 13:51:08] ERROR: FPM initialization failed
Nov 08 13:51:08 systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Nov 08 13:51:08 systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
Nov 08 13:51:08 systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.
Nov 08 13:53:33 systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
Nov 08 13:53:33 php-fpm7.2[9070]: [08-Nov-2020 13:53:33] ERROR: [pool monica] the chdir path '/var/www/monica' does not exist or is not a directory
Nov 08 13:53:33 php-fpm7.2[9070]: [08-Nov-2020 13:53:33] ERROR: failed to post process the configuration
Nov 08 13:53:33 php-fpm7.2[9070]: [08-Nov-2020 13:53:33] ERROR: FPM initialization failed
Nov 08 13:53:33 systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Nov 08 13:53:33 systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
Nov 08 13:53:33 systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.
Nov 08 14:05:42 systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
Nov 08 14:05:42 php-fpm7.2[11524]: [08-Nov-2020 14:05:42] ERROR: [pool monica] the chdir path '/var/www/monica' does not exist or is not a directory
Nov 08 14:05:42 php-fpm7.2[11524]: [08-Nov-2020 14:05:42] ERROR: failed to post process the configuration
Nov 08 14:05:42 php-fpm7.2[11524]: [08-Nov-2020 14:05:42] ERROR: FPM initialization failed
Nov 08 14:05:42 systemd[1]: php7.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Nov 08 14:05:42 systemd[1]: php7.2-fpm.service: Failed with result 'exit-code'.
Nov 08 14:05:42 systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.


Sounds like you maybe uninstalled the “monica” app but it did not clean its shit properly so there’s still a php conf file refering to it …

I guess I would try to “rm /etc/php/7.2/fpm/pool.d/monica.conf” (not 100% sure this is the right path…)

1 Like

@Aleks Many thanks for the very quick respons. You are always here to help! Thanks a lot.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.