oceanbase / oceanbase/docker-images

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

Open
#24 14 comments 0 reactions 1 assignee View on GitHub

@LINxiansheng is already working on this.

Since Nov 1, 2023.

Dominant language
Shell
Stars
11
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.