Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"

I’m using one of the docker compose examples from github to run DGraph locally but the Alpha Instance is having difficulties finding the zero Instance. Logs are below:

Docker Compose

  dgraph-zero:
    image: dgraph/dgraph:latest
    container_name: dgraph-zero
    volumes:
      - ./docker-data/dgraph-zero:/dgraph
    ports:
      - 5080:5080
      - 6080:6080
    networks:
      - basenet
    restart: on-failure
    command: dgraph zero --my=zero:5080
  dgraph-alpha:
    image: dgraph/dgraph:latest
    container_name: dgraph-alpha
    volumes:
      - ./docker-data/dgraph-alpha:/dgraph
    ports:
      - 8080:8080
      - 9080:9080
    networks:
      - basenet
    restart: on-failure
    command: dgraph alpha --my=alpha:7080 --zero=zero:5080

networks:
  basenet:
    name: "sessions-network"

Logs Alpha instance:

E0116 22:13:12.057911    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:12.716883    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:13.060494    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:13.717978    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:14.062957    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:14.718036    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:15.064942    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:15.535078    19 admin.go:1137] namespace: 0. Error reading GraphQL schema: Please retry again, server is not ready to accept requests.
E0116 22:13:15.718507    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:16.066855    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:16.718835    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:17.070035    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:17.719609    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:18.072421    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:18.720655    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:19.074400    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:19.721163    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:20.079509    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:20.536209    19 admin.go:1137] namespace: 0. Error reading GraphQL schema: Please retry again, server is not ready to accept requests.
E0116 22:13:20.721704    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:21.081978    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"
E0116 22:13:21.721779    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
E0116 22:13:22.084739    19 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero on 127.0.0.11:53: no such host"

go to these paths and delete everything there.

In the YML your instances are using the docker naming network. But in your logs it is connecting to localhost or something. Which means that you are using files from a previous cluster. Start from scratch and you are good to go.

The log including 127.0.0.11 was port 53, the DNS port.

All it’s saying is it can’t find alpha and zero because you named the services dpraph-alpha and dgraph-zero, as the likely cause.

2 Likes

Oh! yeah, you right. I didn’t noticed that he had modified so much the YML.

That makes sense. It’s working after removing the custom container name