oceanbase / docker-images

Official source of container configurations and images for OceanBase products.
https://hub.docker.com/r/oceanbase
Apache License 2.0
0 stars 4 forks source link

[Bug]: can't run with official docker image #23

Open weideguo opened 1 month ago

weideguo commented 1 month ago

Describe the bug

Run with official docker image, but get failed.

Environment

docker image
oceanbase/oceanbase-ce:4.3.0

Fast Reproduce Steps(Required)

Steps to reproduce the behavior:

docker pull oceanbase/oceanbase-ce:4.3.0
docker run -p 2881:2881 --name oceanbase-ce -e MODE=mini -d oceanbase/oceanbase-ce:4.3.0

Actual Behavior

run docker logs --tail 20 -f oceanbase-ce, and got

+--------------+---------+------------------------+------------------------------------------+
Repository integrity check ok
Parameter check ok
Cluster status check ok
Initializes observer work home x
[ERROR] OBD-1002: Fail to init 127.0.0.1 home path: /root/ob is not empty.

Initializes obagent work home x
[ERROR] OBD-1002: Fail to init 127.0.0.1 home path: /root/obagent is not empty.

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 33b36f50-1d87-11ef-a58a-0242ac110003
If you want to view detailed obd logs, please run: obd display-trace 33b36f50-1d87-11ef-a58a-0242ac110003
/////////////////////// phase end: 44.454 s ///////////////////////
///////////////////////         STEP 5: Ob-deploy Create Tenant         ///////////////////////
Deploy "obcluster" is configured
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 4d9a4aba-1d87-11ef-9e63-0242ac110003
If you want to view detailed obd logs, please run: obd display-trace 4d9a4aba-1d87-11ef-9e63-0242ac110003
deploy failed!

Additional context

try docker image oceanbase/oceanbase-ce:4.2.2, same thing happen

hnwyllmm commented 1 month ago

@LINxiansheng Please take a look


@Mr.Linplease take A look

LINxiansheng commented 1 month ago

Emmmm, let me have a look.

The obd check the ob and obagent folder are not empty. But it is confused that the docker startup without mount any folder. I try it with the same command while it starts successfully. image

Maybe obd check folder logic take some mistakes.

@1243106322@qq.com Mr.Gao, please take a look.