sudo docker run -p 2881:2881 -p 2886:2886 -v $PWD/ob:/root/ob -v $PWD/obd/cluster:/root/.obd/cluster --name obstandalone -e MODE=MINI -e OB_SYS_PASSWORD=123456 -d oceanbase/oceanbase-ce
文档中的执行语句执行报错
如果去掉挂载卷,就可以正常访问
启动日志:
do normal boot
oceanbase-ce-4.3.5.5 already installed.
+--------------------------------------------------------------------------------------------+
| Packages |
+--------------+---------+------------------------+------------------------------------------+
| Repository | Version | Release | Md5 |
+--------------+---------+------------------------+------------------------------------------+
| oceanbase-ce | 4.3.5.5 | 105000012025111711.el8 | caa0bda5d13a3798bdb39bd8fa287ca8658fe1eb |
+--------------+---------+------------------------+------------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Initializes observer work home ok
Parameter check ok
Remote oceanbase-ce-4.3.5.5-105000012025111711.el8-caa0bda5d13a3798bdb39bd8fa287ca8658fe1eb repository install ok
Remote oceanbase-ce-4.3.5.5-105000012025111711.el8-caa0bda5d13a3798bdb39bd8fa287ca8658fe1eb repository lib check !!
Try to get lib-repository
oceanbase-ce-libs-4.3.5.5 already installed.
Remote oceanbase-ce-libs-4.3.5.5-105000012025111711.el8-9fbe0c1ed7d39a79c0b3f5e141ffc2176dbf8d90 repository install ok
Remote oceanbase-ce-4.3.5.5-105000012025111711.el8-caa0bda5d13a3798bdb39bd8fa287ca8658fe1eb repository lib check ok
obcluster deployed
Please execute ` obd cluster start obcluster ` to start
Trace ID: 0adee5e8-db2a-11f0-af63-0242ac1f0002
If you want to view detailed obd logs, please run: obd display-trace 0adee5e8-db2a-11f0-af63-0242ac1f0002
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1012: (172.31.0.2) clog and data use the same disk (/root/ob)
cluster scenario: express_oltp
Start observer ok
observer program health check x
[WARN] OBD-2002: Failed to start 172.31.0.2 observer
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 0df048f8-db2a-11f0-a416-0242ac1f0002
If you want to view detailed obd logs, please run: obd display-trace 0df048f8-db2a-11f0-a416-0242ac1f0002
boot failed!
find obd deploy information, skip configuring...
start ob cluster ...
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1012: (172.31.0.2) clog and data use the same disk (/root/ob)
cluster scenario: express_oltp
Start observer ok
observer program health check x
[WARN] OBD-2002: Failed to start 172.31.0.2 observer
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 1242f45a-db2a-11f0-bac4-0242ac1f0002
If you want to view detailed obd logs, please run: obd display-trace 1242f45a-db2a-11f0-bac4-0242ac1f0002
Wed Dec 17 09:23:44 UTC 2025
boot success!
执行
obd display-trace 1242f45a-db2a-11f0-bac4-0242ac1f0002
[2025-12-17 09:23:41.168] [DEBUG] - import health_check
[2025-12-17 09:23:41.169] [DEBUG] - add health_check ref count to 1
[2025-12-17 09:23:41.169] [INFO] observer program health check
[2025-12-17 09:23:44.170] [DEBUG] -- 172.31.0.2 program health check
[2025-12-17 09:23:44.170] [DEBUG] -- root@172.31.0.2 execute: cat /root/ob/observer/run/observer.pid
[2025-12-17 09:23:44.188] [DEBUG] -- exited code 0
[2025-12-17 09:23:44.189] [DEBUG] -- root@172.31.0.2 execute: ls /proc/267
[2025-12-17 09:23:44.248] [DEBUG] -- exited code 2, error output:
[2025-12-17 09:23:44.248] [DEBUG] ls: cannot access '/proc/267': No such file or directory
[2025-12-17 09:23:44.249] [DEBUG]
[2025-12-17 09:23:44.249] [WARNING] [WARN] OBD-2002: Failed to start 172.31.0.2 observer
[2025-12-17 09:23:44.249] [DEBUG] - sub health_check ref count to 0
[2025-12-17 09:23:44.249] [DEBUG] - export health_check
[2025-12-17 09:23:44.249] [DEBUG] - plugin oceanbase-ce-py_script_health_check-3.1.0 result: False
[2025-12-17 09:23:44.253] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2025-12-17 09:23:44.253] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2025-12-17 09:23:44.253] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2025-12-17 09:23:44.253] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obcluster release, count 0
[2025-12-17 09:23:44.253] [DEBUG] - unlock /root/.obd/lock/deploy_obcluster
[2025-12-17 09:23:44.254] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2025-12-17 09:23:44.254] [DEBUG] - unlock /root/.obd/lock/global
[2025-12-17 09:23:44.254] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-12-17 09:23:44.254] [INFO] Trace ID: 1242f45a-db2a-11f0-bac4-0242ac1f0002
[2025-12-17 09:23:44.254] [INFO] If you want to view detailed obd logs, please run: obd display-trace 1242f45a-db2a-11f0-bac4-0242ac1f0002