Skip to content

[Bug]: docker run with errors ERROR 2002 (HY000): Can't connect to OceanBase server on '127.1' (115) #24

@YuriyGavrilov

Description

@YuriyGavrilov

Describe the bug

There is a docker run error such as:

2023-10-09 22:18:32 Check before start obagent ok
2023-10-09 22:18:32 Start observer ok
2023-10-09 22:18:35 observer program health check x
2023-10-09 22:18:35 [WARN] OBD-2002: Failed to start 127.0.0.1 observer
2023-10-09 22:18:35 [ERROR] oceanbase-ce start failed
2023-10-09 22:18:35 See https://www.oceanbase.com/product/ob-deployer/error-codes .
2023-10-09 22:18:35 Trace ID: 95948eb8-66d8-11ee-887b-0242ac110002
2023-10-09 22:18:35 If you want to view detailed obd logs, please run: obd display-trace 95948eb8-66d8-11ee-887b-0242ac110002
Deploy "obcluster" is deployed
2023-10-09 22:18:36 See https://www.oceanbase.com/product/ob-deployer/error-codes .
2023-10-09 22:18:36 Trace ID: a4f4bbe4-66d8-11ee-8469-0242ac110002
2023-10-09 22:18:36 If you want to view detailed obd logs, please run: obd display-trace a4f4bbe4-66d8-11ee-8469-0242ac110002
2023-10-09 22:18:36 ERROR 2002 (HY000): Can't connect to OceanBase server on '127.1' (115)
2023-10-09 22:18:36 deploy success!
2023-10-09 22:18:36 boot success!

Environment
Docker on Mac OS

  • OS Version and CPU Arch(23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 x86_64):

  • OB Version(LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./observer -V):

Fast Reproduce Steps(Required)

docker run -p 2881:2881 --name oceanbase-ce -e MINI_MODE=1 -d oceanbase/oceanbase-ce
docker exec -it oceanbase-ce ob-mysql sys # Connect to the root user of the sys tenant.

Steps to reproduce the behavior:

Expected behavior
Docker run successfully
Second docker command run interactively without this error:
docker exec -it oceanbase-ce ob-mysql sys login as root@sys Command is: obclient -h127.1 -uroot@sys -A -Doceanbase -P2881 ERROR 2002 (HY000): Can't connect to OceanBase server on '127.1' (115)

Actual Behavior
Снимок экрана 2023-10-09 в 22 24 08

Additional context
just tried fresh run in docker

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions