Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/03/2021, à 08:54

Honomatopic

Impossible de lancer mon environnement Lamp

Bonjour. Depuis ce matin, impossible de lancer mon environnement Lamp. Quand j'accède au http://127.0.0.1, mon navigateur dit que la connexion a échoué. Et quand je vais dans le terminal et je lance

sudo systemctl enable apache2

, j'ai cette erreur et je ne comprends pas pourquoi :

sudo systemctl enable apache2
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2

Pouvez-vous m'aider?

Hors ligne

#2 Le 29/03/2021, à 09:07

J5012

Re : Impossible de lancer mon environnement Lamp

systemctl status apache2

avais-tu precedemment fait une mise à jour ? si oui laquelle ?

Hors ligne

#3 Le 29/03/2021, à 09:14

Honomatopic

Re : Impossible de lancer mon environnement Lamp

J5012 a écrit :
systemctl status apache2

avais-tu precedemment fait une mise à jour ? si oui laquelle ?

Oui j'avais fais une mise à jour des paquets d'Ubuntu et lancer hier la commande

sudo apt update

La commande

systemctl status apache2

donne ceci :

● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
     Active: failed (Result: exit-code) since Mon 2021-03-29 09:47:14 CEST; 23m>
       Docs: https://httpd.apache.org/docs/2.4/

mars 29 09:47:14 Honomatopic-PC systemd[1]: Starting The Apache HTTP Server...
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00558: apache2: Could not re>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory: >
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory: >
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00014: Configuration check f>
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: Action 'start' failed.
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: The Apache error log may have >
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Control process ex>
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Failed with result>
mars 29 09:47:14 Honomatopic-PC systemd[1]: Failed to start The Apache HTTP Ser>
lines 1-15/15 (END)...skipping...
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2021-03-29 09:47:14 CEST; 23min ago
       Docs: https://httpd.apache.org/docs/2.4/

mars 29 09:47:14 Honomatopic-PC systemd[1]: Starting The Apache HTTP Server...
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress t>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-default.con>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00014: Configuration check failed
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: Action 'start' failed.
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: The Apache error log may have more information.
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Failed with result 'exit-code'.
mars 29 09:47:14 Honomatopic-PC systemd[1]: Failed to start The Apache HTTP Server.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)























































● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2021-03-29 09:47:14 CEST; 23min ago
       Docs: https://httpd.apache.org/docs/2.4/

mars 29 09:47:14 Honomatopic-PC systemd[1]: Starting The Apache HTTP Server...
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to supp>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-defau>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00014: Configuration check failed
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: Action 'start' failed.
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: The Apache error log may have more information.
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Failed with result 'exit-code'.
mars 29 09:47:14 Honomatopic-PC systemd[1]: Failed to start The Apache HTTP Server.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)





















● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor>
     Active: failed (Result: exit-code) since Mon 2021-03-29 09:47:14 CES>
       Docs: https://httpd.apache.org/docs/2.4/

mars 29 09:47:14 Honomatopic-PC systemd[1]: Starting The Apache HTTP Serv>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00558: apache2: Could >
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or direc>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or direc>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00014: Configuration c>
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: Action 'start' failed.
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: The Apache error log may>
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Control proc>
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Failed with >
mars 29 09:47:14 Honomatopic-PC systemd[1]: Failed to start The Apache HT>
~
~
~
~
~
lines 1-15/15 (END)























● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor pres>
     Active: failed (Result: exit-code) since Mon 2021-03-29 09:47:14 CEST; 23>
       Docs: https://httpd.apache.org/docs/2.4/

mars 29 09:47:14 Honomatopic-PC systemd[1]: Starting The Apache HTTP Server...
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00558: apache2: Could not r>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory:>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: (2)No such file or directory:>
mars 29 09:47:14 Honomatopic-PC apachectl[5599]: AH00014: Configuration check >
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: Action 'start' failed.
mars 29 09:47:14 Honomatopic-PC apachectl[5596]: The Apache error log may have>
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Control process e>
mars 29 09:47:14 Honomatopic-PC systemd[1]: apache2.service: Failed with resul>
mars 29 09:47:14 Honomatopic-PC systemd[1]: Failed to start The Apache HTTP Se>
~
~
~
~
~
~
~
lines 1-15/15 (END)

