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

systemd script not working

    XMLWordPrintable

Details

    Description

      when trying to start mariadb via systemctl, I'm getting this error:

      WSREP: Failed to start mysqld for wsrep recovery: '/usr/local/mysql/bin/galera_recovery: line 71: ./bin/mysqld: No such file or directory'
      

      seems that the binary "galera-recovery" is neither searching the mysqld in the same folder as the binary itself nor in the path variable but instead expects the root to be /usr/local/mysql

      Workaround: I just modified line 77 of "mariadb.service":

      #before:
       VAR=`/usr/local/mysql/bin/galera_recovery`; [ $? -eq 0 ] \
      #after
       VAR=`cd /usr/local/mysql; /usr/local/mysql/bin/galera_recovery`; [ $? -eq 0 ] \
      

      Attachments

        Activity

          People

            sysprg Julius Goryavsky
            kurschies Benjamin Kurschies
            Votes:
            1 Vote for this issue
            Watchers:
            9 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.