暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

【openGauss单机安装】报错:[GAUSS-51632] [GAUSS-50202]解决

原创 李美静 恩墨学院 2020-06-30
9687

在安装过程中关键步骤执行gs_preinstall,为安装做准备操作。

在执行这个脚本时,遇到了如下报错:

报错一:

python版本问题,这个在官方手册中也有说明,对于Centos 7.6来说,必须是3.6版本。
如果版本不对,在执行时,会报错如下:

[root@enmoedu1 script]# python gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml
Traceback (most recent call last):
  File "gs_preinstall", line 29, in <module>
    checkPythonVersion()
  File "/opt/software/openGauss/script/gspylib/common/CheckPythonVersion.py", line 37, in checkPythonVersion
    distName + " should use Python 3.6.*")
Exception: [GAUSS-52200] : version of python is not correct: Linux-3.10.0-957.el7.x86_64-x86_64-with-centos-7.6.1810-Core. should use Python 3.6.*

解决:
方式一:
最好是配置可以连接外网,利用外网yum源安装openssl-devel包,python3
注:Centos是自带外网yum源的,所以不用配置yum,只需要配置好外网直接执行yum安装就可以。
执行:
yum install openssl* python3*
校验版本:
[root@enmoedu1 yum.repos.d]# python3 -V
Python 3.6.8
方式二:
安装openssl-devel包
下载源码Python-3.6.10.tgz 安装包
先进行解压,进入解压目录,依次执行./configure --with-ssl ,make &make install
无论是第一种方式解决,还是第二种方式解决,关键步骤,一定要安装openssl-devel包,否则在执行pre_install时会提示不能加载ssl模块的错误。可以在安装完python3之后,通过以下步骤检查:

[omm@enmoedu1 ~]$ python3
Python 3.6.10 (default, Jun 24 2020, 22:26:52) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl

报错二:

[FAILURE] enmoedu1.enmotech.com:
[GAUSS-50202] : The /opt/gaussdb must be empty. Or user [omm] has write permission to directory /opt/gaussdb. Because it will create symbolic link [/opt/gaussdb/app] to install path [/opt/gaussdb/app_38a9312a] in gs_install process with this user.

解决:

[root@enmoedu1 yum.repos.d]# rm -rf /opt/gaussdb
[root@enmoedu1 yum.repos.d]# chmod 775 /opt -R
[root@enmoedu1 yum.repos.d]# chown omm:dbgrp /opt -R

报错三:

[GAUSS-51632] : Failed to do python3 '/opt/software/openGauss/script/local/LocalCheckOS.py' -t Check_Firewall_Service -l '/var/log/gaussdb/omm/om/gs_local.log' . Error: 
'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

解决:
[root@enmoedu1 om]# export LC_CTYPE=en_US.UTF-8

最后修改时间:2020-06-30 10:20:24
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
1人已赞赏
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论