I need to use an user account to install TiKV, but this user account does have the secret-free (ie. NOPASSWD) sudo root permission on all target machines. The following “tiup cluster check” failure looks like and tiup SSH a “bash” command to target machines while the user account default shell is csh. Is there any tiup hidden switch to bypass this error? Thanks!
If I deploy directly as “tiup cluster deploy tikv-test v5.0.1 ./topology.yaml --user mychung”, it seems to failed because the same reason.
021-09-30T20:59:08.644-0700 INFO Execute command finished {“code”: 1, “error”: “task.env_init.failed: Failed to initialize TiDB environment on remote host ‘10.xxx.xxx.xxx’, cause: task.env_init.sub_command_failed: Failed to create ‘~/.ssh’ directory for user ‘mychung’, cause: executor.ssh.execute_failed: Failed to execute command over SSH for ‘mychung@10.xxx.xxx.xxx:22’ {ssh_stderr: Bad : modifier in $ (/).
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c "su - mychung -c ‘mkdir -p ~/.ssh && chmod 700 ~/.ssh’"}, cause: Process exited with status 1”, “errorVerbose”: "task.env_init.failed: Failed to initialize TiDB environment on remote host ‘10.xxx.xxx.xxx’, cause: task.env_init.sub_command_failed: Failed to create ‘~/.ssh’ directory for user ‘mychung’, cause: executor.ssh.execute_failed: Failed to execute command over SSH for ‘mychung@10.xxx.xxx.xxx:22’ {**ssh_stderr: Bad : modifier in $ (/).
**, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c "su - mychung -c ‘mkdir -p ~/.ssh && chmod 700 ~/.ssh’"}, cause: Process exited with status 1\
Thanks!
Ming