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

mariabackup failed if password is passed via environment variable

Details

    Description

      The mariabackup / Galera SST (via mariabackup) failed if password is passed to it (from the Galera SST script) via MYSQL_PWD environment variable.

      An example of a failure, taken from buildbot logs:

      + sudo mysqld_safe --defaults-extra-file=/home/buildbot/node2.cnf --user=mysql
      ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (111)
      + sleep 3
      210401 02:24:22 mysqld_safe Adding '/usr/lib/x86_64-linux-gnu/libjemalloc.so.1' to LD_PRELOAD for mysqld
      210401 02:24:22 mysqld_safe Logging to '/var/lib/node2/node2.err'.
      210401 02:24:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/node2
      + for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      + mysql -uroot -prootpass --port=8302 --protocol=tcp -e 'select * from mgc.t1'
      ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 104
      + sleep 3
      + for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      + mysql -uroot -prootpass --port=8302 --protocol=tcp -e 'select * from mgc.t1'
      ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (111)
      + sleep 3

      Attachments

        Issue Links

          Activity

            sysprg Julius Goryavsky created issue -
            sysprg Julius Goryavsky made changes -
            Field Original Value New Value
            Status Open [ 1 ] Confirmed [ 10101 ]
            sysprg Julius Goryavsky made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            sysprg Julius Goryavsky made changes -
            Assignee Julius Goryavsky [ sysprg ] Jan Lindström [ jplindst ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Jan Lindström [ jplindst ] Vladislav Vaintroub [ wlad ]
            wlad Vladislav Vaintroub made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            wlad Vladislav Vaintroub made changes -
            Assignee Vladislav Vaintroub [ wlad ] Julius Goryavsky [ sysprg ]
            sysprg Julius Goryavsky made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            sysprg Julius Goryavsky made changes -
            issue.field.resolutiondate 2021-04-06 12:12:14.0 2021-04-06 12:12:14.947
            sysprg Julius Goryavsky made changes -
            Fix Version/s 10.2.38 [ 25207 ]
            Fix Version/s 10.3.29 [ 25206 ]
            Fix Version/s 10.4.19 [ 25205 ]
            Fix Version/s 10.5.10 [ 25204 ]
            Fix Version/s 10.6.0 [ 24431 ]
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            sysprg Julius Goryavsky made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 120688 ] MariaDB v4 [ 159108 ]
            Yurchenko Alexey made changes -

            People

              sysprg Julius Goryavsky
              sysprg Julius Goryavsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.