Error When Installing TiUP in a Standalone Environment

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

Original topic: 单机环境使用tiup安装报错

| username: tomsence

[TiDB Usage Environment] Test Environment
[TiDB Version] v6.0.0
[Encountered Problem] tiup playground error indicating no such host
[Reproduction Path]
[Problem Phenomenon and Impact]

  1. When using tiup playground, it prompts no such host error;
  2. Ping tiup-mirrors.pingcap.com is reachable;
  3. Curl https://tiup-mirrors.pingcap.com/timestamp.json returns results
    {“signatures”:[{“keyid”:“66d4ea1da00076c822a6e1b4df5eb1e529eb38f6edcedff323e62f2bfe3eaddd”,“sig”:“nZYC+lpNBg/y5EsXbTtQl59yaaFeJyFCIVNrWJ+V5z0eSMV4CSucsmnh84gWCeYZ2NwbDYDP0NhoMn0sCRZWIEDaEfoK1kgWJBBkIOr03JFIjvVTyGrNBiHOya0ngthYCuHw82+uPPEomWuSphSsoXozaeo9daKnpA8s87aNhFnUbhyR8KgJMKCWTA1jmauay+pqUSD8yhI1pkfiKUEzTv1p6107MGC7e/QwobgLUMaQGNk2tnDUO5hfqUTGGuJa8dZZZ2SRagZQiCz2fdADEX0WbQgLI/+BqNKxZ0jtZzG0sAWRCwvV2ro19MBjfZD9Eog5Z2Ir0k90s945r5RvcA==”}],“signed”:{“_type”:“timestamp”,“expires”:“2022-11-24T00:58:53+08:00”,“meta”:{“/snapshot.json”:{“hashes”:{“sha256”:“b5764b1936b86313f048ba0bd328344f36b011dfea812a725fa12ffa3019a611”},“length”:2721}},“spec_version”:“0.1.0”,“version”:42452}}
  4. Executing tiup reports the following error:
    tiup playground v6.0.0 --tag classroom --db 3 --pd 3 --kv 3 --tiflash 1

tiup is checking updates for component playground …timeout!

The component playground version is not installed; downloading from repository.

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: lookup tiup-mirrors.pingcap.com on [fe80::1%en0]:53: no such host

[Attachment]

Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.

| username: srstack | Original post link

Can you access curl https://tiup-mirrors.pingcap.com/json? It seems like there might be an issue with your network.

| username: tomsence | Original post link

Step 3 has returned results.

| username: h5n1 | Original post link

Switch to offline mode, download the offline package, and then use tiup mirror set to set the mirror path.

| username: xiaohetao | Original post link

Directly downloading the software package and installing it offline is also very convenient.

| username: tomsence | Original post link

Okay, the issue has been resolved. My network environment likely restricted downloads from tiup-mirrors.pingcap.com. After changing the network environment, it worked fine. Thank you!

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.