Closed tjlqq closed 10 months ago
[root@centos81-node1 ~]# cat topology.yaml
global:
user: "root"
deploy_dir: "/vagrant/gopenGemini/deploy"
log_dir: "/vagrant/gopenGemini/logs"
os: "linux"
arch: "amd64"
monitored:
ts_monitor_enabled: false
deploy_dir: "/vagrant/gopenGemini/deploy"
ts_meta_servers:
- host: 192.168.56.111
data_dir: "/vagrant/gopenGemini/data/meta"
deploy_dir: "/vagrant/gopenGemini/deploy"
- host: 192.168.56.112
data_dir: "/vagrant/gopenGemini/data/meta"
deploy_dir: "/vagrant/gopenGemini/deploy"
- host: 192.168.56.113
data_dir: "/vagrant/gopenGemini/data/meta"
deploy_dir: "/vagrant/gopenGemini/deploy"
ts_sql_servers:
- host: 192.168.56.111
deploy_dir: "/vagrant/gopenGemini/deploy"
- host: 192.168.56.112
deploy_dir: "/vagrant/gopenGemini/deploy"
ts_store_servers:
- host: 192.168.56.111
data_dir: "/vagrant/gopenGemini/data/data"
deploy_dir: "/vagrant/gopenGemini/deploy"
- host: 192.168.56.112
data_dir: "/vagrant/gopenGemini/data/data"
deploy_dir: "/vagrant/gopenGemini/deploy"
- host: 192.168.56.113
data_dir: "/vagrant/gopenGemini/data/data"
deploy_dir: "/vagrant/gopenGemini/deploy"
grafana_servers:
- host: 192.168.56.114
deploy_dir: "/vagrant/gopenGemini/deploy"
server_configs:
ts-sql:
# 开启鉴权和https
http.auth-enabled: true
http.https-enabled: true
ts-store:
# 指定ts-store的wal文件目录
data.store-wal-dir: "/vagrant/gopenGemini/data/wal"
都加 deploy_dir: "/vagrant/gopenGemini/deploy"报错:
[root@centos81-node1 ~]# gemix cluster uninstall gemini_test
Error: openGemini cluster `gemini_test` not exists
Verbose debug logs has been written to /root/.gemix/logs/gemix-cluster-debug-2024-01-09-04-14-42.log.
[root@centos81-node1 ~]# GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini_test v1.1.1 ./topology.yaml --user root -p --skip-create-user
Input SSH password:
Please confirm your topology:
Cluster name: gemini_test
Cluster version: v1.1.1
Role Host Ports OS/Arch Directories
---- ---- ----- ------- -----------
ts-meta 192.168.56.111 8091/8092/8088/8010 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-meta-8091,/vagrant/gopenGemini/data/meta
ts-meta 192.168.56.112 8091/8092/8088/8010 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-meta-8091,/vagrant/gopenGemini/data/meta
ts-meta 192.168.56.113 8091/8092/8088/8010 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-meta-8091,/vagrant/gopenGemini/data/meta
ts-store 192.168.56.111 8400/8401/8011 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/data/data
ts-store 192.168.56.112 8400/8401/8011 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/data/data
ts-store 192.168.56.113 8400/8401/8011 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/data/data
ts-sql 192.168.56.111 8086 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-sql-8086
ts-sql 192.168.56.112 8086 linux/amd64 /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-sql-8086
grafana 192.168.56.114 3000 linux/amd64 /vagrant/gopenGemini/deploy
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: (default=N) y
+ Download openGemini components
+ Initialize target host environments
+ Generate SSH keys ... Done
- Download grafana:v1.1.1 (linux/amd64) ... Done
- Download openGemini:v1.1.1 (linux/amd64) ... Done
- Prepare 192.168.56.111:22 ⣽ Doing...
- Prepare 192.168.56.111:22 ... Done
- Prepare 192.168.56.113:22 ⣽ Doing...
- Prepare 192.168.56.114:22 ... Done
- Prepare 192.168.56.113:22 ... Done
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-meta-8091,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant/
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-meta-8091,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant/
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-meta-8091,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant/
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-store-8401,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts,/vagrant
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/logs/ts-sql-8086,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts, -> 192.16
- Mkdir /vagrant/gopenGemini/deploy,/vagrant/gopenGemini/deploy/log,/vagrant/gopenGemini/deploy/bin,/vagrant/gopenGemini/deploy/conf,/vagrant/gopenGemini/deploy/scripts, -> 192.168.56.1
Error: executor.ssh.execute_failed: Failed to execute command over SSH for 'root@192.168.56.112:22' {ssh_stderr: mkdir: cannot create directory '/vagrant/gopenGemini/deploy/scripts': File exists
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c "test -d /vagrant/gopenGemini/deploy/scripts || (mkdir -p /vagrant/gopenGemini/deploy/scripts && chown root:$(id -g -n root) /vagrant/gopenGemini/deploy/scripts)"}, cause: Process exited with status 1
Verbose debug logs has been written to /root/.gemix/logs/gemix-cluster-debug-2024-01-09-04-15-17.log.
“[root@centos81-node1 ~]# cat topology.yaml global: user: "root" deploy_dir: "/vagrant/gopenGeminibug/deploy" log_dir: "/vagrant/gopenGeminibug/logs" os: "linux" arch: "amd64" monitored: ts_monitor_enabled: false deploy_dir: "/vagrant/gopenGeminibug/deploy" ts_meta_servers:
http.auth-enabled: true http.https-enabled: true ts-store:
data.store-wal-dir: "/vagrant/gopenGeminibug/data/wal" ” 将目录 换了gopenGeminibug 加了个bug 结果还是报错:`[root@centos81-node1 ~]# GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini_test v1.1.1 ./topology.yaml --user root -p --skip-create-user Input SSH password: Please confirm your topology: Cluster name: gemini_test Cluster version: v1.1.1 Role Host Ports OS/Arch Directories
ts-meta 192.168.56.111 8091/8092/8088/8010 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-meta-8091,/vagrant/gopenGeminibug/data/meta ts-meta 192.168.56.112 8091/8092/8088/8010 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-meta-8091,/vagrant/gopenGeminibug/data/meta ts-meta 192.168.56.113 8091/8092/8088/8010 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-meta-8091,/vagrant/gopenGeminibug/data/meta ts-store 192.168.56.111 8400/8401/8011 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-store-8401,/vagrant/gopenGeminibug/data/data ts-store 192.168.56.112 8400/8401/8011 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-store-8401,/vagrant/gopenGeminibug/data/data ts-store 192.168.56.113 8400/8401/8011 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-store-8401,/vagrant/gopenGeminibug/data/data ts-sql 192.168.56.111 8086 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-sql-8086 ts-sql 192.168.56.112 8086 linux/amd64 /vagrant/gopenGeminibug/deploy,/vagrant/gopenGeminibug/logs/ts-sql-8086 grafana 192.168.56.114 3000 linux/amd64 /vagrant/gopenGeminibug/deploy Attention:
Error: stderr: tar: usr/bin/ts-meta: Cannot open: File exists tar: Exiting with failure status due to previous errors : executor.ssh.execute_failed: Failed to execute command over SSH for 'root@192.168.56.111:22' {ssh_stderr: tar: usr/bin/ts-meta: Cannot open: File exists tar: Exiting with failure status due to previous errors , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin tar --no-same-owner -zxf /vagrant/gopenGeminibug/deploy/bin/openGemini-1.1.1-linux-amd64.tar.gz -C /vagrant/gopenGeminibug/deploy/bin --wildcards 'ts-meta' && mv /vagrant/gopenGeminibug/deploy/bin/usr/bin/ts- /vagrant/gopenGeminibug/deploy/bin && rm -r /vagrant/gopenGeminibug/deploy/bin/usr && rm /vagrant/gopenGeminibug/deploy/bin/openGemini-1.1.1-linux-amd64.tar.gz}, cause: Process exited with status 2 Verbose debug logs has been written to /root/.gemix/logs/gemix-cluster-debug-2024-01-09-04-19-37.log. `
Describe the bug(Bug 描述)
在centos8.5 上安装集群报错:
{"code": 1, "error": "dir is a relative path: bin", "errorVerbose": "dir is a relative path: bin\ngithub.com/openGemini/gemix/pkg/cluster/task.(*Serial).Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/task.go:85\ngithub.com/openGemini/gemix/pkg/cluster/task.(*StepDisplay).Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/step.go:84\ngithub.com/openGemini/gemix/pkg/cluster/task.(*Parallel).Execute.func1\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/task.go:138\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650\ngithub.com/openGemini/gemix/pkg/cluster/task.(*Parallel).Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/task.go:152\ngithub.com/openGemini/gemix/pkg/cluster/task.(*ParallelStepDisplay).Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/step.go:151\ngithub.com/openGemini/gemix/pkg/cluster/task.(*Serial).Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/task.go:83\ngithub.com/openGemini/gemix/pkg/cluster/manager.(*Manager).Install\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/manager/install.go:176\ngithub.com/openGemini/gemix/cmd/cluster.installCmd.func1\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/cluster/install.go:59\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1059\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\ngithub.com/openGemini/gemix/cmd/cluster.Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/cluster/root.go:87\ngithub.com/openGemini/gemix/cmd.Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/root.go:59\nmain.main\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/main.go:52\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650\ngithub.com/openGemini/gemix/pkg/cluster/task.(*Serial).Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/task/task.go:85\ngithub.com/openGemini/gemix/pkg/cluster/manager.(*Manager).Install\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/manager/install.go:176\ngithub.com/openGemini/gemix/cmd/cluster.installCmd.func1\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/cluster/install.go:59\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1059\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\ngithub.com/openGemini/gemix/cmd/cluster.Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/cluster/root.go:87\ngithub.com/openGemini/gemix/cmd.Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/root.go:59\nmain.main\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/main.go:52\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650\ngithub.com/openGemini/gemix/pkg/cluster/manager.(*Manager).Install\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/pkg/cluster/manager/install.go:181\ngithub.com/openGemini/gemix/cmd/cluster.installCmd.func1\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/cluster/install.go:59\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1059\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\ngithub.com/openGemini/gemix/cmd/cluster.Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/cluster/root.go:87\ngithub.com/openGemini/gemix/cmd.Execute\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/cmd/root.go:59\nmain.main\n\t/root/go/pkg/mod/github.com/open!gemini/gemix@v0.0.0-20240105062715-e30cbbdc0790/main.go:52\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650"}
安装文件: `global: user: "root" deploy_dir: "/usr/local/openGemini" log_dir: "/vagrant/gopenGemini/logs" os: "linux" arch: "amd64" monitored: ts_monitor_enabled: true ts_meta_servers:开启鉴权和https
http.auth-enabled: true http.https-enabled: true ts-store:
指定ts-store的wal文件目录
data.store-wal-dir: "/vagrant/gopenGemini/data/wal" ts-monitor:
修改存储监控数据的库名,默认为集群名
report.database: "_internal"
监控数据默认被写入当前集群的目标数据库中,如果需要将监控数据写入单独节点上的openGemini,可修改地址
report.address: "192.168.56.115:8086" ` 根据官网提供的文件修改的
To Reproduce(Bug 复现步骤)
No response
Expected behavior(期望结果)
No response
Screenshots(屏幕截图)
No response
Logs(完整的错误日志)
No response
Additional context(其他的一些补充内容)
No response