TiUP无法使用,提示timestamp.json has expired

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:

【概述】场景+问题概述
使用TiUP进行集群维护,

【背景】做过哪些操作
输入tiup cluster info,提示无法访问外网

$ tiup cluster info
Failed to start component cluster
Error: fetch /timestamp.json from mirror(https://tiup-mirrors.pingcap.com/) failed: download from https://tiup-mirrors.pingcap.com/timestamp.json failed: Get https://tiup-mirrors.pingcap.com/timestamp.json: dial tcp 113.113.73.41:443: connect: connection timed out

修复网络后,再次输入tiup cluster,提示:

$ tiup cluster
Failed to start component cluster
Error: read manifest from mirror(https://tiup-mirrors.pingcap.com/) failed: manifest timestamp.json has expired at: 2021-05-26T11:18:30+08:00

$ tiup update --self
Error: read manifest from mirror(https://tiup-mirrors.pingcap.com/) failed: manifest timestamp.json has expired at: 2021-05-26T11:18:30+08:00

按照 TiUP扩容tidb节点失败 的提示删除 ~/.tiup/manifests/ 目录下的 json 文件,问题依旧

$ ls .tiup/manifests/
$

网络正常

$ curl https://tiup-mirrors.pingcap.com/timestamp.json
{“signatures”:[{“keyid”:“66d4ea1da00076c822a6e1b4df5eb1e529eb38f6edcedff323e62f2bfe3eaddd”,“sig”:“D2wk51AvvPeQoPoic8Tz114hoOd5SCjb5QygB/N8kwt67oG+B7Pe7lIWK1EEz1Z9t/UJO3AwoMnBiF9g4JZKSkuKuprzDi6s/u7gTpXBvgQKr4lfy8u3ekhUevFF3mCrqFEeNsz9jGg4TD9Du7IN/zg7JQ6Q6f5Xfdi+YnFVvHpNmbs1ienNK2UWR6xYsu9rD58c+XQT7/sl5mjKxM+Q+EpAyEXPdQNkBSDJssUlomwtt7YdBJkYY9ZormFSP3tcjnZIXgyKSPa+Oa+FxsMXmJ3GDppPDR2EQSyuWCne6vA7TVEE0w6G8dAzSDajVSJhj2xoHJhDvSctxsPBoqTTpA==”}],“signed”:{"_type":“timestamp”,“expires”:“2021-07-24T14:58:59+08:00”,“meta”:{"/snapshot.json":{“hashes”:{“sha256”:“5fa41218ab824d94d13e04bf70a77bcd54ad9dda1ac085f2703a2b2a6671589d”},“length”:2300}},“spec_version”:“0.1.0”,“version”:14548}}

【现象】业务和数据库现象
tiup无法使用

$ tiup cluster
Failed to start component cluster
Error: read manifest from mirror(https://tiup-mirrors.pingcap.com/) failed: manifest timestamp.json has expired at: 2021-05-26T11:18:30+08:00

【业务影响】
无法进行集群维护

【TiDB 版本】
v4.0.6

$ tiup --version
v1.1.2 tiup
Go Version: go1.13
Git Branch: release-1.1
GitHash: 7cb85b9-dirty

【附件】

  1. TiUP Cluster Display 信息

$ tiup cluster display
Failed to start component cluster
Error: read manifest from mirror(https://tiup-mirrors.pingcap.com/) failed: manifest timestamp.json has expired at: 2021-05-26T11:18:30+08:00

  1. TiUP Cluster Edit Config 信息

  2. TiDB- Overview 监控

  • 对应模块日志(包含问题前后1小时日志)

若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

2 个赞

参考原贴中的解决方案,不会损失数据

2 个赞

curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh 之后问题解决
谢谢Kongdom!

1 个赞

:handshake::handshake:

我是生产环境也遇到这样的问题,直接执行这个命令对生产可有影响(除了不损坏数据之外)?

没有影响,不会损坏数据。可以理解为升级了组件,重新获取了时间戳。

注意是在非.tiup的目录下

好的,谢谢! 命令已经成功执行!还有请教一下,我看帖子上回复是长期没有执行tiup cluster display导致,这个有没有时间间隔限制?是不是升级到5.0问题就解决了。

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