安装OCP时报错 obproxy program health check x [WARN] failed to start 192.xxx.xxx.179 obproxy [ERROR] obproxy-ce start failed

【 使用环境 】测试环境
【 OB or 其他组件 】OCP安装
【 使用版本 】社区版4.0.3
【问题描述】安装OCP时报错
obproxy program health check x
[WARN] failed to start 192.xxx.xxx.179 obproxy
[ERROR] obproxy-ce start failed

【复现路径】问题出现前后相关操作
【问题现象及影响】
执行以下命令安装ocp
./ocp_installer.sh install -c config.yaml -i ./ocp-installer.tar.gz -o ./ocp.tar.gz

报如下错误
obproxy program health check x
[WARN] failed to start 192.xxx.xxx.179 obproxy
[ERROR] obproxy-ce start failed

配置文件内容如下:
config_yaml.txt (3.7 KB)

安装完整日志如下:
日志.txt (10.5 KB)

在 “failed to start 192.xxx.xxx.179 obproxy” 这台机器上看下部署 obproxy 的目录下的 LOG 日志具体有什么报错

没有报错,obproxy其实是已经起来的
[2023-05-10 11:10:25.355281] INFO [PROXY] ob_proxy.cpp:365 [3217][Y0-0000000000000000] [lt=17] [dc=0] obproxy start up successful and can provide normal service(cost time(us)=30892735, is_service_started=true)

-bash-4.2$ netstat -nltpa|grep -i listen
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:2581 0.0.0.0:* LISTEN 2651/observer
tcp 0 0 0.0.0.0:2582 0.0.0.0:* LISTEN 2651/observer
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:2583 0.0.0.0:* LISTEN 3217/obproxy
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:2884 0.0.0.0:* LISTEN 3217/obproxy
tcp6 0 0 :::111 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:25 :::* LISTEN -
-bash-4.2$ pwd
/home/admin/obproxy/log
-bash-4.2$ grep -i “error” *.log

通过obproxy可以连接上observer

现在是使用上没问题,只不过 OCP 有报错?

ocp安装不成功,报错

obproxy program health check x
[WARN] failed to start 192.xxx.xxx.179 obproxy
[ERROR] obproxy-ce start failed
Wait for observer init ok
±--------------------------------------------------+
| observer |
±----------------±--------±-----±------±-------+
| ip | version | port | zone | status |
±----------------±--------±-----±------±-------+
| 192.xxx.xxx.179 | 4.1.0.0 | 2581 | zone1 | ACTIVE |
±----------------±--------±-----±------±-------+
obclient -h192.xxx.xxx.179 -P2581 -uroot -p’qwer1234’ -Doceanbase -A

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: e868820a-eedf-11ed-b633-0050569be369
If you want to view detailed obd logs, please run: obd display-trace e868820a-eedf-11ed-b633-0050569be369
,
Traceback (most recent call last):
File “pipeline/install_ocp.py”, line 47, in
run(context)
File “pipeline/install_ocp.py”, line 37, in run
install_ocp_pipeline.run()
File “/root/installer/core/pipeline.py”, line 10, in run
task.run()
File “/root/installer/task/ob_install.py”, line 146, in run
self.create_cluster()
File “/root/installer/task/ob_install.py”, line 105, in create_cluster
raise Exception(“create cluster with obd failed”)
Exception: create cluster with obd failed

参考日志操作,看下详细日志说明:
obd display-trace e868820a-eedf-11ed-b633-0050569be369

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 928bce0e-ef03-11ed-b908-0050569be369
If you want to view detailed obd logs, please run: obd display-trace 928bce0e-ef03-11ed-b908-0050569be369
,
Traceback (most recent call last):
File “pipeline/install_ocp.py”, line 47, in
run(context)
File “pipeline/install_ocp.py”, line 37, in run
install_ocp_pipeline.run()
File “/root/installer/core/pipeline.py”, line 10, in run
task.run()
File “/root/installer/task/ob_install.py”, line 146, in run
self.create_cluster()
File “/root/installer/task/ob_install.py”, line 105, in create_cluster
raise Exception(“create cluster with obd failed”)
Exception: create cluster with obd failed
-bash-4.2$ sudo obd display-trace 928bce0e-ef03-11ed-b908-0050569be369

-bash-4.2$ source /etc/profile.d/obd.sh
-bash-4.2$ obd display-trace 928bce0e-ef03-11ed-b908-0050569be369

-bash-4.2$

obd display-trace内容是空的

看起来跟这个帖子的问题类似,在这个路径下的脚本改一下重试次数试下呢~
https://ask.oceanbase.com/t/topic/3560286