Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 服务器是离线不能联网的,启动的时候提示无法获取timestamp.json,如何去掉这个验证?
[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
Try switching to an offline image.
Is this necessary? Should it be ignored?
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.
It shouldn’t be ignored, right? If you can’t connect to the internet, it’s better to switch to an offline mirror.
The official website has offline deployment reference documentation.
Change to an offline deployment image, and this problem will be resolved.
Using offline images, there are probably not many production servers that can connect to the internet, right?
Install NTP time synchronization
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.
You need to create an offline mirror, similar to an offline yum repository.
Then change it to an offline image.