Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: dm安装不成功
[TiDB Usage Environment] Production
DM installation failed, ports are open, and SSH tests are normal. The installation command is:
tiup dm deploy mysql2ob v6.3.0 ./dm_topology.yaml --user root -p
The error message is as follows:
Error log:
2022-10-17T17:47:00.091+0800 ERROR CheckPoint {“host”: “10.0.40.47”, “port”: 22, “user”: “tidb”, “sudo”: true, “cmd”: “systemctl daemon-reload && systemctl enable dm-worker-5009.service”, “stdout”: “”, “stderr”: “”, “error”: “executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.0.40.47:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c "systemctl daemon-reload && systemctl enable dm-worker-5009.service"}, cause: ssh: handshake failed: read tcp 10.0.40.47:51204->10.0.40.47:22: read: connection reset by peer”, “errorVerbose”: “executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.0.40.47:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c "systemctl daemon-reload && systemctl enable dm-worker-5009.service"}, cause: ssh: handshake failed: read tcp 10.0.40.47:51204->10.0.40.47:22: read: connection reset by peer
at github.com/pingcap/tiup/pkg/cluster/executor.(*EasySSHExecutor).Execute()
\tgithub.com/pingcap/tiup/pkg/cluster/executor/ssh.go:174
at github.com/pingcap/tiup/pkg/cluster/executor.(*CheckPointExecutor).Execute()
\tgithub.com/pingcap/tiup/pkg/cluster/executor/checkpoint.go:86
at github.com/pingcap/tiup/pkg/cluster/module.(*SystemdModule).Execute()
\tgithub.com/pingcap/tiup/pkg/cluster/module/systemd.go:103
at github.com/pingcap/tiup/pkg/cluster/operation.systemctl()
\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:423
at github.com/pingcap/tiup/pkg/cluster/operation.enableInstance()
\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:386
at github.com/pingcap/tiup/pkg/cluster/operation.EnableComponent.func1()
\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:479
at The Go Programming Language
\tgolang.org/x/sync@v0.0.0-20220819030929-7fc1605a5dde/errgroup/errgroup.go:75
at runtime.goexit()
\truntime/asm_amd64.s:1594”, “hash”: “1a4714d7146fa85240a1ff4ef7451df719e0b4f0”, “func”: “github.com/pingcap/tiup/pkg/cluster/executor.(*CheckPointExecutor).Execute”, “hit”: false}
Is sudo configured? Was it deployed by the tidb user? Manually execute the commands on the corresponding nodes using the deployment user and see what errors are reported?
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.