The server is offline and cannot connect to the internet. When starting, it prompts that it cannot obtain timestamp.json. How to remove this verification?

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

Original topic: 服务器是离线不能联网的,启动的时候提示无法获取timestamp.json,如何去掉这个验证?

| username: TiDBer_6XEUiIJO

[TiDB Usage Environment] Production Environment
[TiDB Version] v7.1.0

The server is offline and cannot connect to the internet. When starting, it prompts that it cannot fetch timestamp.json. How can I disable this verification?

TiFlash 127.0.0.1:3930 failed to start: 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: lookup tiup-mirrors.pingcap.com on 114.114.114.114:53: read udp 192.168.52.2:44673->114.114.114.114:53: i/o timeout

| username: 啦啦啦啦啦 | Original post link

Try switching to an offline image.

| username: TiDBer_6XEUiIJO | Original post link

Is this necessary? Should it be ignored?

| username: tidb菜鸟一只 | Original post link

Use tiup mirror show to check if the current environment is set to an online mirror. If it is, follow the official tutorial to change it to an offline mirror.

| username: 啦啦啦啦啦 | Original post link

It shouldn’t be ignored, right? If you can’t connect to the internet, it’s better to switch to an offline mirror.

| username: DBAER | Original post link

Change to offline image.

| username: Daniel-W | Original post link

Offline deployment of TiDB cluster
Deploy TiDB Cluster Using TiUP | PingCAP Documentation Center

| username: 友利奈绪 | Original post link

The official website has offline deployment reference documentation.

| username: TiDBer_QYr0vohO | Original post link

Try offline deployment.

| username: 呢莫不爱吃鱼 | Original post link

Change to an offline deployment image, and this problem will be resolved.

| username: TiDBer_H5NdJb5Q | Original post link

Using offline images, there are probably not many production servers that can connect to the internet, right?

| username: 健康的腰间盘 | Original post link

Install NTP time synchronization

| username: TIDB-Learner | Original post link

Understanding timestamp.json is an essential requirement to ensure the integrity and security of pulling online image packages. Offline images are used for non-networked servers.

| username: yytest | Original post link

You need to create an offline mirror, similar to an offline yum repository.

| username: Jack-li | Original post link

Then change it to an offline image.