Docker-Compose issue transient failure

Hello and thanks for your work.

I’m trying to follow the tutorial, especially the https://docs.dgraph.io/get-started/#docker-compose section.

I copy/pasted the docker-compose mentioned in the documentation, but when running it, I get the following error :
server_1 | 2018/06/19 12:02:25 pool.go:158: Echo error from zero:5080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure

And when I’m trying to follow along with the tutorial (the POST request), I get the following error :

{
    "errors": [
        {
            "code": "ErrorInvalidRequest",
            "message": "Please retry again, server is not ready to accept requests"
        }
    ],
    "data": null
}

Any idea of what I’m doing wrong ? I don’t think I missed any step in the docs. It sounded pretty straightforward to just copy/paste the docker-compose, then docker-compose up. Am I missing something ?

Thanks a lot for your help.

Hard to tell, try delete the P, W, Z folders. And try again.

Hello.

What do you mean, deleting the folders ? Because I’m trying to run the docker-compose stuff, not sure which folders you need me to delete ?

Where are these folders (apart within the docker images) ?

Sorry, in case of docker delete volumes related.

Ah OK, thanks for your answer.
I tried the “armaggedon” thing mentionned here : https://stackoverflow.com/questions/34658836/docker-is-in-volume-in-use-but-no-docker-containers to be really really sure my setup was perfectly clean and unfortunately it didn’t change anything.

Maybe a matter of permissions, I don’t know.

This is odd, how is your whole setup?

Mac OS 10.13.3

docker-compose -version
docker-compose version 1.16.1, build 6d1ac21

The “armaggedon” run (so no container, no image, no volume)

Full docker-compose up trace

Creating volume "dgraph_dgraph" with default driver
Pulling zero (dgraph/dgraph:latest)...
latest: Pulling from dgraph/dgraph
d3938036b19c: Pull complete
a9b30c108bda: Pull complete
67de21feec18: Pull complete
817da545be2b: Pull complete
d967c497ce23: Pull complete
049287dc8a55: Pull complete
b463cd58e591: Pull complete
Digest: sha256:a01941592423603e15571910b5d64725e4c7b8e89129120c6d6460cf17b54278
Status: Downloaded newer image for dgraph/dgraph:latest
Creating dgraph_zero_1 ...
Creating dgraph_ratel_1 ...
Creating dgraph_server_1 ...
Creating dgraph_zero_1
Creating dgraph_server_1
Creating dgraph_ratel_1 ... done
Attaching to dgraph_zero_1, dgraph_server_1, dgraph_ratel_1
zero_1    | Setting up grpc listener at: 0.0.0.0:5080
zero_1    | Setting up http listener at: 0.0.0.0:6080
server_1  | 2018/06/19 14:59:10 gRPC server started.  Listening on port 9080
zero_1    | 2018/06/19 14:59:10 node.go:240: Group 0 found 0 entries
zero_1    | 2018/06/19 14:59:10 raft.go:567: INFO: 1 became follower at term 0
zero_1    | 2018/06/19 14:59:10 raft.go:315: INFO: newRaft 1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
server_1  | 2018/06/19 14:59:10 HTTP server started.  Listening on port 8080
zero_1    | 2018/06/19 14:59:10 raft.go:567: INFO: 1 became follower at term 1
ratel_1   | 2018/06/19 14:59:11 Listening on port 8000...
server_1  | 2018/06/19 14:59:10 groups.go:88: Current Raft Id: 0
server_1  | 2018/06/19 14:59:10 worker.go:99: Worker listening at address: [::]:7080
zero_1    | Running Dgraph zero...
zero_1    | 2018/06/19 14:59:10 node.go:118: Setting conf state to nodes:1
zero_1    | 2018/06/19 14:59:13 raft.go:749: INFO: 1 is starting a new election at term 1
zero_1    | 2018/06/19 14:59:13 raft.go:580: INFO: 1 became candidate at term 2
zero_1    | 2018/06/19 14:59:13 raft.go:664: INFO: 1 received MsgVoteResp from 1 at term 2
zero_1    | 2018/06/19 14:59:13 raft.go:621: INFO: 1 became leader at term 2
zero_1    | 2018/06/19 14:59:13 node.go:301: INFO: raft.node: 1 elected leader 1 at term 2
server_1  | 2018/06/19 14:59:38 pool.go:158: Echo error from zero:5080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:38 pool.go:108: == CONNECT ==> Setting zero:5080
server_1  | 2018/06/19 14:59:38 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:39 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:39 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:39 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:39 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:40 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure
server_1  | 2018/06/19 14:59:42 groups.go:105: Error while connecting with group zero: rpc error: code = Unavailable desc = all SubConns are in TransientFailure

Sorry I must be missing something obvious since I’m the only one facing this issue but… I’ve been struggling with this for hours now, and I have absolutely no clue what I’m doing wrong

OK, got it. I upgraded the docker version on my machine and now :

server_1  | 2018/06/19 15:14:13 groups.go:356: Serving tablet for: _predicate_
server_1  | 2018/06/19 15:14:13 mutation.go:158: Done schema update predicate:"_predicate_" value_type:STRING list:true

Looks like I’m good to go with the rest of the tutorial. Thanks for your help and telling me something was wrong, it helped me investigate on docker itself.

Phew.

Nice, I was doing a test https://youtu.be/_nCz689tqEo

Glad you got it fixed!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.