Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18854

mariadb fails with timeout, because of apparmor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Stalled (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.3.13
    • Fix Version/s: 10.3
    • Component/s: Scripts & Clients
    • Labels:
    • Environment:
      ubuntu 18.04
      Linux tuvok 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

      Description

      When starting mariadb from a fresh install, it always fails to start with a timeout

      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:20 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:21 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="unlink" profile="/usr/sbin/mysqld" name="/var/lib/mysql/tc.log" pid=20923 comm="mysqld" requested_mask="d" denied_mask="d" fsuid=125 ouid=125
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="unlink" profile="/usr/sbin/mysqld" name="/run/mysqld/mysqld.pid" pid=20923 comm="mysqld" requested_mask="d" denied_mask="d" fsuid=125 ouid=125
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="signal" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" requested_mask="send" denied_mask="send" signal=term peer="/usr/sbin/mysqld"
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="signal" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" requested_mask="receive" denied_mask="receive" signal=term peer="/usr/sbin/mysqld"
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="create" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="getsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="getopt" denied_mask="getopt" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="setsockopt" profile="/usr/sbin/mysqld" pid=20923 comm="mysqld" family="unix" sock_type="dgram" protocol=0 requested_mask="setopt" denied_mask="setopt" addr=none
      Mar 07 19:33:22 compy audit[20923]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=20923 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=125 ouid=0
      Mar 07 19:33:22 compy systemd[1]: mariadb.service: Failed with result 'timeout'.
      Mar 07 19:33:22 compy systemd[1]: Failed to start MariaDB 10.1.38 database server.
      -- Subject: Unit mariadb.service has failed
      -- Defined-By: systemd
      -- Support: http://www.ubuntu.com/support
      -- 
      -- Unit mariadb.service has failed.
      -- 
      -- The result is RESULT.
      

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            illumilore ill
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: