我有一个error,请帮忙解决一下谢谢

Error: failed to stop alertmanager: failed to stop: alertmanager xxxx:9093: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@xxxx’ {ssh_stderr: , ssh_stdout: This account is currently not available.

, ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin sudo -H bash -c “systemctl daemon-reload && systemctl stop alertmanager-9093.service”}, cause: Process exited with status 1

上面的报错提示 ssh_stderr: , ssh_stdout: This account is currently not available,请检查下 alertmanager 所在主机的 tidb 用户的 shell 登录权限。

tidb:x:16422:16422::/home/tidb:/sbin/nologin

这个是否正确,我执行 tiup cluster stop tidb-test 是在root用户下的但是他实际访问使用了tidb用户

/sbin/nologin 调整为 /bin/bash 再试下。

是因为tidb用户没有ssh权限,我之前depoy用的是root用户,现在stop无法增加–user参数了

thank you !!:slight_smile:

不客气,有问题可随时开贴提问。

deploy 之后默认会使用 tidb 用户登陆系统,如果没有 tidb 用户就会自动创建一个,你这个应该是在 deploy 之前存在 tidb 用户,然后它没有登陆权限,所以就操作不了

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。