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 17/06/2018, à 12:16

zafavazeba

MariaDB se lance et s'arrête juste après

Bonjour à tous,

Je viens d'installer Ubuntu 18.04 et j'ai tenté de suivre la procédure d'installation de LAMP disponible sur le site, mais impossible de faire fonctionner le serveur MariaDB.
Que ce soit au démarrage ou quand je le lance à la main, ça fonctionne : juste après l'exécution de la commande, je peux taper la commande "mysql" et ensuite taper des requêtes.
Sauf qu'au bout d'environ 2 minutes, le serveur s'arrête...

Voilà les logs que j'ai dans /var/log/mysql/error.log :

2018-06-17 12:07:36 139709980953728 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: The InnoDB memory heap is disabled
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Using Linux native AIO
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Using SSE crc32 instructions
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Completed initialization of buffer pool
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Highest supported file format is Barracuda.
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: 128 rollback segment(s) are active.
2018-06-17 12:07:36 139709980953728 [Note] InnoDB: Waiting for purge to start
2018-06-17 12:07:36 139709980953728 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.36-82.2 started; log sequence number 1616913
2018-06-17 12:07:36 139709980953728 [Note] Plugin 'FEEDBACK' is disabled.
2018-06-17 12:07:36 139709313447680 [Note] InnoDB: Dumping buffer pool(s) not yet started
2018-06-17 12:07:36 139709980953728 [Note] Server socket created on IP: '127.0.0.1'.
2018-06-17 12:07:36 139709980953728 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.29-MariaDB-6'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Ubuntu 18.04
2018-06-17 12:09:06 139709980374784 [Note] /usr/sbin/mysqld: Normal shutdown

2018-06-17 12:09:06 139709980374784 [Note] Event Scheduler: Purging the queue. 0 events
2018-06-17 12:09:06 139709372143360 [Note] InnoDB: FTS optimize thread exiting.
2018-06-17 12:09:06 139709980374784 [Note] InnoDB: Starting shutdown...
2018-06-17 12:09:06 139709980374784 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-06-17 12:09:08 139709980374784 [Note] InnoDB: Shutdown completed; log sequence number 1616923
2018-06-17 12:09:08 139709980374784 [Note] /usr/sbin/mysqld: Shutdown complete

Et dans le status du serveur :

mariadb.service - MariaDB database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Sun 2018-06-17 12:09:08 CEST; 6min ago
  Process: 2705 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=0/S
  Process: 2618 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $?
  Process: 2616 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 2615 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
 Main PID: 2705 (code=exited, status=0/SUCCESS)

