GBase 8c
安装配置
问答

安装报错

发表于2025-02-11 17:21:47154次浏览10个评论

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

【GBase版本】: GBase8cV3

【操作系统】: CenOS 7.8

【CPU】: Intel(R) Xeon(R)

【问题描述】*: 执行./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.27.44.46. Error:\nRun cmd failed:cmd[source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.27.44.46], 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.pyc' -U gbase -t preinstall. Result:{'172.27.44.46': 'Failure'}.\nError:\n[FAILURE] 172.27.44.46:\n]"
}

 

这是日志

025-02-11 17:10:16 command_util.py execute 315 DEBUG 20476 cmd:hostname, exitcode:0, data:iZbp1307qy5lhrvt8hdd48Z
2025-02-11 17:10:16 command_util.py execute 315 DEBUG 20476 cmd:hostname, exitcode:0, data:iZbp1307qy5lhrvt8hdd48Z
2025-02-11 17:10:16 command_util.py execute 315 DEBUG 20476 cmd:hostname, exitcode:0, data:iZbp1307qy5lhrvt8hdd48Z
2025-02-11 17:10:16 etcd.py __init__ 92 INFO 20476 AbstractEtcdClientWithFailover config:{'host_tuple': (('172.27.44.46', 2379),), 'username': 'gbase', 'password': 'AidmOwGw$L5%FyQb', 'hosts': ['http://172.27.44.46:2379']}
2025-02-11 17:10:16 client.py __init__ 186 DEBUG 20476 New etcd client created for http://172.27.44.46:2379
2025-02-11 17:10:16 retry.py from_int 332 DEBUG 20476 Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=0, status=None)
2025-02-11 17:10:16 connectionpool.py _new_conn 227 DEBUG 20476 Starting new HTTP connection (1): 172.27.44.46:2379
2025-02-11 17:10:16 dcs.py create_connection_patched 103 DEBUG 20476 create_connection_patched err:[Errno 111] Connection refused
2025-02-11 17:10:16 retry.py increment 575 DEBUG 20476 Incremented Retry for (url='/v2/machines'): Retry(total=1, connect=None, read=None, redirect=0, status=None)
2025-02-11 17:10:16 connectionpool.py urlopen 780 WARNING 20476 Retrying (Retry(total=1, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6e1c6a8cd0>: Failed to establish a new connection: [Errno 111] Connection refused')': /v2/machines
2025-02-11 17:10:16 connectionpool.py _new_conn 227 DEBUG 20476 Starting new HTTP connection (2): 172.27.44.46:2379
2025-02-11 17:10:16 dcs.py create_connection_patched 103 DEBUG 20476 create_connection_patched err:[Errno 111] Connection refused
2025-02-11 17:10:16 retry.py increment 575 DEBUG 20476 Incremented Retry for (url='/v2/machines'): Retry(total=0, connect=None, read=None, redirect=0, status=None)
2025-02-11 17:10:16 connectionpool.py urlopen 780 WARNING 20476 Retrying (Retry(total=0, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6e1c6a8d90>: Failed to establish a new connection: [Errno 111] Connection refused')': /v2/machines
2025-02-11 17:10:16 connectionpool.py _new_conn 227 DEBUG 20476 Starting new HTTP connection (3): 172.27.44.46:2379
2025-02-11 17:10:16 dcs.py create_connection_patched 103 DEBUG 20476 create_connection_patched err:[Errno 111] Connection refused
2025-02-11 17:10:16 etcd.py machines 214 ERROR 20476 Failed to get list of machines from http://172.27.44.46:2379/v2: MaxRetryError("HTTPConnectionPool(host='172.27.44.46', port=2379): Max retries exceeded with url: /v2/machines (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6e1c6a8f10>: Failed to establish a new connection: [Errno 111] Connection refused'))")
2025-02-11 17:10:16 etcd.py machines 215 INFO 20476 EtcdConnectionFailed
2025-02-11 17:10:16 etcd.py __init__ 96 ERROR 20476 create etcd client failed:No more machines in the cluster
2025-02-11 17:10:16 dcs.py create_client 120 ERROR 20476 create etcd client failed: No more machines in the cluster

。。。。。

 

2025-02-11 17:10:18 command_util.py execute 315 DEBUG 20476 cmd:hostname, exitcode:0, data:iZbp1307qy5lhrvt8hdd48Z
2025-02-11 17:10:18 command_util.py execute 315 DEBUG 20476 cmd:cp /etc/hosts ./tmp_hosts_new_20476; sed -i '/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\s\+iZbp1307qy5lhrvt8hdd48Z\(\s.*\)*$/d' ./tmp_hosts_new_20476; echo '172.27.44.46  iZbp1307qy5lhrvt8hdd48Z  #Gbase8c gha IP host mapping' >> ./tmp_hosts_new_20476; sudo cp ./tmp_hosts_new_20476 /etc/hosts; rm -f ./tmp_hosts_new_20476, exitcode:0, data:
2025-02-11 17:10:18 install.py parallel_install_package 274 INFO 20476 Wait some minutes to copy package to all hosts
2025-02-11 17:10:18 command_util.py execute 315 DEBUG 20476 cmd:rm -rf /home/gbase/gbase_db/om; mkdir -p /home/gbase/gbase_db/om, exitcode:0, data:
2025-02-11 17:10:22 command_util.py execute 315 DEBUG 20476 cmd:tar xf /home/gbase/GBase8cV5_S3.0.0B114_centos7.8_x86_64.tar.gz -C /home/gbase/gbase_db/om; find /home/gbase/gbase_db/om -name '*_om.tar.gz' | xargs -I {} tar zxf {} -C /home/gbase/gbase_db/om;sudo chown -R gbase: /home/gbase/gbase_db/om/*, exitcode:0, data:

 

。。。。

 

2025-02-11 17:10:23 utils.py set_autocomplete 821 ERROR 20476 localhost auto complete file miss
2025-02-11 17:10:23 command_util.py execute 315 DEBUG 20476 cmd:cat /home/gbase/.bashrc >> /tmp/gs_env_140110861567744; rm -f /home/gbase/.bashrc; mv /tmp/gs_env_140110861567744 /home/gbase/.bashrc, exitcode:0, data:
2025-02-11 17:10:23 command_util.py execute 315 DEBUG 20476 cmd:sed -n '3p' /home/gbase/gbase_db/om/version.cfg, exitcode:0, data:9b50bc36
2025-02-11 17:10:23 command_util.py execute 315 DEBUG 20476 cmd:rm -rf /home/gbase/gbase_db/app_9b50bc36 && mkdir -p /home/gbase/gbase_db/app_9b50bc36 && ln -snf /home/gbase/gbase_db/app_9b50bc36 /home/gbase/gbase_db/app, exitcode:0, data:
2025-02-11 17:10:23 gaussdb.py install_cluster_app 26 DEBUG 20476 Installing applications on all nodes.
2025-02-11 17:10:23 gaussdb.py install_cluster_app 31 DEBUG 20476 Execute deploy command in [None]: source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.27.44.46
2025-02-11 17:10:23 command_util.py execute 315 DEBUG 20476 cmd:source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.27.44.46, exitcode:1, data:Parsing the configuration file.
Check preinstall on every node.
[GAUSS-51400] : Failed to execute the command: python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.pyc' -U gbase -t preinstall. Result:{'172.27.44.46': 'Failure'}.
Error:
[FAILURE] 172.27.44.46:

2025-02-11 17:10:23 gha_ctl.py CHECK_RET 34 DEBUG 20476 ret:-1, msg:Failed to execute the command: source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.27.44.46. Error:
Run cmd failed:cmd[source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.27.44.46], msg[Parsing the configuration file.
Check preinstall on every node.
[GAUSS-51400] : Failed to execute the command: python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.pyc' -U gbase -t preinstall. Result:{'172.27.44.46': 'Failure'}.
Error:
[FAILURE] 172.27.44.46:
]

评论

登录后才可以发表评论
用户头像
GBase用户137发表于 1年前
请问部署环境是什么样的,操作系统版本?
GBase用户26303发表于 1年前
@GBase用户137:操作系统就是CentOS Linux release 7.8.2003
用户头像
GBase用户137发表于 1年前
@GBase用户26303:请检查下是否已经配置gbase用户的sudo权限,以及节点自身的免密登录配置。可以参考安装部署手册
GBase用户26303发表于 1年前
gha_server:
- gha_server1:
host: 172.27.44.46
port: 20001
dcs:
- host: 172.27.44.46
port: 2379
gtm:
- gtm1:
host: 172.27.44.46
agent_host: 172.27.44.46
role: primary
port: 6666
agent_port: 8001
work_dir: /home/gbase/data/gtm/gtm
coordinator:
- cn1:
host: 172.27.44.46
agent_host: 172.27.44.46
role: primary
port: 5432
agent_port: 8003
work_dir: /home/gbase/data/coord/cn
datanode:
- dn1:
- dn1_1:
host: 172.27.44.46
agent_host: 172.27.44.46
role: primary
port: 15432
agent_port: 8005
work_dir: /home/gbase/data/dn1/dn1_1
- dn2:
- dn2_1:
host: 172.27.44.46
agent_host: 172.27.44.46
role: primary
port: 20010
agent_port: 8007
work_dir: /home/gbase/data/dn2/dn2_1
env:
# cluster_type allowed values: multiple-nodes, single-inst, default is multiple-nodes
cluster_type: multiple-nodes
pkg_path: /home/gbase/
prefix: /home/gbase/gbase_db
version: V5_S3.0.0B114
user: gbase
port: 22
third_ssh: false
# constant:
# virtual_ip: 100.0.1.254/24

这是gbase.yml的配置文件
用户头像
GBase用户137发表于 1年前
@GBase用户26303:单个节点部署的时候,建议只配置dn1就可以。dn1主和dn2主如果是同一节点无意义。
GBase用户26303发表于 1年前
@GBase用户137:去掉dn2也不行,看报错是dcs没启动起来,连接dcs时拒绝连接了,但是为啥拒绝连接或者dcs没启动就看不出来
崔哥发表于 7个月前
把酒长亭说。看渊明、风流酷似,卧龙诸葛。何处飞来林间鹊,蹙踏松梢微雪。要破帽多添华发。剩水残山无态度,被疏梅料理成风月。两三雁,也萧瑟。佳人重约还轻别。怅清江、天寒不渡,水深冰合。路断车轮生四角,此地行人销骨。问谁使、君来愁绝?铸就而今相思错,料当初、费尽人间铁。长夜笛,莫吹裂。
ljt98发表于 2个月前
坐等大佬解析。
GBase用户51840发表于 2个月前
等答案了啊。