Hors ligne

#4 Le 29/03/2021, à 09:18

J5012

Re : Impossible de lancer mon environnement Lamp

juste le paquetage ou avec la mise à jour aussi ?

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Hors ligne

#5 Le 29/03/2021, à 09:23

Honomatopic

Re : Impossible de lancer mon environnement Lamp

J5012 a écrit :

juste le paquetage ou avec la mise à jour aussi ?

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

J'avais fais hier

sudo apt update

et il y a deux semaines, j'avais lancé

sudo apt upgrade

Hors ligne

#6 Le 29/03/2021, à 09:36

J5012

Re : Impossible de lancer mon environnement Lamp

quand tu decides de faire une mise à jour, tu dois absolument faire une mise à jour complete : avec toutes les interdependances qu'il y a en ce moment (la migration vers systemd n'est pas encore totalement finalisée), ca vaut mieux ...

donc update puis upgrade suivi d'un dist-upgrade ...

il semble que ton systeme ai perdu des fichiers ? essaie de boot en live et de faire une verif du disque systeme...

Hors ligne

#7 Le 29/03/2021, à 09:41

bbtux2

Re : Impossible de lancer mon environnement Lamp

Bonjour,
J'allais te dire de jeter un coup d’œil au fichier de logs, mais

No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log

Regarde si /var/log/apache2/ existe, que /var/log/apache2/   error.log | access.log | other_vhosts_access.log existent. Vérifie les droits de ces fichiers

$ ls -l /var/log/ 
total 2412
drwxr-x---  2 root    adm               4096 Mar 29 00:00 apache2
$ ls -l /var/log/apa*
total 936
-rw-r----- 1 root adm   5224 Mar 29 10:34 access.log
-rw-r----- 1 root adm    254 Mar 29 00:00 error.log
-rw-r----- 1 root adm 402489 Mar 29 10:40 other_vhosts_access.log

Dernière modification par bbtux2 (Le 29/03/2021, à 09:42)

Hors ligne

#8 Le 29/03/2021, à 09:46

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bbtux2 a écrit :

Bonjour,
J'allais te dire de jeter un coup d’œil au fichier de logs, mais

No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log

Regarde si /var/log/apache2/ existe, que /var/log/apache2/   error.log | access.log | other_vhosts_access.log existent. Vérifie les droits de ces fichiers

$ ls -l /var/log/ 
total 2412
drwxr-x---  2 root    adm               4096 Mar 29 00:00 apache2
$ ls -l /var/log/apa*
total 936
-rw-r----- 1 root adm   5224 Mar 29 10:34 access.log
-rw-r----- 1 root adm    254 Mar 29 00:00 error.log
-rw-r----- 1 root adm 402489 Mar 29 10:40 other_vhosts_access.log

Effectivement, j'ai perdu ces fichiers... comment faire pour les retrouver ?

Hors ligne

#9 Le 29/03/2021, à 09:53

Honomatopic

Re : Impossible de lancer mon environnement Lamp

J5012 a écrit :

quand tu decides de faire une mise à jour, tu dois absolument faire une mise à jour complete : avec toutes les interdependances qu'il y a en ce moment (la migration vers systemd n'est pas encore totalement finalisée), ca vaut mieux ...

donc update puis upgrade suivi d'un dist-upgrade ...

il semble que ton systeme ai perdu des fichiers ? essaie de boot en live et de faire une verif du disque systeme...


Effectivement, j'ai perdu des fichiers notamment pour les logs... comment faire pour les retrouver et comment faire pour booter en live et faire une verif du disque ?

Hors ligne

#10 Le 29/03/2021, à 10:15

bruno

Re : Impossible de lancer mon environnement Lamp

Donne le retour complet de :

ls -l /var/log/apache2

S'il n'existe plus peux recréer le dossier et les fichiers avec :

sudo mkdir /var/log/apache2
sudo touch /var/log/apache2/access.log
sudo touch /var/log/apache2/error.log
sudo chgrp -R adm /var/log/apache2

et relancer apache :

sudo systemctl retstart apache2

