使用docker安装oceanbase,执行./hap.py ob1.reboot命令时报错

【产品名称】

oceanbase

【产品版本】

docker pull oceanbase/oceanbase-xe:latest

【问题描述】

docker run --rm -it --memory 8g -p 2881:2881 oceanbase/oceanbase-xe

./hap.py ob1.reboot

执行后一直报错,部署失败

[2021-05-08 06:40:00.940233] ERROR [LIB] pidfile_test (utility.cpp:1168) [45][0][Y0-0000000000000000] [lt=0] fid file doesn’t exist(pidfile=“run/observer.pid”) BACKTRACE:0x80778ca 0x801e5c6 0x4628e5 0x46ec098 0x807b37c 0x4844719 0x7f4b26df6555 0x48a3305

2021-05-08 06:40:00.942353 call.py:3 CALL: top.ob1 bootstrap

2021-05-08 06:40:00.947046 magic_ctrl.py:3 retry_loop: retryloop: timeout=864000 interval = 1

2021-05-08 06:40:00.951398 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-05-08 06:40:00.955861 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)

2021-05-08 06:40:00.971579 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./obclient --prompt “OceanBase(\u@\d)>” -h 127.0.0.1 -P 2881 -uroot input=“alter system bootstrap REGION ‘sys_region’ ZONE ‘test’ SERVER ‘127.0.0.1:2882’; # ExceptionOnFail DiscardXOutput” ret=1

2021-05-08 06:40:01.984028 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-05-08 06:40:01.988692 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)

2021-05-08 06:40:02.001388 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./obclient --prompt “OceanBase(\u@\d)>” -h 127.0.0.1 -P 2881 -uroot input=“alter system bootstrap REGION ‘sys_region’ ZONE ‘test’ SERVER ‘127.0.0.1:2882’; # ExceptionOnFail DiscardXOutput” ret=1

我遇到了同样的问题 。。

换了个配置高点的服务器  可以启动了