juin 17 12:07:35 zafavazeba-ubuntu systemd[1]: Starting MariaDB database server...
juin 17 12:07:36 zafavazeba-ubuntu mysqld[2705]: 2018-06-17 12:07:36 139709980953728 [Note] /usr/sbin/mysqld (mysqld 10.1.29-M
juin 17 12:09:06 zafavazeba-ubuntu systemd[1]: mariadb.service: Start operation timed out. Terminating.
juin 17 12:09:08 zafavazeba-ubuntu systemd[1]: mariadb.service: Failed with result 'timeout'.
juin 17 12:09:08 zafavazeba-ubuntu systemd[1]: Failed to start MariaDB database server.

Je précise que je n'ai rien changé dans la config, j'ai juste suivi à la lettre le tuto et impossible de le faire marcher. J'ai bien trouvé des problèmes similaires sur le web, mais à chaque fois il y  avait des messages d'erreur dans les logs, tandis que je n'ai rien qui indique une erreur, juste que ça s'arrête tout seul...

Je ne sais pas si ça peut être dû à ça, mais au début j'avais lancé l'installation de mysql-server, puis préférant maria j'ai fais un "sudo apt purge mysql-server" et j'ai ensuite installé MariaDB à la place.

Merci d'avance !

Dernière modification par zafavazeba (Le 17/06/2018, à 17:11)

Hors ligne

#2 Le 17/06/2018, à 12:59

bruno

Re : MariaDB se lance et s'arrête juste après

Bonjour,

Je vois deux choses qui me semblent anomales :
- dans les logs :

InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.36-82.2 started; log sequence number 1616913

Ça c'est spécifique à PerconaDB qui par ailleurs n'est pas présent dans les dépôts Ubuntu. À vérifier.
- dans le statut du serveur :

  Process: 2705 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=0/S

Ça ressemble à une tentative de lancement de mysqld, donc a une désinstallation incomplète de mysql-server ou de percona.

Il faudrait donc savoir ce que tu as fait avant (installation/désinstallation) et si tu n'utilises bien que des dépôts officiels.

Regarde à la fin de la doc lamp au point 5.8

Dernière modification par bruno (Le 17/06/2018, à 13:00)

Hors ligne

#3 Le 17/06/2018, à 17:22

zafavazeba

Re : MariaDB se lance et s'arrête juste après

Bonjour bruno et merci pour ta réponse.

J'ai suivi les étapes décrite dans le point 5.8 de la doc sur LAMP, puis j'ai réinstallé mariadb-server mais toujours le même soucis.

Mon installation d'Ubuntu était clean, elle venait de se terminer, et j'ai commencé l'installation de LAMP directement après le premier lancement, donc aucune raison que ça ait utilisé un autre dépôt que les officiels...
Dans le doute voilà le contenu de mon sources.list :

deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe

deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

Je n'avais jamais entendu parlé de PerconaDB d'ailleurs, je ne l'ai pas installé intentionnellement, ça devait être une dépendance à quelque chose...

Les seuls autres choses que j'ai installé ce sont des logiciels depuis "Logiciels Ubuntu" mais ça m'étonnerait que ça ait un impact.

Si tu as une autre idée je suis preneur !
Merci.

Hors ligne

#4 Le 17/06/2018, à 18:30

bruno

Re : MariaDB se lance et s'arrête juste après

Bon, les deux points signalés plus haut n'était sans doute pas en cause.
Tu as peut-être un problème avec apparmor, mais on ne voit rien là dessus dans les logs. Il faut tenter de désactiver le profil apparmor de mysqld :

sudo aa-disable /usr/sbin/mysqld
sudo systemctl reload apparmor

et redémarrer mariadb.

Hors ligne

#5 Le 17/06/2018, à 20:01

zafavazeba

Re : MariaDB se lance et s'arrête juste après

Je n'avais même pas apparmor-utils d'installé, si ça a une importance...
Je l'ai installé et fait ce que tu m'as dit, ça m'a confirmé "Disabling /usr/sbin/mysqld"
Mais toujours le même soucis, je te joint les logs système qui ont l'air plus détaillés, même si je ne comprend pas tout ce qu'ils contiennent, je vois beaucoup de apparmor="DENIED", je dirai que ça sent pas bon...

-- L'unité (unit) apparmor.service a commencé à recharger sa configuration.
juin 17 19:47:12 zafavazeba-ubuntu apparmor[3051]:  * Reloading AppArmor profiles
juin 17 19:47:12 zafavazeba-ubuntu apparmor[3051]: Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
juin 17 19:47:12 zafavazeba-ubuntu audit[3082]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/man" pid=3082 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3082]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="man_filter" pid=3082 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3082]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="man_groff" pid=3082 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.497:54): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/man" pid=3082 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.497:55): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="man_filter" pid=3082 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.497:56): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="man_groff" pid=3082 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3083]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/sbin/dhclient" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3083]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3083]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3083]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.577:57): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/sbin/dhclient" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.577:58): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.577:59): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.577:60): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=3083 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3078]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/snap/core/4650/usr/lib/snapd/snap-confine" pid=3078 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.605:61): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/snap/core/4650/usr/lib/snapd/snap-confine" pid=3078 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3078]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/snap/core/4650/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=3078 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.633:62): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/snap/core/4650/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=3078 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3087]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/sbin/cups-browsed" pid=3087 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257632.645:63): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/sbin/cups-browsed" pid=3087 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3085]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=3085 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3091]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/sbin/ippusbxd" pid=3091 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3085]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=3085 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu apparmor[3051]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.mysqld
juin 17 19:47:12 zafavazeba-ubuntu apparmor[3051]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
juin 17 19:47:12 zafavazeba-ubuntu audit[3097]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/sbin/tcpdump" pid=3097 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3089]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=3089 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3089]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=3089 comm="apparmor_parser"
juin 17 19:47:12 zafavazeba-ubuntu audit[3089]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd//third_party" pid=3089 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3079]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/evince" pid=3079 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3079]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=3079 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3079]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/evince-previewer" pid=3079 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3079]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/evince-previewer//sanitized_helper" pid=3079 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3079]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=3079 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3079]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/evince-thumbnailer//sanitized_helper" pid=3079 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3114]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.atom.atom" pid=3114 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3117]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.atom.apm" pid=3117 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3115]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.core.hook.configure" pid=3115 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3119]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.gnome-characters.gnome-characters" pid=3119 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3125]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.intellij-idea-ultimate.intellij-idea-ultimate" pid=3125 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3116]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.gnome-calculator.gnome-calculator" pid=3116 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3121]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.gnome-logs.gnome-logs" pid=3121 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3123]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.gnome-system-monitor.gnome-system-monitor" pid=3123 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3133]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.filebug" pid=3133 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3127]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.base" pid=3127 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3129]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.calc" pid=3129 comm="apparmor_parser"
juin 17 19:47:14 zafavazeba-ubuntu audit[3131]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.draw" pid=3131 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3135]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.impress" pid=3135 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3143]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.atom" pid=3143 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3145]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.core" pid=3145 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3147]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.gnome-calculator" pid=3147 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3149]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.gnome-characters" pid=3149 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3137]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.libreoffice" pid=3137 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3151]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.gnome-logs" pid=3151 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3155]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.intellij-idea-ultimate" pid=3155 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3154]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.gnome-system-monitor" pid=3154 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3139]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.math" pid=3139 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3157]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.libreoffice" pid=3157 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu audit[3141]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.libreoffice.writer" pid=3141 comm="apparmor_parser"
juin 17 19:47:15 zafavazeba-ubuntu apparmor[3051]:    ...done.
juin 17 19:47:15 zafavazeba-ubuntu systemd[1]: Reloaded AppArmor initialization.
-- Subject: L'unité (unit) apparmor.service a terminé de recharger configuration
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) apparmor.service a terminé de recharger configuration,
-- avec le résultat RESULT.
juin 17 19:47:15 zafavazeba-ubuntu sudo[3048]: pam_unix(sudo:session): session closed for user root
juin 17 19:47:24 zafavazeba-ubuntu systemd[1]: Starting Message of the Day...
-- Subject: L'unité (unit) motd-news.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) motd-news.service a commencé à démarrer.
juin 17 19:47:25 zafavazeba-ubuntu 50-motd-news[3194]:  * Meltdown, Spectre and Ubuntu: What are the attack vectors,
juin 17 19:47:25 zafavazeba-ubuntu 50-motd-news[3194]:    how the fixes work, and everything else you need to know
juin 17 19:47:25 zafavazeba-ubuntu 50-motd-news[3194]:    - https://ubu.one/u2Know
juin 17 19:47:25 zafavazeba-ubuntu systemd[1]: Started Message of the Day.
-- Subject: L'unité (unit) motd-news.service a terminé son démarrage
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) motd-news.service a terminé son démarrage, avec le résultat RESULT.
juin 17 19:47:30 zafavazeba-ubuntu sudo[3221]:  zafavazeba  : TTY=pts/0 ; PWD=/home/zafavazeba  ; USER=root ; COMMAND=/usr/sbin/service mysql status
juin 17 19:47:30 zafavazeba-ubuntu sudo[3221]: pam_unix(sudo:session): session opened for user root by (uid=0)
juin 17 19:47:30 zafavazeba-ubuntu sudo[3221]: pam_unix(sudo:session): session closed for user root
juin 17 19:47:33 zafavazeba-ubuntu sudo[3227]:  zafavazeba  : TTY=pts/0 ; PWD=/home/zafavazeba  ; USER=root ; COMMAND=/usr/sbin/service mysql restart
juin 17 19:47:33 zafavazeba-ubuntu sudo[3227]: pam_unix(sudo:session): session opened for user root by (uid=0)
juin 17 19:47:33 zafavazeba-ubuntu systemd[1]: Starting MariaDB database server...
-- Subject: L'unité (unit) mariadb.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) mariadb.service a commencé à démarrer.
juin 17 19:47:34 zafavazeba-ubuntu mysqld[3323]: 2018-06-17 19:47:34 140089531333760 [Note] /usr/sbin/mysqld (mysqld 10.1.29-MariaDB-6) starting as process 3323 ...
juin 17 19:47:34 zafavazeba-ubuntu audit[3323]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:47:34 zafavazeba-ubuntu kernel: kauditd_printk_skb: 37 callbacks suppressed
juin 17 19:47:34 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257654.221:101): apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:47:54 zafavazeba-ubuntu sudo[3364]:  zafavazeba  : TTY=pts/1 ; PWD=/home/zafavazeba  ; USER=root ; COMMAND=/usr/sbin/service mysql status
juin 17 19:47:54 zafavazeba-ubuntu sudo[3364]: pam_unix(sudo:session): session opened for user root by (uid=0)
juin 17 19:47:59 zafavazeba-ubuntu sudo[3364]: pam_unix(sudo:session): session closed for user root
juin 17 19:49:03 zafavazeba-ubuntu systemd[1]: mariadb.service: Start operation timed out. Terminating.
juin 17 19:49:03 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257743.785:102): apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:49:03 zafavazeba-ubuntu audit[3323]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:49:06 zafavazeba-ubuntu audit[3323]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:49:06 zafavazeba-ubuntu audit[3323]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:49:06 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257746.005:103): apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:49:06 zafavazeba-ubuntu kernel: audit: type=1400 audit(1529257746.005:104): apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=3323 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=121 ouid=0
juin 17 19:49:06 zafavazeba-ubuntu systemd[1]: mariadb.service: Failed with result 'timeout'.
juin 17 19:49:06 zafavazeba-ubuntu systemd[1]: Failed to start MariaDB database server.
-- Subject: L'unité (unit) mariadb.service a échoué
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) mariadb.service a échoué, avec le résultat RESULT.
juin 17 19:49:06 zafavazeba-ubuntu sudo[3227]: pam_unix(sudo:session): session closed for user root
juin 17 19:49:29 zafavazeba-ubuntu pkexec[3388]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
juin 17 19:49:29 zafavazeba-ubuntu pkexec[3388]: zafavazeba : Executing command [USER=root] [TTY=unknown] [CWD=/home/zafavazeba ] [COMMAND=/usr/lib/update-notifier/package-system-locked]
juin 17 19:51:54 zafavazeba-ubuntu dbus-daemon[1653]: [session uid=1000 pid=1653] Activating service name='org.gnome.ControlCenter.SearchProvider' requested by ':1.13' (uid=1000 pid=1790 comm="/usr/bin/gnome-shell " label="unconfined")
juin 17 19:51:54 zafavazeba-ubuntu dbus-daemon[1653]: [session uid=1000 pid=1653] Activating service name='org.gnome.Nautilus' requested by ':1.13' (uid=1000 pid=1790 comm="/usr/bin/gnome-shell " label="unconfined")
juin 17 19:51:54 zafavazeba-ubuntu dbus-daemon[1653]: [session uid=1000 pid=1653] Activating service name='org.gnome.seahorse.Application' requested by ':1.13' (uid=1000 pid=1790 comm="/usr/bin/gnome-shell " label="unconfined")
juin 17 19:51:54 zafavazeba-ubuntu dbus-daemon[1653]: [session uid=1000 pid=1653] Successfully activated service 'org.gnome.ControlCenter.SearchProvider'
juin 17 19:51:54 zafavazeba-ubuntu dbus-daemon[1653]: [session uid=1000 pid=1653] Successfully activated service 'org.gnome.Nautilus'
juin 17 19:51:54 zafavazeba-ubuntu dbus-daemon[1653]: [session uid=1000 pid=1653] Successfully activated service 'org.gnome.seahorse.Application'
juin 17 19:51:56 zafavazeba-ubuntu PackageKit[1410]: resolve transaction /344_eaaeebdd from uid 1000 finished with success after 306ms
juin 17 19:52:48 zafavazeba-ubuntu /usr/lib/gdm3/gdm-x-session[1644]: -2

