GBase 8c
安装配置
问答

安装报错

发表于2023-05-19 12:15:53295次浏览53个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:

GAUSS_VERSION=V5_S3.0.0B62

【操作系统】:

CentOS Linux release 7.9.2009 (Core)

【CPU】:

Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

【问题描述】*:

在虚拟机中搭建gbase测试环境,内存16GB,CPU 8核。300GB的本地磁盘。

在使用gbase用户执行./gha_ctl install -c gbase -p /home/gbase时报错如下:

{
   "ret":-1,
   "msg":"Failed to execute the command: source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.16.20.142,172.16.20.143,172.16.20.144. Error:\nRun cmd failed:cmd[ssh -E /dev/null -p 22 gbase@172.16.20.142 \"source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.16.20.142,172.16.20.143,172.16.20.144\"], msg[Parsing the configuration file.\nCheck preinstall on every node.\n[GAUSS-51400] : Failed to execute the command: python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.py' -U gbase -t preinstall. Result:{'172.16.20.142': 'Failure', '172.16.20.143': 'Success', '172.16.20.144': 'Success'}.\nError:\n[FAILURE] 172.16.20.142:\n[SUCCESS] 172.16.20.143:\nSuccessfully checked GAUSS_ENV.\n[SUCCESS] 172.16.20.144:\nSuccessfully checked GAUSS_ENV.\n]"
}

但是在172.16.20.142上直接执行python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.py' -U gbase -t preinstall会报Successfully checked GAUSS_ENV.

gbase.yml文件的内容如下:

gha_server:
 - gha_server1:
     host: 172.16.20.142
     port: 20001
dcs:
 - host: 172.16.20.144
   port: 2379
 - host: 172.16.20.142
   port: 2379
 - host: 172.16.20.143
   port: 2379
gtm:
 - gtm1:
     host: 172.16.20.142
     agent_host: 172.16.20.142
     role: primary
     port: 6666
     agent_port: 8001
     work_dir: /home/gbase/data/gtm/gtm1
 - gtm2:
     host: 172.16.20.143
     agent_host: 172.16.20.143
     role: standby
     port: 6666
     agent_port: 8002
     work_dir: /home/gbase/data/gtm/gtm2
coordinator:
 - cn1:
     host: 172.16.20.143
     agent_host: 172.16.20.143
     role: primary
     port: 5432
     agent_port: 8003
     work_dir: /home/gbase/data/coord/cn1
 - cn2:
     host: 172.16.20.142
     agent_host: 172.16.20.142
     role: standby
     port: 5432
     agent_port: 8004
     work_dir: /home/gbase/data/coord/cn2
datanode:
 - dn1:
     - dn1_1:
         host: 172.16.20.143
         agent_host: 172.16.20.143
         role: primary
         port: 15433
         agent_port: 8006
         work_dir: /home/gbase/data/dn1/dn1_1
     - dn1_2:
         host: 172.16.20.142
         agent_host: 172.16.20.142
         role: standby
         port: 15433
         agent_port: 8006
         work_dir: /home/gbase/data/dn1/dn1_2
     - dn1_3:
         host: 172.16.20.144
         agent_host: 172.16.20.144
         role: standby
         port: 15433
         agent_port: 8006
         work_dir: /home/gbase/data/dn1/dn1_3
 - dn2:
     - dn2_1:
         host: 172.16.20.143
         agent_host: 172.16.20.143
         role: primary
         port: 20010
         agent_port: 8007
         work_dir: /home/gbase/data/dn2/dn2_1
         # numa:
         #   cpu_node_bind: 0,1
         #   mem_node_bind: 0,1
     - dn2_2:
         host: 172.16.20.144
         agent_host: 172.16.20.144
         role: standby
         port: 20010
         agent_port: 8007
         work_dir: /home/gbase/data/dn2/dn2_2
         # numa:
         #   cpu_node_bind: 2
         #   mem_node_bind: 2
     - dn2_3:
         host: 172.16.20.142
         agent_host: 172.16.20.142
         role: standby
         port: 20010
         agent_port: 8007
         work_dir: /home/gbase/data/dn2/dn2_3
         # numa:
         #   cpu_node_bind: 3
         #   mem_node_bind: 3
env:
 # cluster_type allowed values: multiple-nodes, single-inst, default is multiple-nodes
 cluster_type: multiple-nodes
 pkg_path: /home/gbase/inst
 prefix: /home/gbase/gbase_db
 version: V5_S3.0.0B62
 user: gbase
 port: 22
