安装报错
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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:
]
评论
- 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的配置文件
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25044
- 42023-09-25浏览数:18519
- 52020-05-11浏览数:17526