Skip to content

Error while dialing dial tcp 127.0.0.1:2379 #1800

@mnshuhailey

Description

@mnshuhailey

Bug Report

Please answer these questions before submitting your issue. Thanks!

What did you do?

Setup tidb-dashboard using docker compose (wsl2 Ubuntu 22.04)

# TiDB Dashboard
  tidb-dashboard:
    image: pingcap/tidb-dashboard:latest
    container_name: tidb-dashboard
    ports:
      - "12333:12333"
    environment:
      - TZ=UTC
      - PD_ADDRESS=http://pd0:2379
    depends_on:
      - pd0
    restart: unless-stopped
    networks:
      - tidb-network

What did you expect to see?

Expected to see tidb-dahsboard connection using pd0:2379 instead of 127.0.0.1:2379 since already define on env - PD_ADDRESS=http://pd0:2379 and can access the tidb dashboard at http://localhost:12333

What did you see instead?

When browse this http://localhost:12333, return empty response.

When check on docker log

[2025/07/03 04:46:09.662 +00:00] [WARN] [retry_interceptor.go:62] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc000506e00/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""]

What version of TiDB Dashboard are you using (./tidb-dashboard --version)?

image: pingcap/tidb-dashboard:latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions