Memsql-deploy setup-cluster errors


#1

I’m trying to install memsql on 4 EC2s with memsql-deploy setup-cluster. Whenever I run the command for the first time, it exits with an error. However, if I run it a few more times, sometimes the 2nd time, it succeeds. Seems like it is having difficulty installing memsql on leaf nodes, although I’ve double checked ssh connections and permissions and they are correct and it does complete eventually. Any ideas would be greatly appreciated.

memsql-deploy setup-cluster --license KEY --yes --version 6.7.12 --parallelism 1 --identity-file /home/ubuntu/private.key --high-availability=false --master-host ubuntu@10.42.28.229 --password SECRET --leaf-hosts ubuntu@10.42.28.145,ubuntu@10.42.28.248,ubuntu@10.42.28.170
   Registering hosts
   memsql-deploy will perform the following actions:
        - 10.42.28.229
        - 10.42.28.145
        - 10.42.28.248
        - 10.42.28.170
        - 10.42.28.145:3306
        - 10.42.28.248:3306
        - 10.42.28.170:3306

Would you like to continue? [Y/n]:
Downloading memsql-server 6.7.12
Installing MemSQL on all hosts...
Checking hosts for existing MemSQL packages
Installing memsql-server6.7.12-650d669b35 on 4 hosts
Installing memsql-server6.7.12-650d669b35 on 4 hosts
Installing memsql-server6.7.12-650d669b35 on 4 hosts
Installing memsql-server6.7.12-650d669b35 on 4 hosts
Installing memsql-server6.7.12-650d669b35 on 4 hosts
Starting rollback
Uninstalling MemSQL 6.7.12 on 10.42.28.229
Unregistering hosts
error running command: `"/usr/bin/ssh" "-oBatchMode=yes" "-q" "-tt" "-oControlPath=/tmp/memsql-toolbox707305577/4.socket" "10.42.28.170" "'sudo'" "'-S'" "'-k'" "'--'" "'/bin/sh'" "'-c'" "''\\''printf'\\'' '\\''a97270a7-b016-41b4-a327-94b8ce080364'\\'' && '\\''exec'\\'' '\\''dpkg'\\'' '\\''--install'\\'' '\\''/tmp/tmp.xCGHnX4v6W'\\'''"`: exit status 2

#2

Resolved this by updating to newer Ubuntu.