Merci pour le temps que tu m'as déjà accordé !

Dernière modification par zafavazeba (Le 17/06/2018, à 21:21)

Hors ligne

#6 Le 18/06/2018, à 09:50

bruno

Re : MariaDB se lance et s'arrête juste après

C'est bien un problème avec apparmor.
Étrange que les commandes en #4 n'aient pas fonctionné.

Peux-tu donner le contenu du fichier /etc/appararmor.d/usr.sbin.mysqld. Normalment ce fichier ne devrait contenir que des commentaires

Hors ligne

#7 Le 18/06/2018, à 13:32

krodelabestiole

Re : MariaDB se lance et s'arrête juste après

j'ai ajouté une doc : https://doc.ubuntu-fr.org/mysql#problemes_courants

à noter qu'il faut bien redémarrer la machine après sudo aa-complain /usr/sbin/mysqld

Dernière modification par krodelabestiole (Le 18/06/2018, à 13:32)

Hors ligne

#8 Le 18/06/2018, à 14:25

bruno

Re : MariaDB se lance et s'arrête juste après

krodelabestiole a écrit :

à noter qu'il faut bien redémarrer la machine après sudo aa-complain /usr/sbin/mysqld

Cela explique que ma suggestion en #4 n'ait pas fonctionné.
[HS]Je trouve qu'il y a quand me beaucoup de défauts sur cette version 18.04…[/HS]

Hors ligne

#9 Le 18/06/2018, à 19:34

zafavazeba

Re : MariaDB se lance et s'arrête juste après

En effet, je n'avais bêtement pas essayé, mais en démarrant à l'instant ma machine, je constate que le service est bien actif !
Merci pour votre aide !

Hors ligne