Hardware: VPS OVH debian stretch
Internet access: datacenter
YunoHost version: 3.1
yunohost: 3.1
yunohost-admin: 3.1
moulinette: 3.1
ssowat: 3.1
Description of my problem
Following a server migration and an update of YNH 2.7 to 3.1, I am having problems with php7.
Initially I had problems with nextcloud synchronization. I couldn’t add a file to the cloud from the browser and my local folder on my Mac too. So I decided to delete / install nextcloud but the new installation failed.
Here are the main error messsages during the insatllation (I grouped several lines)
42528 WARNING W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42529 DEBUG ++ mktemp -d
42529 WARNING W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42529 DEBUG + local TMPDIR=/tmp/tmp.9F0Z1sVut5
42529 WARNING W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42529 DEBUG + echo 10
42530 WARNING W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42530 DEBUG + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.9F0Z1sVut5/control
42530 WARNING W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42530 DEBUG + cd /tmp/tmp.9F0Z1sVut5
42530 WARNING W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42531 DEBUG + equivs-build ./control
42531 WARNING W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42531 WARNING W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
44249 WARNING E: Packages need to be removed but remove is disabled.
44250 DEBUG imagemagick-common libpng12-0
44250 WARNING Unable to install dependencies
44250 DEBUG Use ‘sudo apt autoremove’ to remove them.
44251 WARNING !!
44251 DEBUG The following additional packages will be installed:
44251 WARNING nextcloud’s script has encountered an error. Its execution was cancelled.
44252 DEBUG imagemagick imagemagick-6-common imagemagick-6.q16 imagemagick-common
44252 WARNING !!
44252 DEBUG libarchive13 libldb1 libmagickcore-6.q16-3 libmagickwand-6.q16-3
44253 WARNING
47119 WARNING Removing database
47119 DEBUG + local db_user=
47120 WARNING ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘’ at line 1
47224 WARNING Avoid deleting .
47224 DEBUG +++ mysql -u root --password=he54iCFbCw -B ‘’
47224 WARNING /etc/nginx/conf.d/cloud.sabeogroup.com.d/nextcloud.conf wasn’t deleted because it doesn’t exist.
47935 WARNING /etc/php5/fpm/pool.d/nextcloud.conf wasn’t deleted because it doesn’t exist.
47935 DEBUG + ‘[’ -z ‘’ ‘]’
47936 WARNING Failed to reload php5-fpm.service: Unit php5-fpm.service not found.
47936 DEBUG + fpm_config_dir=/etc/php5/fpm
47936 WARNING /etc/cron.d/nextcloud wasn’t deleted because it doesn’t exist.
I uninstalled borg to see if that changed… but no
so I checked the status of services and php7 was failed
root@sabeogroup:/var/log# systemctl status php7.0-fpm
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-09-15 23:15:49 CEST; 8min ago
Docs: man:php-fpm7.0(8)
Process: 3173 ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 3173 (code=exited, status=78)Sep 15 23:15:49 sabeogroup.com systemd[1]: Starting The PHP 7.0 FastCGI Process Manager…
Sep 15 23:15:49 sabeogroup.com php-fpm7.0[3173]: [15-Sep-2018 23:15:49] ERROR: [pool nextcloud] the chdir path ‘/var/www/nextcloud’ does not exist or is not a directory
Sep 15 23:15:49 sabeogroup.com php-fpm7.0[3173]: [15-Sep-2018 23:15:49] ERROR: failed to post process the configuration
Sep 15 23:15:49 sabeogroup.com php-fpm7.0[3173]: [15-Sep-2018 23:15:49] ERROR: FPM initialization failed
Sep 15 23:15:49 sabeogroup.com systemd[1]: php7.0-fpm.service: Main process exited, code=exited, status=78/n/a
Sep 15 23:15:49 sabeogroup.com systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Sep 15 23:15:49 sabeogroup.com systemd[1]: php7.0-fpm.service: Unit entered failed state.
Sep 15 23:15:49 sabeogroup.com systemd[1]: php7.0-fpm.service: Failed with result ‘exit-code’.
At this point I can’t do anything more. Where can I find php7 conf file or can I purge and re-install php7?
The main problem appears as:
[15-Sep-2018 23:09:48] ERROR: [pool nextcloud] the chdir path ‘/var/www/nextcloud’ does not exist or is not a directory
[15-Sep-2018 23:09:48] ERROR: failed to post process the configuration
[15-Sep-2018 23:09:48] ERROR: FPM initialization failed
And finally it is impossible to access the applications. I have a very nice 502 bad gateway. I think it must be related to php7.
Voir la Conf plus haut
Description de mon problème
Suite a une migration de serveur et une mise à jour de YNH 2.7 a 3.1, je rencontre des problèmes avec php7.
Au départ je rencontrais des problème de synchronisation nextcloud. Il m’était impossible d’ajouter un fichier sur le cloud a partir du navigateur et de mon dossier local sur mon Mac. Donc j’ai décider de supprimer/installer nextcloud mais l’installation n’a pas aboutie.
Voila les principaux messsage d’erreur lors de l’installation (j’ai regroupé plusieurs lignes)
42528 WARNING W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42529 DEBUG ++ mktemp -d
42529 WARNING W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42529 DEBUG + local TMPDIR=/tmp/tmp.9F0Z1sVut5
42529 WARNING W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42529 DEBUG + echo 10
42530 WARNING W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42530 DEBUG + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.9F0Z1sVut5/control
42530 WARNING W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42530 DEBUG + cd /tmp/tmp.9F0Z1sVut5
42530 WARNING W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42531 DEBUG + equivs-build ./control
42531 WARNING W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
42531 WARNING W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/borg-stretch-backports.list:1 and /etc/apt/sources.list.d/borg__2-stretch-backports.list:1
44249 WARNING E: Packages need to be removed but remove is disabled.
44250 DEBUG imagemagick-common libpng12-0
44250 WARNING Unable to install dependencies
44250 DEBUG Use ‘sudo apt autoremove’ to remove them.
44251 WARNING !!
44251 DEBUG The following additional packages will be installed:
44251 WARNING nextcloud’s script has encountered an error. Its execution was cancelled.
44252 DEBUG imagemagick imagemagick-6-common imagemagick-6.q16 imagemagick-common
44252 WARNING !!
44252 DEBUG libarchive13 libldb1 libmagickcore-6.q16-3 libmagickwand-6.q16-3
44253 WARNING
47119 WARNING Removing database
47119 DEBUG + local db_user=
47120 WARNING ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘’ at line 1
47224 WARNING Avoid deleting .
47224 DEBUG +++ mysql -u root --password=he54iCFbCw -B ‘’
47224 WARNING /etc/nginx/conf.d/cloud.sabeogroup.com.d/nextcloud.conf wasn’t deleted because it doesn’t exist.
47935 WARNING /etc/php5/fpm/pool.d/nextcloud.conf wasn’t deleted because it doesn’t exist.
47935 DEBUG + ‘[’ -z ‘’ ‘]’
47936 WARNING Failed to reload php5-fpm.service: Unit php5-fpm.service not found.
47936 DEBUG + fpm_config_dir=/etc/php5/fpm
47936 WARNING /etc/cron.d/nextcloud wasn’t deleted because it doesn’t exist.
J’ai désinstaller borg pour voir si cela changeait… mais non
donc j’ai vérifié le statut des services et php7 a échoué
root@sabeogroup:/var/log# systemctl status php7.0-fpm
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-09-15 23:15:49 CEST; 8min ago
Docs: man:php-fpm7.0(8)
Process: 3173 ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 3173 (code=exited, status=78)Sep 15 23:15:49 sabeogroup.com systemd[1]: Starting The PHP 7.0 FastCGI Process Manager…
Sep 15 23:15:49 sabeogroup.com php-fpm7.0[3173]: [15-Sep-2018 23:15:49] ERROR: [pool nextcloud] the chdir path ‘/var/www/nextcloud’ does not exist or is not a directory
Sep 15 23:15:49 sabeogroup.com php-fpm7.0[3173]: [15-Sep-2018 23:15:49] ERROR: failed to post process the configuration
Sep 15 23:15:49 sabeogroup.com php-fpm7.0[3173]: [15-Sep-2018 23:15:49] ERROR: FPM initialization failed
Sep 15 23:15:49 sabeogroup.com systemd[1]: php7.0-fpm.service: Main process exited, code=exited, status=78/n/a
Sep 15 23:15:49 sabeogroup.com systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Sep 15 23:15:49 sabeogroup.com systemd[1]: php7.0-fpm.service: Unit entered failed state.
Sep 15 23:15:49 sabeogroup.com systemd[1]: php7.0-fpm.service: Failed with result ‘exit-code’.
Donc là yé souit coincé Où puis-je trouver le fichier php7 conf ou puis-je purger et réinstaller php7?
Le problème principal apparait comme étant :
[15-Sep-2018 23:09:48] ERROR: [pool nextcloud] the chdir path ‘/var/www/nextcloud’ does not exist or is not a directory
[15-Sep-2018 23:09:48] ERROR: failed to post process the configuration
[15-Sep-2018 23:09:48] ERROR: FPM initialization failed
Et pour finir il est impossible d’accéder aux applications. J’ai un très jolie 502 bad gateway. Je pense que cela doit etre en rapport avec php7.