预安装opengauss5.0.1时报错

报错信息:
[root@og-db-50 script]# ./gs_preinstall -U omm -G dbgrp -X /software/cluster_config.xml
Parsing the configuration file.
Successfully parsed the configuration file.
Installing the tools on the local node.
Successfully installed the tools on the local node.
Are you sure you want to create trust for root (yes/no)?yes
Please enter password for root
Password:
[GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root].
Checking network information.
All nodes in the network are Normal.
Successfully checked network information.
Creating SSH trust.
Creating the local key file.
cms is: source /etc/profile;ssh-agent -a /root/gaussdb_tmp/gauss_socket_tmp;Errors:ssh-agent: /data/og_soft/om/script/gspylib/clib/libcrypto.so.1.1: version OPENSSL_1_1_1f' not found (required by ssh-agent) Creating the local key file. cms is: source /etc/profile;ssh-agent -a /root/gaussdb_tmp/gauss_socket_tmp;Errors:ssh-agent: /data/og_soft/om/script/gspylib/clib/libcrypto.so.1.1: version OPENSSL_1_1_1f’ not found (required by ssh-agent)
Creating the local key file.
cms is: source /etc/profile;ssh-agent -a /root/gaussdb_tmp/gauss_socket_tmp;Errors:ssh-agent: /data/og_soft/om/script/gspylib/clib/libcrypto.so.1.1: version OPENSSL_1_1_1f' not found (required by ssh-agent) Error: Failed to create public private keyfile,output is [[GAUSS-51632] : Failed to do register ssh agent.cmd is:source /etc/profile;ssh-agent -a /root/gaussdb_tmp/gauss_socket_tmp;Error: ssh-agent: /data/og_soft/om/script/gspylib/clib/libcrypto.so.1.1: version OPENSSL_1_1_1f’ not found (required by ssh-agent)]

备注:cluster_config.xml是一主一备的集群配置。

cluster_config.xml配置文件换成单机配置预安装就能通过,换成集群配置就会报错。

1 Like

这是因为openSSL版本和openGauss自带的lib冲突,之所以单机部署没问题而主备部署有问题,是因为单机部署不需要建立不同服务器间的互信,从而不需要调用ssh-agent,也就不会触发openSSL冲突了,而主备则需要建立互信,于是有了该报错。解决方法:unset LD_LABRRY_PATH然后 export LD_LABRRY_PATH =/user/lib64;ssh;也可以手动在各节点上建立互信,然后再执行预安装命令。