Data Migration(DM)的部署 遇到了问题

【 TiDB 使用环境】生产\测试环境\ POC
【 TiDB 版本】
【遇到的问题】部署问题
【复现路径】做过哪些操作出现的问题
【问题现象及影响】
301 TiDB 系统管理基础

:20: 数据迁移工具 TiDB Data Migration(DM)-练习1
练习的报错,具体如附件
192.168.0.151_2022-05-20_20-35-24.log (5.1 KB)

[root@tidb1 ~]# ps -ef | grep tidb
avahi 701 1 0 10:23 ? 00:00:01 avahi-daemon: running [tidb1.local]
tidb 1147 1 1 10:23 ? 00:10:11 bin/tidb-server -P 4000 --status=10080 --host=0.0.0.0 --advertise-address=182.167.140.151 --store=tikv --path=182.167.140.153:2379 --log-slow-query=/tidb-deploy/tidb-4000/log/tidb_slow_query.log --config=conf/tidb.toml --log-file=/tidb-deploy/tidb-4000/log/tidb.log
tidb 1152 1 0 10:23 ? 00:02:41 bin/node_exporter/node_exporter --web.listen-address=:9100 --collector.tcpstat --collector.systemd --collector.mountstats --collector.meminfo_numa --collector.interrupts --collector.buddyinfo --collector.vmstat.fields=^.* --log.level=info
tidb 1155 1 0 10:23 ? 00:00:18 bin/blackbox_exporter/blackbox_exporter --web.listen-address=:9115 --log.level=info --config.file=conf/blackbox.yml
tidb 1159 1152 0 10:23 ? 00:00:00 /bin/bash /tidb-deploy/monitor-9100/scripts/run_node_exporter.sh
tidb 1160 1159 0 10:23 ? 00:00:00 tee -i -a /tidb-deploy/monitor-9100/log/node_exporter.log
tidb 1162 1155 0 10:23 ? 00:00:00 /bin/bash /tidb-deploy/monitor-9100/scripts/run_blackbox_exporter.sh
tidb 1165 1162 0 10:23 ? 00:00:00 tee -i -a /tidb-deploy/monitor-9100/log/blackbox_exporter.log
root 8847 8598 0 20:43 pts/0 00:00:00 grep --color=auto tidb
[root@tidb1 ~]# cat .bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export PATH=/root/.tiup/bin:$PATH
export PATH=/root/.tiup/bin:$PATH:/mysql/app/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/mysql/.local/bin:/mysql/bin:/root/tidb-toolkit-v5.0.1-linux-amd64/bin
#export PATH=/mysql/app/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/mysql/.local/bin:/mysql/bin
[root@tidb1 ~]# tiup cluster display tidb-wang
bash: tiup: command not found…

看这 log 不像是 dm 报错啊

Please rename /root/.tiup/bin/tiup.tmp to /root/.tiup/bin/tiup manually.

tiup update --self && tiup update dm 过程中,网路问题,导致tiup没有升级成功

[root@tidb1 ~]# tiup update --self && tiup update dm

download https://tiup-mirrors.pingcap.com/tiup-v1.9.6-linux-amd64.tar.gz 0 B ?% ? MiB/s
Please rename /root/.tiup/bin/tiup.tmp to /root/.tiup/bin/tiup manually.
Error: download from https://tiup-mirrors.pingcap.com/tiup-v1.9.6-linux-amd64.tar.gz failed: Get “https://tiup-mirrors.pingcap.com/tiup-v1.9.6-linux-amd64.tar.gz”: dial tcp [2600:9000:2104:5600:13:75a1:ac00:93a1]:443: connect: network is unreachable
[root@tidb1 ~]#

1 个赞

把.tiup目录删掉重装一下tiup吧

向各位大佬学习了

应该是网络问题导致的tiup工具自己没了。不懂原理为啥我重新安装就可以了。

[root@tidb1 ~]# tiup cluster display tidb-wang
bash: tiup: command not found…
[root@tidb1 ~]#
[root@tidb1 ~]# tiup update --self
bash: tiup: command not found…
[root@tidb1 ~]# cd /root/.tiup
[root@tidb1 .tiup]# ls
components data logs manifests storage telemetry tiup.toml
[root@tidb1 .tiup]# which tiup
/usr/bin/which: no tiup in (/root/.tiup/bin:/root/.tiup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/mysql/app/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/mysql/.local/bin:/mysql/bin:/root/tidb-toolkit-v5.0.1-linux-amd64/bin)

[root@tidb1 ~]# curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6661k 100 6661k 0 0 2169k 0 0:00:03 0:00:03 --:–:-- 2170k
WARN: adding root certificate via internet: https://tiup-mirrors.pingcap.com/root.json
You can revoke this by remove /root/.tiup/bin/7b8e153f2e2d0928.root.json
Successfully set mirror to https://tiup-mirrors.pingcap.com
Detected shell: bash
Shell profile: /root/.bash_profile
Installed path: /root/.tiup/bin/tiup

Have a try: tiup playground

是网络问题感觉是。

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