@vtkachuk-ua, here’s what I have. In summary, I ran into issues at the very last step of creating a new node, using the same port & base install directory as before, despite the fact the node & directory at /misc/memsql directory were removed prior to running each command.
I went ahead and created another node on a different port (3317) and directory, and that was successful. However, I received another error after attempting to verify the node was created successfully, after running: memsql-admin list-nodes
.
After checking the /var/lib/memsql/nodes.hcl file, it shows that two nodes were created, including the failed node on port 3307. All logs are provided in the post below.
RESULTS:
memsql-admin delete-node --all --stop -vvv
2020/06/16 16:23:22 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:23:22 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:23:22 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox205677452 SSHBinaryPath:/usr/bin/ssh}
2020/06/16 16:23:22 logging.go:37 Running command #1 /usr/bin/id -u
2020/06/16 16:23:22 logging.go:52 Command #1 took 876.919µs
2020/06/16 16:23:22 logging.go:37 Running command #2 /usr/bin/which which
2020/06/16 16:23:22 logging.go:52 Command #2 took 846.148µs
2020/06/16 16:23:22 logging.go:37 Running command #3 /usr/bin/which memsqlctl
2020/06/16 16:23:22 logging.go:52 Command #3 took 683.567µs
2020/06/16 16:23:22 logging.go:37 Running command #4 /usr/bin/memsqlctl --json --yes env
2020/06/16 16:23:22 logging.go:52 Command #4 took 6.945539ms
2020/06/16 16:23:22 logging.go:37 Running command #5 /usr/bin/id -G
2020/06/16 16:23:22 logging.go:52 Command #5 took 831.509µs
2020/06/16 16:23:22 logging.go:37 Running command #6 /usr/bin/memsqlctl --json --yes list-nodes
2020/06/16 16:23:22 logging.go:52 Command #6 took 4.746751ms
There are no nodes to delete
memsql-deploy uninstall --all-versions -vvv
2020/06/16 16:24:27 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:24:27 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:24:27 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox133047590 SSHBinaryPath:/usr/bin/ssh}
2020/06/16 16:24:27 logging.go:37 Running command #1 /usr/bin/which which
2020/06/16 16:24:27 logging.go:52 Command #1 took 764.151µs
2020/06/16 16:24:27 logging.go:37 Running command #2 /usr/bin/which rpm
2020/06/16 16:24:27 logging.go:52 Command #2 failed with exit code 1 in 736.756µs
2020/06/16 16:24:27 logging.go:37 Running command #3 /usr/bin/which which
2020/06/16 16:24:27 logging.go:52 Command #3 took 696.841µs
2020/06/16 16:24:27 logging.go:37 Running command #4 /usr/bin/which dpkg
2020/06/16 16:24:27 logging.go:52 Command #4 took 679.867µs
2020/06/16 16:24:27 logging.go:37 Running command #5 /usr/bin/id -u
2020/06/16 16:24:27 logging.go:52 Command #5 took 785.701µs
2020/06/16 16:24:27 logging.go:37 Running command #6 /usr/bin/which which
2020/06/16 16:24:27 logging.go:52 Command #6 took 678.278µs
2020/06/16 16:24:27 logging.go:37 Running command #7 /usr/bin/which sudo
2020/06/16 16:24:27 logging.go:52 Command #7 took 662.128µs
2020/06/16 16:24:27 logging.go:37 Running command #8 /usr/bin/sudo -n -k id
2020/06/16 16:24:27 logging.go:52 Command #8 failed with exit code 1 in 3.61877ms
2020/06/16 16:24:27 logging.go:37 Running command #9 /usr/bin/id -u -n
2020/06/16 16:24:27 logging.go:52 Command #9 took 1.082222ms
The target user user on host 127.0.0.1 does not have the privileges to perform this action.
Please enter your password to proceed with sudo. (For details, see SingleStore Tools Issues · SingleStore Documentation).
sudo password for user@127.0.0.1:
2020/06/16 16:24:33 logging.go:37 Running command #10 /usr/bin/timeout --foreground 5 sudo -S -k -v
2020/06/16 16:24:34 logging.go:52 Command #10 took 24.256475ms
2020/06/16 16:24:34 logging.go:37 Running command #11 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec which which
2020/06/16 16:24:34 logging.go:52 Command #11 took 11.920182ms
2020/06/16 16:24:34 logging.go:37 Running command #12 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec which memsqlctl
2020/06/16 16:24:34 logging.go:52 Command #12 took 15.063242ms
2020/06/16 16:24:34 logging.go:37 Running command #13 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec readlink --canonicalize --no-newline /usr/bin/memsqlctl
2020/06/16 16:24:34 logging.go:52 Command #13 took 11.827142ms
2020/06/16 16:24:34 logging.go:37 Running command #14 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec dpkg-query --search /opt/memsql-server-7.1.2-9ba41ab64a/memsqlctl
2020/06/16 16:24:34 logging.go:52 Command #14 took 212.621788ms
Silly 2020/06/16 16:24:34 dpkg.go:173 STDERR of “dpkg-query --search”: [sudo] password for user:
2020/06/16 16:24:34 logging.go:37 Running command #15 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec dpkg-query --show --showformat ${Package} ${Version} ${db:Status-Abbrev}\n
2020/06/16 16:24:34 logging.go:52 Command #15 took 46.577679ms
Silly 2020/06/16 16:24:34 dpkg.go:97 STDERR of “dpkg-query --show”: [sudo] password for user:
2020/06/16 16:24:34 logging.go:37 Running command #16 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec memsqlctl --json --yes list-nodes
2020/06/16 16:24:34 logging.go:52 Command #16 took 16.364605ms
Toolbox will perform the following actions:
· Uninstall all versions of memsql-server on 127.0.0.1
Would you like to continue? [y/N]: y
2020/06/16 16:24:38 logging.go:37 Running command #17 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec which which
2020/06/16 16:24:38 logging.go:52 Command #17 took 11.983592ms
2020/06/16 16:24:38 logging.go:37 Running command #18 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec which memsqlctl
2020/06/16 16:24:38 logging.go:52 Command #18 took 11.993507ms
2020/06/16 16:24:38 logging.go:37 Running command #19 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec readlink --canonicalize --no-newline /usr/bin/memsqlctl
2020/06/16 16:24:38 logging.go:52 Command #19 took 11.525245ms
2020/06/16 16:24:38 logging.go:37 Running command #20 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec dpkg-query --search /opt/memsql-server-7.1.2-9ba41ab64a/memsqlctl
2020/06/16 16:24:38 logging.go:52 Command #20 took 134.887167ms
Silly 2020/06/16 16:24:38 dpkg.go:173 STDERR of “dpkg-query --search”: [sudo] password for user:
2020/06/16 16:24:38 logging.go:37 Running command #21 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec dpkg-query --show --showformat ${Package} ${Version} ${db:Status-Abbrev}\n
2020/06/16 16:24:38 logging.go:52 Command #21 took 50.236065ms
Silly 2020/06/16 16:24:38 dpkg.go:97 STDERR of “dpkg-query --show”: [sudo] password for user:
2020/06/16 16:24:38 logging.go:37 Running command #22 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 79f5d93b-bcdb-45b2-aa46-5c64b40a6208 && exec dpkg --remove memsql-server7.1.2-9ba41ab64a
2020/06/16 16:24:38 logging.go:52 Command #22 took 245.184661ms
Silly 2020/06/16 16:24:38 dpkg.go:138 STDERR of “dpkg --remove”: [sudo] password for user: update-alternatives: warning: alternative /opt/memsql-server-7.1.2-9ba41ab64a/memsqlctl (part of link group memsqlctl) doesn’t exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/memsqlctl is dangling; it will be updated with best choice
update-alternatives: warning: alternative /opt/memsql-server-7.1.2-9ba41ab64a/memsql_exporter/memsql_exporter (part of link group memsql_exporter) doesn’t exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/memsql_exporter is dangling; it will be updated with best choice
update-alternatives: warning: alternative /opt/memsql-server-7.1.2-9ba41ab64a/memsql_exporter/memsql_pusher (part of link group memsql_pusher) doesn’t exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/memsql_pusher is dangling; it will be updated with best choice
✓ Uninstalled on host 127.0.0.1 (1/1)
✓ Successfully uninstalled all versions of memsql-server on 1 host
Operation completed successfully
memsql-toolbox-config unregister-host --all -vvv
2020/06/16 16:25:25 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:25:25 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:25:25 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox420146615 SSHBinaryPath:/usr/bin/ssh}
Toolbox will perform the following actions:
· Unregister host 127.0.0.1
Would you like to continue? [y/N]: y
2020/06/16 16:25:27 logging.go:37 Running command #1 /usr/bin/id -u
2020/06/16 16:25:27 logging.go:52 Command #1 took 931.492µs
2020/06/16 16:25:27 logging.go:37 Running command #2 /usr/bin/which which
2020/06/16 16:25:27 logging.go:52 Command #2 took 698.886µs
2020/06/16 16:25:27 logging.go:37 Running command #3 /usr/bin/which memsqlctl
2020/06/16 16:25:27 logging.go:52 Command #3 failed with exit code 1 in 742.983µs
✓ Successfully unregistered 1 host
If you want to re-register the hosts use the following commands:
memsql-toolbox-config register-host ‘–host’ ‘127.0.0.1’ ‘–localhost’
Operation completed successfully
memsql-toolbox-config register-host --localhost --host 127.0.0.1 -vvv
2020/06/16 16:26:00 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:26:00 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:26:00 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox427819352 SSHBinaryPath:/usr/bin/ssh}
WARNING: Specifying both --localhost and --host 127.0.0.1 is a mistake in most cases unless you want to setup cluster-in-a-box.
You need to use a cluster-addressable IP for this host so that it can be accessed from other hosts in the cluster.
Do you want to continue with your configuration? [y/N]: y
Toolbox is about to register the following host:
· Host: 127.0.0.1
· Localhost: true
Would you like to continue? [y/N]: y
✓ Successfully registered host 127.0.0.1
±----------±-----------±------------±--------------+
| Host | Local Host | SSH address | Identity File |
±----------±-----------±------------±--------------+
| 127.0.0.1 | Yes | | |
±----------±-----------±------------±--------------+
memsql-deploy install --all --version 7.1 -vvv
2020/06/16 16:26:49 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:26:49 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:26:49 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox648910337 SSHBinaryPath:/usr/bin/ssh}
2020/06/16 16:26:49 logging.go:37 Running command #1 /usr/bin/which which
2020/06/16 16:26:49 logging.go:52 Command #1 took 801.678µs
2020/06/16 16:26:49 logging.go:37 Running command #2 /usr/bin/which rpm
2020/06/16 16:26:49 logging.go:52 Command #2 failed with exit code 1 in 827.817µs
2020/06/16 16:26:49 logging.go:37 Running command #3 /usr/bin/which which
2020/06/16 16:26:49 logging.go:52 Command #3 took 614.34µs
2020/06/16 16:26:49 logging.go:37 Running command #4 /usr/bin/which dpkg
2020/06/16 16:26:49 logging.go:52 Command #4 took 672.918µs
2020/06/16 16:26:49 logging.go:37 Running command #5 /usr/bin/id -u
2020/06/16 16:26:49 logging.go:52 Command #5 took 847.635µs
2020/06/16 16:26:49 logging.go:37 Running command #6 /usr/bin/which which
2020/06/16 16:26:49 logging.go:52 Command #6 took 710.12µs
2020/06/16 16:26:49 logging.go:37 Running command #7 /usr/bin/which sudo
2020/06/16 16:26:49 logging.go:52 Command #7 took 674.908µs
2020/06/16 16:26:49 logging.go:37 Running command #8 /usr/bin/sudo -n -k id
2020/06/16 16:26:49 logging.go:52 Command #8 failed with exit code 1 in 3.702506ms
2020/06/16 16:26:49 logging.go:37 Running command #9 /usr/bin/id -u -n
2020/06/16 16:26:49 logging.go:52 Command #9 took 1.089481ms
The target user user on host 127.0.0.1 does not have the privileges to perform this action.
Please enter your password to proceed with sudo. (For details, see SingleStore Tools Issues · SingleStore Documentation).
sudo password for user@127.0.0.1:
2020/06/16 16:26:55 logging.go:37 Running command #10 /usr/bin/timeout --foreground 5 sudo -S -k -v
2020/06/16 16:26:55 logging.go:52 Command #10 took 10.57205ms
Toolbox will perform the following actions:
· Download memsql-server 7.1.3-0925a98cb8 (7.1)
· Install memsql-server 7.1.3-0925a98cb8 (7.1) on 127.0.0.1
Would you like to continue? [y/N]: y
Debug 2020/06/16 16:26:58 downloader.go:91 Fetching package meta from https://release.memsql.com/production/index/memsqlserver/7.1.json
Debug 2020/06/16 16:26:58 downloader.go:42 Downloading from Freya into /tmp/memsql-server-deb260764524
Debug 2020/06/16 16:26:58 downloader.go:129 Downloading https://release.memsql.com/production/debian/pool/memsql-server_7.1.3_0925a98cb8_amd64.deb
✓ Downloaded memsql-server production:7.1
2020/06/16 16:27:03 logging.go:37 Running command #11 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec which which
2020/06/16 16:27:03 logging.go:52 Command #11 took 11.939835ms
2020/06/16 16:27:03 logging.go:37 Running command #12 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec which memsqlctl
2020/06/16 16:27:03 logging.go:52 Command #12 failed with exit code 1 in 11.630096ms
2020/06/16 16:27:03 logging.go:37 Running command #13 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec dpkg-query --show --showformat ${Package} ${Version} ${db:Status-Abbrev}\n
2020/06/16 16:27:03 logging.go:52 Command #13 took 46.799019ms
Silly 2020/06/16 16:27:03 dpkg.go:97 STDERR of “dpkg-query --show”: [sudo] password for user:
2020/06/16 16:27:03 logging.go:37 Running command #14 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec printenv SUDO_USER
2020/06/16 16:27:03 logging.go:52 Command #14 took 12.534677ms
2020/06/16 16:27:03 logging.go:37 Running command #15 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec dpkg --install /tmp/memsql-server-deb260764524
2020/06/16 16:27:06 logging.go:52 Command #15 took 3.343003748s
Silly 2020/06/16 16:27:06 dpkg.go:117 STDERR of “dpkg --install”: [sudo] password for user: Created symlink /etc/systemd/system/multi-user.target.wants/memsql.service → /opt/memsql-server-7.1.3-0925a98cb8/memsql.service.
Created symlink /etc/systemd/system/memsql.service → /opt/memsql-server-7.1.3-0925a98cb8/memsql.service.
2020/06/16 16:27:06 logging.go:37 Running command #16 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec getent group memsql
2020/06/16 16:27:06 logging.go:52 Command #16 took 12.309691ms
2020/06/16 16:27:06 logging.go:37 Running command #17 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 4c432dd7-8d10-454e-8ff0-aa924e65f35f && exec usermod -a -G memsql user
2020/06/16 16:27:06 logging.go:52 Command #17 took 15.243919ms
✓ Installed memsql-server7.1.3-0925a98cb8 on host 127.0.0.1 (1/1)
✓ Successfully installed on 1 host
Operation completed successfully
memsql-admin create-node --host 127.0.0.1 --password "" -P 3307 --base-install-dir /misc/memsql/master -vvv
2020/06/16 16:28:32 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:28:32 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:28:32 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox309711868 SSHBinaryPath:/usr/bin/ssh}
2020/06/16 16:28:32 logging.go:37 Running command #1 /usr/bin/id -u
2020/06/16 16:28:32 logging.go:52 Command #1 took 876.419µs
2020/06/16 16:28:32 logging.go:37 Running command #2 /usr/bin/which which
2020/06/16 16:28:32 logging.go:52 Command #2 took 673.717µs
2020/06/16 16:28:32 logging.go:37 Running command #3 /usr/bin/which memsqlctl
2020/06/16 16:28:32 logging.go:52 Command #3 took 687.467µs
2020/06/16 16:28:32 logging.go:37 Running command #4 /usr/bin/memsqlctl --json --yes env
2020/06/16 16:28:32 logging.go:52 Command #4 took 5.341786ms
2020/06/16 16:28:32 logging.go:37 Running command #5 /usr/bin/which which
2020/06/16 16:28:32 logging.go:52 Command #5 took 683.233µs
2020/06/16 16:28:32 logging.go:37 Running command #6 /usr/bin/which sudo
2020/06/16 16:28:32 logging.go:52 Command #6 took 650.381µs
2020/06/16 16:28:32 logging.go:37 Running command #7 /usr/bin/sudo -n -k id
2020/06/16 16:28:32 logging.go:52 Command #7 failed with exit code 1 in 3.703279ms
2020/06/16 16:28:32 logging.go:37 Running command #8 /usr/bin/id -u -n
2020/06/16 16:28:32 logging.go:52 Command #8 took 1.075713ms
The target user user on host 127.0.0.1 does not have the privileges to perform this action.
Please enter your password to proceed with sudo. (For details, see SingleStore Tools Issues · SingleStore Documentation).
sudo password for user@127.0.0.1:
2020/06/16 16:28:37 logging.go:37 Running command #9 /usr/bin/timeout --foreground 5 sudo -S -k -v
2020/06/16 16:28:37 logging.go:52 Command #9 took 10.801885ms
Toolbox is about to perform the following actions on host 127.0.0.1:
· Run ‘memsqlctl create-node --port 3307 --base-install-dir /misc/memsql/master --password ●●●●●●’
Would you like to continue? [y/N]: y
2020/06/16 16:28:40 logging.go:37 Running command #10 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 582f967c-dae7-442f-be88-896fa8156545 && exec memsqlctl --json --yes upsert-secure-key
2020/06/16 16:28:40 logging.go:52 Command #10 took 16.579303ms
2020/06/16 16:28:40 logging.go:37 Running command #11 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 582f967c-dae7-442f-be88-896fa8156545 && exec memsqlctl --json --yes create-node --base-install-dir /misc/memsql/master --port 3307 --secure-password SmiiczgSopoAr6ft1g7IWeov5r7hgXhP673i/w==
2020/06/16 16:28:41 logging.go:52 Command #11 failed with exit code 1 in 722.629576ms
error running memsqlctl: error running command: /usr/bin/sudo -S -k -- /bin/sh -c ''\''printf'\'' '\''582f967c-dae7-442f-be88-896fa8156545'\'' && '\''exec'\'' '\''memsqlctl'\'' '\''--json'\'' '\''--yes'\'' '\''create-node'\'' '\''--base-install-dir'\'' '\''/misc/memsql/master'\'' '\''--port'\'' '\''3307'\'' '\''--secure-password'\'' '\''SmiiczgSopoAr6ft1g7IWeov5r7hgXhP673i/w=='\'''
: exit status 1
stderr: [sudo] password for user: Latest errors from MemSQL tracelog:
49 2020-06-16 16:28:41.232 INFO: Log opened
: Failed to connect to MemSQL: Check to see if another instance of MemSQL is already running on port 3307
memsql-admin create-node --host 127.0.0.1 --password "" -P 3317 --base-install-dir /misc/memsql2/master -vvv
2020/06/16 16:29:46 backup_cache.go:43 Could not load backup cache from /home/user/.local/share/memsql-toolbox/backup-cache.hcl: could not read file /home/user/.local/share/memsql-toolbox/backup-cache.hcl: open /home/user/.local/share/memsql-toolbox/backup-cache.hcl: no such file or directory
2020/06/16 16:29:46 env.go:319 Toolbox version: 1.5.5
2020/06/16 16:29:46 env.go:320 Toolbox env: &{ConfigPath:/home/user/.config/memsql-toolbox/toolbox.hcl StateFilePath:/home/user/.local/share/memsql-toolbox/toolbox-state.hcl CacheFilePath:/home/user/.local/share/memsql-toolbox/toolbox-cache.hcl BackupCacheFilePath:/home/user/.local/share/memsql-toolbox/backup-cache.hcl RestoreBackupLockFilePath:/home/user/.cache/memsql-toolbox/restore.lock SessionDir:/run/user/1000/memsql-toolbox853631201 SSHBinaryPath:/usr/bin/ssh}
2020/06/16 16:29:46 logging.go:37 Running command #1 /usr/bin/id -u
2020/06/16 16:29:46 logging.go:52 Command #1 took 834.252µs
2020/06/16 16:29:46 logging.go:37 Running command #2 /usr/bin/which which
2020/06/16 16:29:46 logging.go:52 Command #2 took 690.437µs
2020/06/16 16:29:46 logging.go:37 Running command #3 /usr/bin/which memsqlctl
2020/06/16 16:29:46 logging.go:52 Command #3 took 686.747µs
2020/06/16 16:29:46 logging.go:37 Running command #4 /usr/bin/memsqlctl --json --yes env
2020/06/16 16:29:46 logging.go:52 Command #4 took 5.170339ms
2020/06/16 16:29:46 logging.go:37 Running command #5 /usr/bin/which which
2020/06/16 16:29:46 logging.go:52 Command #5 took 688.313µs
2020/06/16 16:29:46 logging.go:37 Running command #6 /usr/bin/which sudo
2020/06/16 16:29:46 logging.go:52 Command #6 took 713.135µs
2020/06/16 16:29:46 logging.go:37 Running command #7 /usr/bin/sudo -n -k id
2020/06/16 16:29:46 logging.go:52 Command #7 failed with exit code 1 in 3.670691ms
2020/06/16 16:29:46 logging.go:37 Running command #8 /usr/bin/id -u -n
2020/06/16 16:29:46 logging.go:52 Command #8 took 1.043561ms
The target user user on host 127.0.0.1 does not have the privileges to perform this action.
Please enter your password to proceed with sudo. (For details, see SingleStore Tools Issues · SingleStore Documentation).
sudo password for user@127.0.0.1:
2020/06/16 16:29:50 logging.go:37 Running command #9 /usr/bin/timeout --foreground 5 sudo -S -k -v
2020/06/16 16:29:50 logging.go:52 Command #9 took 10.621054ms
Toolbox is about to perform the following actions on host 127.0.0.1:
· Run ‘memsqlctl create-node --port 3317 --base-install-dir /misc/memsql2/master --password ●●●●●●’
Would you like to continue? [y/N]: y
2020/06/16 16:29:51 logging.go:37 Running command #10 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 613b9343-dda4-462a-b715-bc1567e81648 && exec memsqlctl --json --yes upsert-secure-key
2020/06/16 16:29:51 logging.go:52 Command #10 took 16.84353ms
2020/06/16 16:29:51 logging.go:37 Running command #11 /usr/bin/sudo -S -k -- /bin/sh -c $1
where $1 = printf 613b9343-dda4-462a-b715-bc1567e81648 && exec memsqlctl --json --yes create-node --base-install-dir /misc/memsql2/master --port 3317 --secure-password +Xouz+JKQaPBNejkLoTAE2UZVbFfOg5SfYHRFw==
2020/06/16 16:29:54 logging.go:52 Command #11 took 3.612578996s
±-----------------------------------------±----------+
| MemSQL ID | Host |
±-----------------------------------------±----------+
| 80DDF29585DA3F09A44FC27A229AF814D3663905 | 127.0.0.1 |
±-----------------------------------------±----------+
memsql-admin list-nodes
✘ Failed to list nodes on all hosts: failed to list nodes on host 127.0.0.1: error running memsqlctl: error running command: /usr/bin/memsqlctl --json --yes list-nodes
: exit status 1
stderr: memsqlctl failed to load the MemSQL config file ‘/misc/memsql/master/memsql.cnf’ referenced by the node metadata file at ‘/var/lib/memsql/nodes.hcl’.
See update-config · SingleStore Documentation for more information.
No nodes found
less /var/lib/memsql/nodes.hcl
version = 1
node {
memsqlConfigPath = “/misc/memsql/master/memsql.cnf”
password {
cipherText = “iwR+3dNz5GY5qIwqFQ1hjBc60FX3jkwPtbGE/A==”
}
}
node {
memsqlConfigPath = “/misc/memsql2/master/memsql.cnf”
password {
cipherText = “nvNpW4B6o5ktExCjQzXauJCIR5MAzU9IgAyqdA==”
}
}
secure = “YF69WtEJHSJtM3FLKYcmfFV126Co2DY+EISVzYlCpAI=”