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

"Got notification message from PID xxxx, but reception only permitted for main PID yyyy" in systemd during SST

Details

    Description

      During SST, sometimes MariaDB service systemd failed with

      "Got notification message from PID xxxx, but reception only permitted for main PID yyyy"

      Found an interesting page, which face the same issue:

      https://community.centminmod.com/threads/mariadb-failed-to-restart-at-first-install.18780/

      Root Cause Analysis here is:

      1.The issue may happen when reaching system limits in term of available PIDs, causing PID recycling to be used.

      2. systemd is not always able to find the cgroup the systemd notification was issued from, typically when services spawn many short-living processes.

      3. In such case, systemd collects the PID of the process that sent the notification, browses the list of processes it monitors and delivers the notification to the service that once had a process with that same PID attached to it, which may be wrong in case PIDs were recycled.
      Usually, this has no impact, because usual systemd notification is just I'm alive.
      In case a service defined in systemd with the Type=Notify and NotifyAccess=All settings shuts down quickly before its STOPPING=1 notification was processed by systemd, then systemd may deliver the notification to another service and make that service shut down instead.

      So maybe
      NotifyAccess=all
      is a solution, but I can't estimate a possible drawback.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Jan Lindström (Inactive) made transition -
            Open Closed
            572d 1h 13m 1
            Richard Stracke made transition -
            Closed Stalled
            4d 2h 58m 1
            Denis Protivensky made transition -
            Stalled In Progress
            58d 21h 27m 1
            Denis Protivensky made transition -
            In Progress Needs Feedback
            27s 1
            Sergei Golubchik made transition -
            Needs Feedback Open
            28d 3h 6m 1
            Sergei Golubchik made transition -
            Open In Progress
            2d 5h 30m 1
            Sergei Golubchik made transition -
            In Progress In Testing
            6s 1
            Sergei Golubchik made transition -
            In Testing Closed
            8h 6m 1

            People

              serg Sergei Golubchik
              Richard Richard Stracke
              Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.