Hors ligne

#11 Le 29/03/2021, à 10:22

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bruno a écrit :

Donne le retour complet de :

ls -l /var/log/apache2

S'il n'existe plus peux recréer le dossier et les fichiers avec :

sudo mkdir /var/log/apache2
sudo touch /var/log/apache2/access.log
sudo touch /var/log/apache2/error.log
sudo chgrp -R adm /var/log/apache2

et relancer apache :

sudo systemctl retstart apache2

La commande

ls -l /var/log/apache2

me donne

ls: impossible d'accéder à '/var/log/apache2': Aucun fichier ou dossier de ce type

Voila...

Hors ligne

#12 Le 29/03/2021, à 10:47

bbtux2

Re : Impossible de lancer mon environnement Lamp

S'il n'existe plus peux recréer le dossier et les fichiers avec :

sudo mkdir /var/log/apache2
sudo touch /var/log/apache2/access.log
sudo touch /var/log/apache2/error.log
sudo chgrp -R adm /var/log/apache2

et relancer apache :

sudo systemctl retstart apache2

Hors ligne

#13 Le 29/03/2021, à 11:46

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bbtux2 a écrit :

S'il n'existe plus peux recréer le dossier et les fichiers avec :

sudo mkdir /var/log/apache2
sudo touch /var/log/apache2/access.log
sudo touch /var/log/apache2/error.log
sudo chgrp -R adm /var/log/apache2

et relancer apache :

sudo systemctl retstart apache2

Merci j'ai réussi à relancer Apache2 avec les commandes

sudo mkdir /var/log/apache2
sudo touch /var/log/apache2/access.log
sudo touch /var/log/apache2/error.log

et la commande

sudo systemctl restart apache2

.

Par contre je ne peux plus accéder aussi à MySql. Pouvez-vous m'aider à relancer le SGBD ?

Hors ligne

#14 Le 29/03/2021, à 12:21

bruno

Re : Impossible de lancer mon environnement Lamp

Retour complet de :

systemctl -l --no-pager status mysql

Hors ligne

#15 Le 29/03/2021, à 14:12

Honomatopic

Re : Impossible de lancer mon environnement Lamp

Voici le retour de la commande

systemctl -l --no-pager status mysql
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2021-03-29 15:03:05 CEST; 7min ago
   Main PID: 1396 (code=exited, status=1/FAILURE)
     Status: "Server startup in progress"

mars 29 15:03:05 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
mars 29 15:03:05 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 15:03:05 Honomatopic-PC systemd[1]: mysql.service: Start request repeated too quickly.
mars 29 15:03:05 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:05 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.

Hors ligne

#16 Le 29/03/2021, à 14:21

bruno

Re : Impossible de lancer mon environnement Lamp

On ne voit pas les erreurs.

Il faut regerader les logs :

sudo journalctl -l --no-pager -u mysql

et aussi :

cat /var/log/mysql/error.log

Hors ligne

#17 Le 29/03/2021, à 14:44

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bruno a écrit :

On ne voit pas les erreurs.

Il faut regerader les logs :

sudo journalctl -l --no-pager -u mysql

et aussi :

cat /var/log/mysql/error.log

Pour la commande

sudo journalctl -l --no-pager -u mysql

, voici le résultat :

-- Logs begin at Mon 2021-03-29 15:02:58 CEST, end at Mon 2021-03-29 15:40:25 CEST. --
mars 29 15:03:01 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 15:03:01 Honomatopic-PC mysqld[989]: 2021-03-29T13:03:01.945879Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 15:03:01 Honomatopic-PC mysqld[989]: 2021-03-29T13:03:01.946080Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 989
mars 29 15:03:01 Honomatopic-PC mysqld[989]: 2021-03-29T13:03:01.951886Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
mars 29 15:03:01 Honomatopic-PC mysqld[989]: 2021-03-29T13:03:01.952049Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 15:03:01 Honomatopic-PC mysqld[989]: 2021-03-29T13:03:01.952352Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 15:03:01 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 15:03:01 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:01 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 15:03:02 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 1.
mars 29 15:03:02 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 15:03:02 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 15:03:02 Honomatopic-PC mysqld[1126]: 2021-03-29T13:03:02.728134Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 15:03:02 Honomatopic-PC mysqld[1126]: 2021-03-29T13:03:02.728322Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1126
mars 29 15:03:02 Honomatopic-PC mysqld[1126]: 2021-03-29T13:03:02.732401Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
mars 29 15:03:02 Honomatopic-PC mysqld[1126]: 2021-03-29T13:03:02.732555Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 15:03:02 Honomatopic-PC mysqld[1126]: 2021-03-29T13:03:02.732826Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 15:03:02 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 15:03:02 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:02 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 15:03:02 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 2.
mars 29 15:03:02 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 15:03:02 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 15:03:03 Honomatopic-PC mysqld[1287]: 2021-03-29T13:03:03.364731Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 15:03:03 Honomatopic-PC mysqld[1287]: 2021-03-29T13:03:03.364895Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1287
mars 29 15:03:03 Honomatopic-PC mysqld[1287]: 2021-03-29T13:03:03.369133Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
mars 29 15:03:03 Honomatopic-PC mysqld[1287]: 2021-03-29T13:03:03.370510Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 15:03:03 Honomatopic-PC mysqld[1287]: 2021-03-29T13:03:03.370834Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 15:03:03 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 15:03:03 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:03 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 15:03:03 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3.
mars 29 15:03:03 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 15:03:03 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 15:03:03 Honomatopic-PC mysqld[1364]: 2021-03-29T13:03:03.942618Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 15:03:03 Honomatopic-PC mysqld[1364]: 2021-03-29T13:03:03.942800Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1364
mars 29 15:03:03 Honomatopic-PC mysqld[1364]: 2021-03-29T13:03:03.948033Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
mars 29 15:03:03 Honomatopic-PC mysqld[1364]: 2021-03-29T13:03:03.948198Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 15:03:03 Honomatopic-PC mysqld[1364]: 2021-03-29T13:03:03.948491Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 15:03:03 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 15:03:03 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:03 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 15:03:04 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4.
mars 29 15:03:04 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 15:03:04 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 15:03:04 Honomatopic-PC mysqld[1396]: 2021-03-29T13:03:04.709812Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 15:03:04 Honomatopic-PC mysqld[1396]: 2021-03-29T13:03:04.709989Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1396
mars 29 15:03:04 Honomatopic-PC mysqld[1396]: 2021-03-29T13:03:04.713842Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory
mars 29 15:03:04 Honomatopic-PC mysqld[1396]: 2021-03-29T13:03:04.713982Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 15:03:04 Honomatopic-PC mysqld[1396]: 2021-03-29T13:03:04.714211Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 15:03:04 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 15:03:04 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:04 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 15:03:05 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
mars 29 15:03:05 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 15:03:05 Honomatopic-PC systemd[1]: mysql.service: Start request repeated too quickly.
mars 29 15:03:05 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 15:03:05 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.

Et voici le résultat de la commande

cat /var/log/mysql/error.log
cat: /var/log/mysql/error.log: Aucun fichier ou dossier de ce type

Hors ligne

#18 Le 29/03/2021, à 14:49

bruno

Re : Impossible de lancer mon environnement Lamp

Et oui forcément :

[ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory

Tu as fait quoi pour bousiller tous les fichiers de logs ? Tu n'aurais pas utiliser un pseudo-outil de nettoyage, genre beachblit, par hasard ?

Même erreur, même solution :

sudo mkdir /var/log/mysql
sudo touch /var/log/mysql/error.log
sudo chown -R mysql:adm /var/log/mysql
sudo systemctl restart mysql

Dernière modification par bruno (Le 29/03/2021, à 15:53)

Hors ligne

#19 Le 29/03/2021, à 15:18

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bruno a écrit :

Et oui forcément :

[ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: No such file or directory

Tu as fait quoi pour bousiller tous les fichiers de logs ? Tu n'aurais pas utiliser un pseudo-outil de nettoyage, genre beachblit, par hasard ?

Même erreur, même solution :

sudo mkdir /var/log/mysql
sudo touch /var/log/mysql/error.log
sudo chown -R mysql:adm /var/log/mysql
sudo systemctl restart mysql

Alors j'ai lancé Stacer un outil de nettoyage que j'ai lancé hier. Je ne sais pas si c'est à cause de cela.

Ensuite la commande

sudo systemctl restart mysql 

me retourne cette erreur :

Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.

Dernière modification par Honomatopic (Le 29/03/2021, à 15:21)

Hors ligne

#20 Le 29/03/2021, à 15:26

bruno

Re : Impossible de lancer mon environnement Lamp

Alors j'ai lancé Stacer un outil de nettoyage que j'ai lancé hier. Je ne sais pas si c'est à cause de cela.

Moi je suis sûr que c’est à cause de cela. Tu n'es pas sous WIndows. Non seulement ce type d'outil est inutile mais en plus c'est la quasi certitude de bousiller son système.

Redonne les retours des commandes en #16.

Hors ligne

#21 Le 29/03/2021, à 15:30

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bruno a écrit :

Alors j'ai lancé Stacer un outil de nettoyage que j'ai lancé hier. Je ne sais pas si c'est à cause de cela.

Moi je suis sûr que c’est à cause de cela. Tu n'es pas sous WIndows. Non seulement ce type d'outil est inutile mais en plus c'est la quasi certitude de bousiller son système.

Redonne les retours des commandes en #16.

Pour la commande

sudo journalctl -l --no-pager -u mysql

, voici le résultat :

-- Logs begin at Mon 2021-03-29 16:24:41 CEST, end at Mon 2021-03-29 16:27:32 CEST. --
mars 29 16:24:44 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 16:24:45 Honomatopic-PC mysqld[991]: 2021-03-29T14:24:45.019779Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 16:24:45 Honomatopic-PC mysqld[991]: 2021-03-29T14:24:45.019942Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 991
mars 29 16:24:45 Honomatopic-PC mysqld[991]: 2021-03-29T14:24:45.027762Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
mars 29 16:24:45 Honomatopic-PC mysqld[991]: 2021-03-29T14:24:45.027991Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 16:24:45 Honomatopic-PC mysqld[991]: 2021-03-29T14:24:45.028518Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 16:24:45 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 16:24:45 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 16:24:45 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 16:24:45 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 1.
mars 29 16:24:45 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 16:24:45 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 16:24:45 Honomatopic-PC mysqld[1077]: 2021-03-29T14:24:45.625192Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 16:24:45 Honomatopic-PC mysqld[1077]: 2021-03-29T14:24:45.625374Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1077
mars 29 16:24:45 Honomatopic-PC mysqld[1077]: 2021-03-29T14:24:45.629364Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
mars 29 16:24:45 Honomatopic-PC mysqld[1077]: 2021-03-29T14:24:45.629516Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 16:24:45 Honomatopic-PC mysqld[1077]: 2021-03-29T14:24:45.629813Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 16:24:45 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 16:24:45 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 16:24:45 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 16:24:45 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 2.
mars 29 16:24:45 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 16:24:45 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 16:24:46 Honomatopic-PC mysqld[1230]: 2021-03-29T14:24:46.321563Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 16:24:46 Honomatopic-PC mysqld[1230]: 2021-03-29T14:24:46.321733Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1230
mars 29 16:24:46 Honomatopic-PC mysqld[1230]: 2021-03-29T14:24:46.325591Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
mars 29 16:24:46 Honomatopic-PC mysqld[1230]: 2021-03-29T14:24:46.326192Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 16:24:46 Honomatopic-PC mysqld[1230]: 2021-03-29T14:24:46.326482Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 16:24:46 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 16:24:46 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 16:24:46 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 16:24:46 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3.
mars 29 16:24:46 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 16:24:46 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 16:24:46 Honomatopic-PC mysqld[1317]: 2021-03-29T14:24:46.897222Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 16:24:46 Honomatopic-PC mysqld[1317]: 2021-03-29T14:24:46.897381Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1317
mars 29 16:24:46 Honomatopic-PC mysqld[1317]: 2021-03-29T14:24:46.900592Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
mars 29 16:24:46 Honomatopic-PC mysqld[1317]: 2021-03-29T14:24:46.900764Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 16:24:46 Honomatopic-PC mysqld[1317]: 2021-03-29T14:24:46.901064Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 16:24:46 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 16:24:46 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 16:24:46 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 16:24:47 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4.
mars 29 16:24:47 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 16:24:47 Honomatopic-PC systemd[1]: Starting MySQL Community Server...
mars 29 16:24:47 Honomatopic-PC mysqld[1336]: 2021-03-29T14:24:47.559321Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
mars 29 16:24:47 Honomatopic-PC mysqld[1336]: 2021-03-29T14:24:47.559455Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 1336
mars 29 16:24:47 Honomatopic-PC mysqld[1336]: 2021-03-29T14:24:47.562382Z 0 [ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied
mars 29 16:24:47 Honomatopic-PC mysqld[1336]: 2021-03-29T14:24:47.562537Z 0 [ERROR] [MY-010119] [Server] Aborting
mars 29 16:24:47 Honomatopic-PC mysqld[1336]: 2021-03-29T14:24:47.562817Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23-0ubuntu0.20.04.1)  (Ubuntu).
mars 29 16:24:47 Honomatopic-PC systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
mars 29 16:24:47 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 16:24:47 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.
mars 29 16:24:47 Honomatopic-PC systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
mars 29 16:24:47 Honomatopic-PC systemd[1]: Stopped MySQL Community Server.
mars 29 16:24:47 Honomatopic-PC systemd[1]: mysql.service: Start request repeated too quickly.
mars 29 16:24:47 Honomatopic-PC systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 29 16:24:47 Honomatopic-PC systemd[1]: Failed to start MySQL Community Server.

et aussi :

cat /var/log/mysql/error.log

Rien ne m'affiche....

Hors ligne

#22 Le 29/03/2021, à 15:35

bruno

Re : Impossible de lancer mon environnement Lamp

L'erreur est toujours la même :

[ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log'

Est-ce que le fichier et le dossier existent ? Retour de :

ls -al /var/log/mysql

Hors ligne

#23 Le 29/03/2021, à 15:39

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bruno a écrit :

L'erreur est toujours la même :

[ERROR] [MY-010187] [Server] Could not open file '/var/log/mysql/error.log'

Est-ce que le fichier et le dossier existent ? Retour de :

ls -al /var/log/mysql

Oui il existe :

ls -la /var/log/mysql
total 8
drwxr-xr-x 2 root root   4096 mars  29 16:14 .
drwxr-xr-x 7 root syslog 4096 mars  29 16:24 ..
-rw-r--r-- 1 root root      0 mars  29 16:14 error.log
honore@Honomatopic-PC:~$ cd var/log/mysql
bash: cd: var/log/mysql: Aucun fichier ou dossier de ce type
honore@Honomatopic-PC:~$ cd /var/log/mysql
honore@Honomatopic-PC:/var/log/mysql$ sudo chmod 777 error.log
honore@Honomatopic-PC:/var/log/mysql$ ls -la 
total 8
drwxr-xr-x 2 root root   4096 mars  29 16:14 .
drwxr-xr-x 7 root syslog 4096 mars  29 16:24 ..
-rwxrwxrwx 1 root root      0 mars  29 16:14 error.log

Hors ligne

#24 Le 29/03/2021, à 15:47

bruno

Re : Impossible de lancer mon environnement Lamp

Il manquait un / dans une de mes commandes en #18 (attention au copier/coller de commandes, c'est dangereurx !):

sudo chown -R mysql:adm /var/log/mysql

puis

sudo chmod 640 /var/log/mysql/error.log

pour réparer l'énorme bêtise du chmod 777
et enfin :

sudo systemctl restart mysql

Dernière modification par bruno (Le 29/03/2021, à 15:48)

Hors ligne

#25 Le 29/03/2021, à 15:50

Honomatopic

Re : Impossible de lancer mon environnement Lamp

bruno a écrit :

Il manquait un / dans une de mes commandes en #18 (attention au copier/coller de commandes, c'est dangereurx !):

sudo chown -R mysql:adm /var/log/mysql

puis

sudo chmod 640 /var/log/mysql/error.log

pour réparer l'énorme bêtise du chmod 777
et enfin :

sudo systemctl restart mysql

Oui cela remarche merci beaucoup Bruno.

Je vais de ce pas désinstaller Stacer.

Hors ligne