暂无图片
mogdb无法启动
我来答
分享
暂无图片 匿名用户
mogdb无法启动

ptk安装集群后无法启动,请问怎么排查,怎么处理。
启动日志:


[xxx@node2 ~]$ ptk cluster -n xxx_cluster start
INFO[2023-09-15T02:34:59.282] operation: start                             
INFO[2023-09-15T02:34:59.282] ========================================     
ERRO[2023-09-15T02:34:59.334] execute cm_ctl command failed
COMMAND: . ~/.ptk_mogdb_env; /opt/mogdb/app/bin/cm_ctl start -t 600
ERROR: exit status 255
OUTPUT: cm_ctl: checking cluster status.
cm_ctl: checking cluster status.
cm_ctl: checking finished in 33 ms.
cm_ctl: Failed to execute the shell command with the pssh exit code 127.
cm_ctl: failed to check the cluster running status. 
exit status 255
[xxx@node2 ~]$ 

复制

cm日志:


2023-09-15 02:34:59.279 tid=15570  DEBUG1: ip: "192.168.60.192", cmd: "cm_ctl query -v -C -i". 
2023-09-15 02:34:59.279 tid=15570  DEBUG1: 460 : connect to cmserver failed: could not connect to server: 
        Is the server running on host "192.168.60.192" and accepting
        TCP/IP connections on port 15300?
.
2023-09-15 02:34:59.279 tid=15570  DEBUG1: can't connect to cm_server node 1 node_name node2
2023-09-15 02:34:59.280 tid=15570  DEBUG1: 460 : connect to cmserver failed: could not connect to server: 
        Is the server running on host "192.168.60.191" and accepting
        TCP/IP connections on port 15300?
.
2023-09-15 02:34:59.280 tid=15570  DEBUG1: can't connect to cm_server node 2 node_name node3
2023-09-15 02:34:59.280 tid=15570  DEBUG1: CMServer State: node=1 nodeName=node2 ip=192.168.60.192 instanceId=1 DataPath= state=Down
2023-09-15 02:34:59.280 tid=15570  DEBUG1: CMServer State: node=2 nodeName=node3 ip=192.168.60.191 instanceId=2 DataPath= state=Down
2023-09-15 02:34:59.280 tid=15570  DEBUG1: query_kerberos: MPPDB_KRB5_FILE_PATH get fail.
2023-09-15 02:34:59.280 tid=15570  ERROR: can't connect to cm_server.
Maybe cm_server is not running, or timeout expired. Please try again.
2023-09-15 02:34:59.298 tid=15572  DEBUG1: ip: "192.168.60.192", cmd: "cm_ctl start -t 600". 
2023-09-15 02:34:59.298 tid=15572  DEBUG1: [InitResStat] no custom resource config.
2023-09-15 02:34:59.298 tid=15572  LOG: checking cluster status.
2023-09-15 02:34:59.298 tid=15572  LOG: checking cluster status.
2023-09-15 02:34:59.298 tid=15572  DEBUG1: start check cluster running status with command if [ -f "/etc/profile" ]; then source /etc/profile; fi; if [ -f "$HOME/.bashrc" ]; then source $HOME/.bashrc; fi; if [ -f "" ]; then source ; fi; pssh  -t 60 -O ConnectTimeout=5 -O ConnectionAttempts=3 -O ServerAliveInterval=15 -O ServerAliveCountMax=3  -h /opt/mogdb/app/bin/hosts " if [ -f \"/etc/profile\" ]; then source /etc/profile; fi; if [ -f \"\$HOME/.bashrc\" ]; then source \$HOME/.bashrc; fi; if [ -f \"\" ]; then source ; fi; /opt/mogdb/app/bin/cm_ctl check -B cm_agent -T /opt/mogdb/app/bin/cm_agent > /dev/null; " 2>&1; .
2023-09-15 02:34:59.332 tid=15572  DEBUG1: /usr/bin/env: python3: No such file or directory
2023-09-15 02:34:59.332 tid=15572  LOG: checking finished in 33 ms.
2023-09-15 02:34:59.332 tid=15572  ERROR: Failed to execute the shell command with the pssh exit code 127.
2023-09-15 02:34:59.332 tid=15572  ERROR: failed to check the cluster running status.
复制
我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
彭冲

从日志信息看,ptk安装完成后,cm_ctl启库有问题。

1.用gs_ctl start执行,看看是否能正常启动

2.如果gs_ctl start执行正常,再试试cm_ctl start,可以加-n 单个节点执行看看,再看看cm日志。

3.检查一下相关依赖包、cpu指令集、ssl、python3环境。

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
pycharm连接mogdb报错
回答 1
已采纳
使用postgresql原版的psycopg2会有此问题,需要将数据库的密码认证方式改为md5,重启数据库,并修改对应用户的密码设置passwordencryptiontype为0在pghba.con
求助在银河麒麟V10 X86平台安装MogDB报如下错 libparquet.so.14找不到
回答 1
设置一下lib路径试试呢?类似于exportLDLIBRARYPATH/opt/mogdb/script/gspylib/clib:$LDLIBRARYPATH
lib开发 mogDb 相关库文件 Dockerfile相关配置
回答 1
注意保持容器化环境和你的linux环境使用相同版本的glibc及libpq。一般来说,引用动态库只要配置好了LDLIBRARYPATH即可
[GAUSS-51637] [GAUSS-50201]
回答 1
[GAUSS51637][GAUSS50201]与OpenGauss数据库安装相关,当安装失败时,由于无法访问文件或目录而导致错误。
mogdb客户端如何将查询结果输出为excel或html格式?
回答 2
已采纳
postgres\a\t\o/home/mogdb/yyyy.htmlOutputformatisunaligned.Showingonlytuples.postgres\psetformathtml
缺少指令集umi2 怎么办?ptk方式安装无法进行
回答 1
https://blog.csdn.net/weixin39198406/article/details/119515531手动添加umi能否解决呢,试过么
Mogdb/opengauss 分区表的一个分区 用什么方法能导出来
回答 6
学习
mogdb Sysbench性能严重下降的问题
回答 3
[root@mogdblua]/root/sysbench1.0.18/src/sysbencholtpinsert.luapgsqlhost172.20.22.173pgsqlport26000pg
求 openGauss/MogDB 数据库中查询指定表所有视图 的SQL语句
回答 1
https://www.modb.pro/db/567100
gs_ctl 建立一主一备关系时有警告信息,能够建立成功。但断电重启后备库启动失败
回答 3
无法读取和解析控制文件,应该是损害,重新部署恢复