How to resolve "manifest timestamp.json has expired" without internet access

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 请问没有网络情况下,怎么解决manifest timestamp.json has expired

| username: LBX流鼻血

[TiDB Usage Environment] Production Environment
[TiDB Version] 4.0.6
[Reproduction Path] What operations were performed when the issue occurred
No network
Error: read manifest from mirror(/home/tidb/tidb-community-server-v4.0.6-linux-amd64) failed: manifest timestamp.json has expired at: 2021-05-26T11:18:30+08:00

curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
I saw a post suggesting to execute this, but the information security is too strict, no network, is there any other way?

| username: Fly-bird | Original post link

Offline installation is possible.

On the official download page, select the corresponding version of the TiDB server offline image package (which includes the TiUP offline component package).

| username: LBX流鼻血 | Original post link

It’s not an installation issue, it’s indicating that it has expired and needs to redeploy tiup. The offline package won’t be deleted and reinstalled, so it’s useless.

| username: Miracle | Original post link

You can edit that sh script, download tiup in advance, place it in the corresponding directory, and then run the script.

| username: TiDBer_小阿飞 | Original post link

Use the TiDB server offline image package (including the TiUP offline component package).

| username: 像风一样的男子 | Original post link

The official offline installation tutorial is available at 使用 TiUP 部署 TiDB 集群 | PingCAP 文档中心

| username: Kongdom | Original post link

Yes, when redeploying, use the offline package. Additionally, there’s no need to delete the original one; you can install it in another directory. Reinstalling is just to update the authentication.

| username: 随缘天空 | Original post link

You can try manually downloading the latest manifest file using a mobile phone or other internet-connected device, copy it, and place it in the correct location, then try the operation again.