opengauss集羣安裝報錯

DB_VERSION:opengauss 3.0.3

1.[GAUSS-51632]
[GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root].

Error: Failed to register other ssh-agent,output is [Failed to ssh-add perform.Error: /root/.ssh/./ssh-agent.sh: line 18: expect: command not found]
reslove:
解決方案:需要在三個節點上都部署好相關依賴包,單個節點依賴包不全可能會導致預安裝不通過
yum install
-y java-1.8.0-openjdk* psmisc* bzip2* yum install -y python3-devel* python3* lksctp*

yum install -y yum install -y libaio-devel* flex* bison* ncurses-devel* glibc-devel* patch* readline-devel* redhat-lsb-core* expect* ntp*

 

2.[GAUSS-52200]
[GAUSS-52200] : Unable to import module: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory.
reslove:

再次執行預執行時會因前一次預執行已創建了一些目錄和文件,會導致失敗。可參照xml文件,將除/opt/software/openGauss之外的其它目錄和文件

 

3.[GAUSS-51400]
[GAUSS-51400] : Failed to execute the command: rm -rf '/tmp/step_preinstall_file.dat'. Result:{'opengauss-node1': 'Failure', 'opengauss-node2': 'Failure'}.
Error:
[FAILURE] opengauss-node1:
[FAILURE] opengauss-node2:
reslove:
重新編譯python,或者在其它已編譯該python版本環境將libpython3.6m.so.1.0拷貝到當前服務器/usr/lib64 目錄下
並在/etc/profile裏執行 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin,並source /etc/profile生效

 

4.[GAUSS-51806]
[GAUSS-51806] : "The cluster has been installed."
reslove:
檢查omm用戶下的.bashrc文件中$GAUSS_ENV環境變量的值是否爲2,如果是2就註釋掉
GAUSS_ENV = 1 indicates successful pre-installation 表示預安裝成功
GAUSS_ENV = 2 indicates successful installation 表示數據庫已經安裝成功

 

5.如果因爲python環境變量原因無法執行gs_preinstall,可以這樣執行:python3 /opt/software/openGauss/script/gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章