When deploying the offline version and executing sh local_install.sh, the issue shown in the picture occurs

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

Original topic: 部署离线版的时候执行sh local_install.sh 出现如图问题

| username: TiDBer_57LLru6a

The image is not visible. Please provide the text you need translated.

| username: WalterWj | Original post link

How did you download the package? Did you download the whole thing? :thinking:

| username: TiDBer_57LLru6a | Original post link

I downloaded two packages from the official website, one is tidb-community-server-v6.5.1-linux-amd64.tar.gz, and the other is tidb-community-toolkit-v6.5.1-linux-amd64.tar.gz. I first executed tar -xzvf tidb-community-server-v6.5.1-linux-amd64.tar.gz without any issues. Then I cd into the tidb-community-server-v6.5.1-linux-amd64 directory and executed sh local_install.sh, which resulted in the aforementioned problem.

| username: TiDBer_pkQ5q1l0 | Original post link

The steps for offline deployment involve executing the script outside the package. Give it a try.

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

Does this file exist? Is the path correct?

| username: xingzhenxiang | Original post link

Please use this command to download

tiup mirror clone tidb-community-server-v6.5.1-linux-amd64 v6.5.1 --os=linux --arch=amd64

| username: 我是咖啡哥 | Original post link

Unzip and Deploy TiUP Tool

version=v6.5.1
tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz
sh tidb-community-server-${version}-linux-amd64/local_install.sh
source /home/tidb/.bash_profile

Merge Server and Toolkit Images

tar xf tidb-community-toolkit-${version}-linux-amd64.tar.gz
ls -ld tidb-community-server-${version}-linux-amd64 tidb-community-toolkit-${version}-linux-amd64
cd tidb-community-server-${version}-linux-amd64/
cp -rp keys ~/.tiup/
tiup mirror merge ../tidb-community-toolkit-${version}-linux-amd64

If not merged, an error will occur during installation indicating that the component cannot be found. Some components are in the toolkit package.
Error: unknown component

| username: TiDBer_57LLru6a | Original post link

Okay, I successfully installed it using method two.

| username: TiDBer_57LLru6a | Original post link

I used the offline method, method two, to solve it.

| username: TiDBer_57LLru6a | Original post link

Thank you :clap: Problem solved.

| username: system | Original post link

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