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

MariaDB-Galera-server uses 'socat', but 'socat' is not in the dependency list

Details

    Description

      Scripts '/usr/bin/wsrep_sst_xtrabackup' and '/usr/bin/wsrep_sst_xtrabackup-v2' are part of 'mariadb-galera-server' and they use 'socat' command. If 'mariadb-galera-server' is installed on the fresh system wich does noit have 'socat' package installed node joining operation failed.

      Steps to reproduce:
      1. use two fresh CentOS6 or Debian7 machies to create a cluster
      2. install 'mariadb-galera-server' package on both
      3. start node1
      4. try to join node2 to the cluster

      Expected result: two-nodes cluster is running

      Actual result:
      node2 start operation failed
      log contains:
      WSREP_SST: [INFO] Using socat as streamer (20140505 14:32:41.368)
      *which: no socat in
      (/usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin)**
      **WSREP_SST: [ERROR] socat not found in path:

      Note: CentOS6 default repositories does not contain 'socat' package. It is available from EPEL repo. Should it be mentioned somewhere in README?

      It would be good to check if scripts are using other commands that are not mentioned in the dependecy list (even 'sudo' is not installed by default in some distributions)
      nc, grep, rsync, tar, gawk, findutils, sed? coreutils util-linux curl net-tools?

      Attachments

        Issue Links

          Activity

            one note regarding dependecy on 'nc package: in Debian7 default nc is netcat-traditional which gives an error "nc: invalid option – ‘d’” in the sst.err log file. Fixed by installing netcat-openbsd package. Should it be also reflected in the mariadb-galera-server package dependecy list?

            tturenko Timofey Turenko added a comment - one note regarding dependecy on 'nc package: in Debian7 default nc is netcat-traditional which gives an error "nc: invalid option – ‘d’” in the sst.err log file. Fixed by installing netcat-openbsd package. Should it be also reflected in the mariadb-galera-server package dependecy list?
            nirbhay_c Nirbhay Choubey (Inactive) added a comment - Fix pushed in maria-5.5-galera and maria-10.0-galera. http://bazaar.launchpad.net/~maria-captains/maria/maria-5.5-galera/revision/3494
            kpvadm Pavel Kaidalov added a comment - - edited

            This problem still exists in MariaDB-server-10.1.12 and 10.1.13 on CentOS 6.7. Here is my logs from second empty Galera node:

            2016-03-29 10:05:52 140481556117248 [Note] WSREP: Running: 'wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '/var/lib/mysql/' --parent
            '31307' --binlog 'mysql-bin' '
            WSREP_SST: [INFO] Streaming with tar (20160329 10:05:53.037)
            WSREP_SST: [INFO] Using socat as streamer (20160329 10:05:53.039)
            which: no socat in (/usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin)
            WSREP_SST: [ERROR] socat not found in path: /usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin (20160329 10:05:53.041)
            2016-03-29 10:05:53 140481556117248 [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '
            /var/lib/mysql/' --parent '31307' --binlog 'mysql-bin'
            Read: '(null)'
            2016-03-29 10:05:53 140481556117248 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '/var/l
            ib/mysql/' --parent '31307' --binlog 'mysql-bin' : 2 (No such file or directory)
            2016-03-29 10:05:53 140487386848000 [ERROR] WSREP: Failed to prepare for 'xtrabackup' SST. Unrecoverable.
            2016-03-29 10:05:53 140487386848000 [ERROR] Aborting

            I had to install "socat" manually from EPEL to fix this.

            kpvadm Pavel Kaidalov added a comment - - edited This problem still exists in MariaDB-server-10.1.12 and 10.1.13 on CentOS 6.7. Here is my logs from second empty Galera node: 2016-03-29 10:05:52 140481556117248 [Note] WSREP: Running: 'wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '/var/lib/mysql/' --parent '31307' --binlog 'mysql-bin' ' WSREP_SST: [INFO] Streaming with tar (20160329 10:05:53.037) WSREP_SST: [INFO] Using socat as streamer (20160329 10:05:53.039) which: no socat in (/usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin) WSREP_SST: [ERROR] socat not found in path: /usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin (20160329 10:05:53.041) 2016-03-29 10:05:53 140481556117248 [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir ' /var/lib/mysql/' --parent '31307' --binlog 'mysql-bin' Read: '(null)' 2016-03-29 10:05:53 140481556117248 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '/var/l ib/mysql/' --parent '31307' --binlog 'mysql-bin' : 2 (No such file or directory) 2016-03-29 10:05:53 140487386848000 [ERROR] WSREP: Failed to prepare for 'xtrabackup' SST. Unrecoverable. 2016-03-29 10:05:53 140487386848000 [ERROR] Aborting I had to install "socat" manually from EPEL to fix this.

            kpvadm Thanks for reporting. A fix for this has been queued for next 10.1 version.

            nirbhay_c Nirbhay Choubey (Inactive) added a comment - kpvadm Thanks for reporting. A fix for this has been queued for next 10.1 version.

            People

              nirbhay_c Nirbhay Choubey (Inactive)
              tturenko Timofey Turenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.