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

Galera: mysqld_safe fails to execute position recovery, server does not start

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • None
    • 5.5.32-galera
    • None

    Description

      After installation e.g. from an RPM, server does not start, the error contains the following:

      130201 15:43:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
      130201 15:43:41 mysqld_safe WSREP: Running position recovery with --log_error=/tmp/tmp.6j0kAvgklV
      nohup: missing operand
      Try `nohup --help' for more information.
      130201 15:43:41 mysqld_safe WSREP: Failed to recover position: 

      Some digging shows that eval_log_error attempts to execute nohup without parameters instead of a full mysqld command, because the subroutine ignores all arguments except for the first one. The following patch seems to fix the issue, but please make sure that's the right way to do it, and that it's the only place where it should be fixed:

      --- ./mysqld_safe	2013-02-01 15:44:53.173436006 +0400
      +++ /usr/bin/mysqld_safe	2013-02-01 15:46:06.883696900 +0400
      @@ -147,7 +147,7 @@
       }
       
       eval_log_error () {
      -  local cmd="$1"
      +  local cmd="$*"
         case $logging in
           file) cmd="$cmd >> "`shell_quote_string "$err_log"`" 2>&1" ;;
           syslog)

      Attachments

        Activity

          People

            seppo Seppo Jaakola
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.