oceanbase docker 部署初始化的时候,报错

【产品名称】centos7 + docker下 oceanbase初始化

【产品版本】

[root@myob ~]# docker search oceanbase

INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED

docker.io docker.io/oceanbase/oceanbase-xe OceanBase Database 2.2 Express Edition 2

【问题描述】在初始化的时候,一直报这个,20多分钟了,大家有遇到的吗?

2021-06-26 09:12:52.803837 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 09:12:56.372462 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-06-26 09:12:58.495517 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 4015 (HY000) at line 1: System error

2021-06-26 09:13:03.118368 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 09:13:04.454369 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-06-26 09:13:05.559716 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 4015 (HY000) at line 1: System error

2021-06-26 09:13:11.725915 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 09:13:13.403510 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-06-26 09:13:13.896706 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 4012 (HY000) at line 1: Timeout

2021-06-26 09:14:27.889383 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 09:14:46.764759 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-06-26 09:14:53.698007 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 4015 (HY000) at line 1: System error

2021-06-26 09:15:28.263879 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 09:15:37.676239 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-06-26 09:15:48.584810 call.py:3 CALL: top.ob1 obs0.bootstrap

ERROR 4015 (HY000) at line 1: System error

2021-06-26 09:16:46.790908 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 09:16:57.755049 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

2021-06-26 09:17:04.007369 call.py:3 CALL: top.ob1 obs0.bootstrap

2021-06-26 06:58:13.013224 call.py:3 CALL: top.ob1 obs0.bootstrap

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

2021-06-26 06:58:13.042254 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --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-06-26 06:58:14.054267 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####

-- 新安装centos7

# yum install docker 

# docker -v

# docker pull docker.io/oceanbase/oceanbase-xe

# docker run -d -it --memory 8g --name oceanbase2.2 docker.io/oceanbase/oceanbase-xe:latest

# docker exec -it oceanbase2.2 /bin/bash 

# ./hap.py ob1.reboot

bootstrap 如果不成功,重试是没有用的。bootstrap不成功的原因可能是目录权限、空间、机器内存、内核参数等不符合要求。

这个docker版本是2.2.5 ,是OB企业版发展过程中的一个中间版本,不是正式的版本。为了在8g内存里能跑出来,改小了很多内存、线程相关的参数。其稳定性和性能可能不是很好。

现在OB推出了3.1的社区版,8G内存也可以跑起来。可以试试。这个2.2 docker版本后面没有人支持了。社区里后面可能会有人做3.1的docker版本。

3.1的社区版安装请参考:OceanBase 社区版部署示例 - OceanBase

收到,非常感谢!