# constant:
#   virtual_ip: 172.16.20.254/24

 

172.16.20.142节点上的/home/gbase/gbase_db/log/om/gs_install-2023-05-19_115131.log内容如下:

[2023-05-19 11:51:31.455773][15757][gs_install][DEBUG]:The /home/gbase/gbase_db/tmp/deploy_step/deploy_step.dat does not exits.
[2023-05-19 11:51:31.456151][15757][gs_install][DEBUG]:gs_deploy execution takes 7 steps in total
[2023-05-19 11:51:31.456346][15757][gs_install][LOG][Step1]:Parsing the configuration file.
[2023-05-19 11:51:31.479137][15757][gs_install][DEBUG][Step1]:Successfully parsed the configuration file.
[2023-05-19 11:51:31.509062][15757][gs_install][LOG][Step2]:Check preinstall on every node.
[2023-05-19 11:51:32.594826][15757][gs_install][ERROR]:[GAUSS-51400] : Failed to execute the command: python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.py' -U gbase -t preins
tall. Result:{'172.16.20.142': 'Failure', '172.16.20.143': 'Success', '172.16.20.144': 'Success'}.
Error:
[FAILURE] 172.16.20.142:
[SUCCESS] 172.16.20.143:
Successfully checked GAUSS_ENV.
[SUCCESS] 172.16.20.144:
Successfully checked GAUSS_ENV.
 

 

评论

登录后才可以发表评论
用户头像
GBase社区管理员发表于 3年前

您好,请确认一下142这台节点的互认是否配置正确,包括本机到本机,及本机到其他节点

枫溪发表于 8个月前
学习下
曾浩轩发表于 2个月前
好问题啊。
紫菀发表于 2个月前
不清楚啊。
GBase用户51934发表于 2个月前
学习下。
过客发表于 2个月前
围观了。
用户头像
柒柒天晴发表于 2个月前
好问题啊。
用户头像
柒柒天晴发表于 2个月前
学习中,还不清楚。
用户头像
柒柒天晴发表于 2个月前
等待有缘人解答。
青菇凉发表于 2个月前
好问题啊。
用户头像
山佳发表于 2个月前
等待有缘人解答。
曾云林发表于 2个月前
学习中,还不清楚。
曾浩轩发表于 2个月前
围观了。
shepherd发表于 2个月前
等答案了啊。
GBase用户51820发表于 2个月前
学习下。
GBase用户51840发表于 2个月前
好问题啊。
爱笑的眼睛发表于 2个月前
等答案了啊。
沉香发表于 2个月前
看看啦。
GBase用户51885发表于 2个月前
学习下。
GBase用户51934发表于 2个月前
看看啦。
用户头像
柒柒天晴发表于 2个月前
围观了。
ljt98发表于 2个月前
等答案了啊。
青菇凉发表于 2个月前
坐等大佬解析。
曾浩轩发表于 2个月前
不清楚啊。
shepherd发表于 2个月前
学习下。
茵陈发表于 2个月前
蹲个答案。
爱笑的眼睛发表于 2个月前
等待有缘人解答。
xinyiedc!发表于 2个月前
蹲个答案。
白芷发表于 2个月前
等待有缘人解答。
GBase用户51882发表于 2个月前
蹲个答案。
GBase用户51935发表于 2个月前
围观了。
菲菲发表于 2个月前
学习下。
ljt98发表于 2个月前
不清楚啊。
用户头像
山佳发表于 2个月前
围观了。
曾浩轩发表于 2个月前
等答案了啊。
茵陈发表于 2个月前
好问题啊。
爱笑的眼睛发表于 2个月前
蹲个答案。
GBase用户51884发表于 2个月前
蹲个答案。
GBase用户51885发表于 2个月前
学习中,还不清楚。
GBase用户51887发表于 2个月前
学习下。
GBase用户51935发表于 2个月前
看看啦。
GBase用户51934发表于 2个月前
好问题啊。
xiaowuyun发表于 2个月前
学习下。
曾浩轩发表于 2个月前
看看啦。
GBase用户51820发表于 2个月前
等答案了啊。
zixuwang发表于 2个月前
学习中,还不清楚。
weifeng发表于 2个月前
坐等大佬解析。
沉香发表于 2个月前
坐等大佬解析。
GBase用户51884发表于 2个月前
围观了。
GBase用户51882发表于 2个月前
看看啦。
GBase用户51934发表于 2个月前
学习中,还不清楚。
用户头像
柒柒天晴发表于 2个月前
不清楚啊。
菲菲发表于 2个月前
看看啦。