obproxy启动失败,observer 可以正常启动

【 使用环境 】测试环境
【 OB or 其他组件 】obproxy
【 使用版本 】OBServer 4.2.0.0
【问题描述】
obd cluster start [cluster]后启动 obproxy 失败
【复现路径】
obd cluster start obtest --verbose后显示的图片如下:


ps -ef | grep obproxy为空,没有启动起来,observer 不走 obproxy 可以正常连接

【问题现象及影响】

【附件】

obd 版本:1.6.1
obproxy版本与 observer 一致:4.2.0.0

指定下组件 试下 obd cluster start name -c obproxy-ce
如果还失败 发下obd 和observer.log日志哈

我在/home/xjk/.obd/log里的obd日志里截取的日志如下,似乎没有明确的问题:[2023-11-07 16:10:37.493] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Get Deploy by name
[2023-11-07 16:10:37.493] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/cluster/
[2023-11-07 16:10:37.493] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/config_parser/
[2023-11-07 16:10:37.493] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - try to get exclusive lock /home/xjk/.obd/lock/deploy_obtest
[2023-11-07 16:10:37.493] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - exclusive lock /home/xjk/.obd/lock/deploy_obtest, count 1
[2023-11-07 16:10:37.500] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Deploy status judge
[2023-11-07 16:10:37.500] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] Get local repositories
[2023-11-07 16:10:37.501] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/repository
[2023-11-07 16:10:37.502] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Get local repository obagent-1.2.0-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.502] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Search repository obagent version: 1.2.0, tag: 0e8f5ee68c337ea28514c9f3f820ea546227fa7e, release: None, package_hash: None
[2023-11-07 16:10:37.502] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - try to get share lock /home/xjk/.obd/lock/mirror_and_repo
[2023-11-07 16:10:37.502] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/mirror_and_repo, count 1
[2023-11-07 16:10:37.502] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/repository/obagent
[2023-11-07 16:10:37.504] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found repository obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.504] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Get local repository oceanbase-ce-4.2.0.0-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.504] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Search repository oceanbase-ce version: 4.2.0.0, tag: 176ae96ab6ea606c860e0a9db09f8046eec0ceba, release: None, package_hash: None
[2023-11-07 16:10:37.504] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/mirror_and_repo, count 2
[2023-11-07 16:10:37.505] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/repository/oceanbase-ce
[2023-11-07 16:10:37.507] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found repository oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.507] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Get local repository obproxy-ce-4.2.0.0-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.507] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Search repository obproxy-ce version: 4.2.0.0, tag: b3ead2f667d69fe3195fd22002de83df6eb19382, release: None, package_hash: None
[2023-11-07 16:10:37.507] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/mirror_and_repo, count 3
[2023-11-07 16:10:37.507] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/repository/obproxy-ce
[2023-11-07 16:10:37.509] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found repository obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.632] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Get deploy config
[2023-11-07 16:10:37.691] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] Search plugins
[2023-11-07 16:10:37.692] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start_check plugin for components …
[2023-11-07 16:10:37.692] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start_check plugin for obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.692] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - mkdir /home/xjk/.obd/plugins
[2023-11-07 16:10:37.693] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obagent-py_script_start_check-1.1.1 for obagent-1.2.0
[2023-11-07 16:10:37.694] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start_check plugin for oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.694] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for oceanbase-ce-py_script_start_check-4.0.0.0 for oceanbase-ce-4.2.0.0
[2023-11-07 16:10:37.694] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start_check plugin for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.694] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obproxy-ce-py_script_start_check-3.1.0 for obproxy-ce-4.2.0.0
[2023-11-07 16:10:37.694] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start plugin for components …
[2023-11-07 16:10:37.694] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start plugin for obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obagent-py_script_start-1.1.0 for obagent-1.2.0
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start plugin for oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for oceanbase-ce-py_script_start-4.0.0.0 for oceanbase-ce-4.2.0.0
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching start plugin for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obproxy-ce-py_script_start-3.1.0 for obproxy-ce-4.2.0.0
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching connect plugin for components …
[2023-11-07 16:10:37.695] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching connect plugin for obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.696] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obagent-py_script_connect-0.1 for obagent-1.2.0
[2023-11-07 16:10:37.696] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching connect plugin for oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.696] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for oceanbase-ce-py_script_connect-3.1.0 for oceanbase-ce-4.2.0.0
[2023-11-07 16:10:37.696] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching connect plugin for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.697] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obproxy-ce-py_script_connect-3.1.0 for obproxy-ce-4.2.0.0
[2023-11-07 16:10:37.697] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching bootstrap plugin for components …
[2023-11-07 16:10:37.697] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching bootstrap plugin for obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.698] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obagent-py_script_bootstrap-0.1 for obagent-1.2.0
[2023-11-07 16:10:37.698] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching bootstrap plugin for oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.698] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for oceanbase-ce-py_script_bootstrap-4.0.0.0 for oceanbase-ce-4.2.0.0
[2023-11-07 16:10:37.698] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching bootstrap plugin for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.698] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obproxy-ce-py_script_bootstrap-3.1.0 for obproxy-ce-4.2.0.0
[2023-11-07 16:10:37.698] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching display plugin for components …
[2023-11-07 16:10:37.699] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching display plugin for obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:37.699] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obagent-py_script_display-0.1 for obagent-1.2.0
[2023-11-07 16:10:37.699] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching display plugin for oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:37.699] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for oceanbase-ce-py_script_display-3.1.0 for oceanbase-ce-4.2.0.0
[2023-11-07 16:10:37.699] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching display plugin for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:37.700] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obproxy-ce-py_script_display-3.1.0 for obproxy-ce-4.2.0.0
[2023-11-07 16:10:37.824] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] Open ssh connection
[2023-11-07 16:10:38.217] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] Load cluster param plugin
[2023-11-07 16:10:38.217] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Searching param plugin for components …
[2023-11-07 16:10:38.218] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Search param plugin for obagent
[2023-11-07 16:10:38.218] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obagent-param-1.1.0 for obagent-1.2.0
[2023-11-07 16:10:38.218] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Applying obagent-param-1.1.0 for obagent-1.2.0-4.el7-0e8f5ee68c337ea28514c9f3f820ea546227fa7e
[2023-11-07 16:10:38.303] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Search param plugin for oceanbase-ce
[2023-11-07 16:10:38.304] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for oceanbase-ce-param-4.0.0.0 for oceanbase-ce-4.2.0.0
[2023-11-07 16:10:38.304] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Applying oceanbase-ce-param-4.0.0.0 for oceanbase-ce-4.2.0.0-101000032023091319.el7-176ae96ab6ea606c860e0a9db09f8046eec0ceba
[2023-11-07 16:10:38.863] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Search param plugin for obproxy-ce
[2023-11-07 16:10:38.864] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Found for obproxy-ce-param-3.1.0 for obproxy-ce-4.2.0.0
[2023-11-07 16:10:38.864] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Applying obproxy-ce-param-3.1.0 for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:39.113] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Call obproxy-ce-py_script_start_check-3.1.0 for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:39.113] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - import start_check
[2023-11-07 16:10:39.114] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - add start_check ref count to 1
[2023-11-07 16:10:39.115] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] Check before start obproxy
[2023-11-07 16:10:39.116] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: cat /root/obproxy/run/obproxy-49.52.27.20-2885.pid
[2023-11-07 16:10:39.132] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.132] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – 49.52.27.20 port check
[2023-11-07 16:10:39.132] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: bash -c ‘cat /proc/net/{tcp,udp}’ | awk -F’ ’ ‘{print $2,$10}’ | grep ‘00000000:0B45’ | awk -F’ ’ ‘{print $2}’ | uniq
[2023-11-07 16:10:39.196] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.197] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: bash -c ‘cat /proc/net/{tcp,udp}’ | awk -F’ ’ ‘{print $2,$10}’ | grep ‘00000000:0B46’ | awk -F’ ’ ‘{print $2}’ | uniq
[2023-11-07 16:10:39.261] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.377] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - sub start_check ref count to 0
[2023-11-07 16:10:39.377] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - export start_check
[2023-11-07 16:10:39.378] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - Call obproxy-ce-py_script_start-3.1.0 for obproxy-ce-4.2.0.0-7.el7-b3ead2f667d69fe3195fd22002de83df6eb19382
[2023-11-07 16:10:39.378] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - import start
[2023-11-07 16:10:39.380] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - add start ref count to 1
[2023-11-07 16:10:39.383] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] Start obproxy
[2023-11-07 16:10:39.383] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: ls /root/obproxy/etc/obproxy_config.bin
[2023-11-07 16:10:39.400] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 2, error output:
[2023-11-07 16:10:39.400] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] ls: cannot access /root/obproxy/etc/obproxy_config.bin: No such file or directory
[2023-11-07 16:10:39.400] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG]
[2023-11-07 16:10:39.400] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – 49.52.27.20 port check
[2023-11-07 16:10:39.401] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: cat /root/obproxy/run/obproxy-49.52.27.20-2885.pid
[2023-11-07 16:10:39.455] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.455] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – starting 49.52.27.20 obproxy
[2023-11-07 16:10:39.456] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 set env LD_LIBRARY_PATH to ‘/root/obproxy/lib:’
[2023-11-07 16:10:39.457] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: cd /root/obproxy; /root/obproxy/bin/obproxy -o obproxy_sys_password=’’,enable_strict_kernel_release=False,skip_proxy_sys_private_check=True,enable_cluster_checkout=False --listen_port 2885 --prometheus_listen_port 2886 --rs_list ‘49.52.27.33:2881;49.52.27.34:2881;49.52.27.35:2881’ --cluster_name ‘obcluster’
[2023-11-07 16:10:39.527] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.528] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 delete env LD_LIBRARY_PATH
[2023-11-07 16:10:39.528] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: ps -aux | grep -e ‘/root/obproxy/bin/obproxy -o obproxy_sys_password=,enable_strict_kernel_release=False,skip_proxy_sys_private_check=True,enable_cluster_checkout=False --listen_port 2885 --prometheus_listen_port 2886 --rs_list 49.52.27.33:2881;49.52.27.34:2881;49.52.27.35:2881 --cluster_name obcluster$’ | grep -v grep | awk ‘{print $2}’ > /root/obproxy/run/obproxy-49.52.27.20-2885.pid
[2023-11-07 16:10:39.635] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.645] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] obproxy program health check
[2023-11-07 16:10:39.645] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – 49.52.27.20 program health check
[2023-11-07 16:10:39.645] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – root@49.52.27.20 execute: cat /root/obproxy/run/obproxy-49.52.27.20-2885.pid
[2023-11-07 16:10:39.691] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] – exited code 0
[2023-11-07 16:10:39.776] [2230fadc-7d45-11ee-ada9-b008754a7b77] [WARNING] [WARN] failed to start 49.52.27.20 obproxy
[2023-11-07 16:10:39.776] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - sub start ref count to 0
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - export start
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [ERROR] [ERROR] obproxy-ce start failed
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/mirror_and_repo release, count 2
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/mirror_and_repo release, count 1
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/mirror_and_repo release, count 0
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - unlock /home/xjk/.obd/lock/mirror_and_repo
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - exclusive lock /home/xjk/.obd/lock/deploy_obtest release, count 0
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - unlock /home/xjk/.obd/lock/deploy_obtest
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - share lock /home/xjk/.obd/lock/global release, count 0
[2023-11-07 16:10:39.777] [2230fadc-7d45-11ee-ada9-b008754a7b77] [DEBUG] - unlock /home/xjk/.obd/lock/global

observer应该是没问题的,我部署的是一个三节点的 oceanbase 集群,obproxy 部署在一个客户机上,observer 里的observer.log.wf没有与之相关的报错,只有一条这个:
[root@node-49-52-27-33 log]# cat observer.log.wf
[2023-11-07 15:45:38.807398] WARN update_fail_count (ob_root_service.cpp:9640) [78642][RSAsyncTask0][T0][YB4231341B21-0006098B27D531C8-0-0] [lt=5][errcode=-4752] rootservice start process has failure(msg=“rootservice start()/do_restart() has failure”, ret=-4012, ret=“OB_TIMEOUT”, fail_cnt=1)

obd cluster start obtest -c obproxy-ce --verbose的结果里有这个 cannot access 的问题,不知道是什么原理:

obproxy的日志如下,都是 info,没有 error:
[2023-11-07 16:59:07.080343] INFO [SHARE] ob_common_config.cpp:102 [30723][Y0-0000000000000000] [lt=25] [dc=0] Empty config string(token=“obproxy_sys_password”, name=“obproxy_sys_password”)
[2023-11-07 16:59:07.080368] INFO [SHARE] ob_common_config.cpp:135 [30723][Y0-0000000000000000] [lt=12] [dc=0] Load config succ(name=“obproxy_sys_password”, value="")
[2023-11-07 16:59:07.080390] INFO [SHARE] ob_common_config.cpp:135 [30723][Y0-0000000000000000] [lt=10] [dc=0] Load config succ(name=“enable_strict_kernel_release”, value=“False”)
[2023-11-07 16:59:07.080405] INFO [SHARE] ob_common_config.cpp:135 [30723][Y0-0000000000000000] [lt=9] [dc=0] Load config succ(name=“skip_proxy_sys_private_check”, value=“True”)
[2023-11-07 16:59:07.080419] INFO [SHARE] ob_common_config.cpp:135 [30723][Y0-0000000000000000] [lt=7] [dc=0] Load config succ(name=“enable_cluster_checkout”, value=“False”)
[2023-11-07 16:59:07.080565] INFO [PROXY] ob_config_server_processor.cpp:1179 [30723][Y0-0000000000000000] [lt=8] [dc=0] succ to init_proxy_kernel_release by unknown kernel(kernel_release_=RELEASE_UNKNOWN, enable_strict_kernel_release=“False”)
[2023-11-07 16:59:07.081494] INFO [PROXY] ob_proxy_table_processor_utils.cpp:1005 [30723][Y0-0000000000000000] [lt=20] [dc=0] fail to get local addr list, maybe hostname is not correctly set(valid_cnt=0, ret=0)
[2023-11-07 17:00:50.772158] INFO [PROXY] ob_proxy_main.cpp:588 [40513][Y0-0000000000000000] [lt=0] [dc=0] succ to init logger(max_log_file_size=268435456, async_tid=140538369140480)
[2023-11-07 17:00:50.772243] INFO ob_file.cpp:59 [40513][Y0-0000000000000000] [lt=40] [dc=0] open fname=[/dev/urandom] fd=16 flags=0 succ
[2023-11-07 17:00:50.772529] INFO [PROXY] ob_proxy_main.cpp:482 [40513][Y0-0000000000000000] [lt=9] [dc=0] ObProxy-OceanBase 4.2.0.0-7-1-local-ad8b3f3e86cfbe694ffadb21ef3880cd7b3f928c
[2023-11-07 17:00:50.772541] INFO [PROXY] ob_proxy_main.cpp:487 [40513][Y0-0000000000000000] [lt=10] [dc=0] has no inherited sockets, start new obproxy((info={is_inherited:false, upgrade_version:-1, need_conn_accept:true, user_rejected:0, ipv4_fd:-1, ipv6_fd:-1, received_sig:-1, sub_pid:-1, graceful_exit_end_time:0, graceful_exit_start_time:0, active_client_vc_count:-1, local_addr:, rc_status:"", hu_cmd:"", state:“HU_STATE_WAIT_HU_CMD”, hu_status:"", is_parent:true, sub_status:"", last_parent_status:"", last_sub_status:"", upgrade_version_buf:"", argc:11, argv[0]="/root/obproxy/bin/obproxy", argv[1]="-o", argv[2]=“obproxy_sys_password=***,enable_strict_kernel_release=False,skip_proxy_sys_private_check=True,enable_cluster_checkout=False”, argv[3]="–listen_port", argv[4]=“2887”, argv[5]="–prometheus_listen_port", argv[6]=“2889”, argv[7]="–rs_list", argv[8]=“49.52.27.33:2881;49.52.27.34:2881;49.52.27.35:2881”, argv[9]="–cluster_name", argv[10]=“obcluster”, inherited_argv[0]="/root/obproxy/bin/obproxy", inherited_argv[1]="(null)", inherited_argv[2]="(null)", inherited_argv[3]="(null)"})
[2023-11-07 17:00:50.782359] INFO [PROXY] ob_proxy.cpp:665 [40513][Y0-0000000000000000] [lt=75] [dc=0] fail to load config from file, but we can get the config from OCP by sql later(ret=0)
[2023-11-07 17:00:50.782397] INFO [SHARE] ob_common_config.cpp:102 [40513][Y0-0000000000000000] [lt=13] [dc=0] Empty config string(token=“obproxy_sys_password”, name=“obproxy_sys_password”)
[2023-11-07 17:00:50.782411] INFO [SHARE] ob_common_config.cpp:135 [40513][Y0-0000000000000000] [lt=7] [dc=0] Load config succ(name=“obproxy_sys_password”, value="")
[2023-11-07 17:00:50.782420] INFO [SHARE] ob_common_config.cpp:135 [40513][Y0-0000000000000000] [lt=6] [dc=0] Load config succ(name=“enable_strict_kernel_release”, value=“False”)
[2023-11-07 17:00:50.782426] INFO [SHARE] ob_common_config.cpp:135 [40513][Y0-0000000000000000] [lt=3] [dc=0] Load config succ(name=“skip_proxy_sys_private_check”, value=“True”)
[2023-11-07 17:00:50.782434] INFO [SHARE] ob_common_config.cpp:135 [40513][Y0-0000000000000000] [lt=6] [dc=0] Load config succ(name=“enable_cluster_checkout”, value=“False”)
[2023-11-07 17:00:50.782505] INFO [PROXY] ob_config_server_processor.cpp:1179 [40513][Y0-0000000000000000] [lt=2] [dc=0] succ to init_proxy_kernel_release by unknown kernel(kernel_release_=RELEASE_UNKNOWN, enable_strict_kernel_release=“False”)
[2023-11-07 17:00:50.783161] INFO [PROXY] ob_proxy_table_processor_utils.cpp:1005 [40513][Y0-0000000000000000] [lt=12] [dc=0] fail to get local addr list, maybe hostname is not correctly set(valid_cnt=0, ret=0)

我设置了下obproxy主机的hostname 就好了