签到成功

知道了

CNDBA社区CNDBA社区

openGauss 初始化安装环境 [GAUSS-51400] 错误解决方法

2023-02-18 22:53 3918 0 原创 openGauss
作者: dave

1. 错误现象

参考openGauss 官方手册安装,在执行初始化脚本时报错:

http://www.cndba.cn/dave/article/116447
http://www.cndba.cn/dave/article/116447
http://www.cndba.cn/dave/article/116447

[dave@www.cndba.cn script]# pwd
/data/software/openGauss/script
[dave@www.cndba.cn script]# ./gs_preinstall -U omm -G dbgrp -X /data/software/openGauss/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.
Setting host ip env
Successfully set host ip env.
Are you sure you want to create the user[omm] (yes/no)? yes
Please enter password for cluster user.
Password: 
Please enter password for cluster user again.
Password: 
Generate cluster user password files successfully.

[GAUSS-51400] : Failed to execute the command: python3 '/data/software/openGauss/script/local/PreInstallUtility.py' -t create_os_user -u omm -g dbgrp -l /var/log/omm/omm/om/gs_local.log. Error: 
not all arguments converted during string formatting

[dave@www.cndba.cn script]#

2. 分析并解决

[dave@www.cndba.cn script]#  python3 '/data/software/openGauss/script/local/PreInstallUtility.py' --help

Usage:
    python3 PreInstallUtility.py -t action -u user -T warning_type
    [-g group] [-X xmlfile] [-P path] [-Q clusterToolPath] [-D mount_path]
    [-e "envpara=value" [...]] [-w warningserverip] [-h nodename]
    [-s mpprc_file] [--check_empty] [-l log]
Common options:
    -t                                The type of action.
    -u                                The OS user of cluster.
    -g                                The OS user's group of cluster.
    -X                                The XML file path.
    -P                                The path to be check.
    -Q                                The path of cluster tool.
    -e "envpara=value"                The OS user environment variable.
    --check_empty                     Check path empty.
    -s                                The path of MPP environment file.
    -l                                The path of log file.
    -R                                The path of cluster install path.
    --help                            Show this help, then exit.

[dave@www.cndba.cn script]# id omm
uid=5701(omm) gid=5701(dbgroup) groups=5701(dbgroup)
[dave@www.cndba.cn script]#

查看脚本帮助,参数个数和大小都没有问题,但是传的参数名称错误。 脚本自动创建的omm 用户是组是: dbgroup,但是脚本传过去的是:-g dbgrp。 http://www.cndba.cn/dave/article/116447

http://www.cndba.cn/dave/article/116447
http://www.cndba.cn/dave/article/116447http://www.cndba.cn/dave/article/116447

实际上这个group 是我们参考官方文档直接复制过来的,修改成dbgroup后,执行不在报错:

http://www.cndba.cn/dave/article/116447
http://www.cndba.cn/dave/article/116447
http://www.cndba.cn/dave/article/116447

[dave@www.cndba.cn script]# ./gs_preinstall -U omm -G dbgroup -X /data/software/openGauss/cluster_config.xml

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2262
    原创
  • 3
    翻译
  • 579
    转载
  • 192
    评论
  • 访问:8089612次
  • 积分:4350
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