Skip to content

ratel fails to connect when using dev release from github #2014

@sboorlagadda

Description

@sboorlagadda

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?
    dgraph-darwin-amd64-v1.0.1-dev.tar.gz

  • Have you tried reproducing the issue with latest release?
    Yes. This happens only with dev release binary.

  • What is the hardware spec (RAM, OS)?
    OSX

  • Steps to reproduce the issue (command/config used to run Dgraph).

  1. Download dgraph-darwin-amd64-v1.0.1-dev.tar.gz from github release page
  2. Extract and follow getting started guide.
  3. Ratel fails to connect.
  • Expected behaviour and actual result.

Below are more logs:

Here are the zero node logs

Setting up grpc listener at: 0.0.0.0:5080
Setting up http listener at: 0.0.0.0:6080
2018/01/12 21:14:47 node.go:260: Group 0 found 0 entries
2018/01/12 21:14:47 raft.go:567: INFO: 1 became follower at term 0
2018/01/12 21:14:47 raft.go:316: INFO: newRaft 1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2018/01/12 21:14:47 raft.go:567: INFO: 1 became follower at term 1
Running Dgraph zero...
2018/01/12 21:14:47 node.go:127: Setting conf state to nodes:1
2018/01/12 21:14:51 raft.go:749: INFO: 1 is starting a new election at term 1
2018/01/12 21:14:51 raft.go:580: INFO: 1 became candidate at term 2
2018/01/12 21:14:51 raft.go:664: INFO: 1 received MsgVoteResp from 1 at term 2
2018/01/12 21:14:51 raft.go:621: INFO: 1 became leader at term 2
2018/01/12 21:14:51 node.go:301: INFO: raft.node: 1 elected leader 1 at term 2
2018/01/12 21:14:58 zero.go:316: Got connection request: addr:"localhost:7080"
2018/01/12 21:14:58 pool.go:118: == CONNECT ==> Setting localhost:7080
2018/01/12 21:14:58 zero.go:412: Connected

Below are server logs

2018/01/12 21:14:58 groups.go:94: Current Raft Id: 0
2018/01/12 21:14:58 gRPC server started.  Listening on port 9080
2018/01/12 21:14:58 worker.go:99: Worker listening at address: [::]:7080
2018/01/12 21:14:58 HTTP server started.  Listening on port 8080
2018/01/12 21:14:58 pool.go:118: == CONNECT ==> Setting localhost:5080
2018/01/12 21:14:58 groups.go:117: Connected to group zero. Connection state: member:<id:1 group_id:1 addr:"localhost:7080" > state:<counter:5 groups:<key:1 value:<members:<key:1 value:<id:1 group_id:1 addr:"localhost:7080" > > > > zeros:<key:1 value:<id:1 addr:"localhost:5080" leader:true > > maxRaftId:1 >
2018/01/12 21:14:58 draft.go:140: Node ID: 1 with GroupID: 1
2018/01/12 21:14:58 node.go:260: Group 1 found 0 entries
2018/01/12 21:14:58 draft.go:668: New Node for group: 1
2018/01/12 21:14:58 raft.go:567: INFO: 1 became follower at term 0
2018/01/12 21:14:58 raft.go:316: INFO: newRaft 1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2018/01/12 21:14:58 raft.go:567: INFO: 1 became follower at term 1
2018/01/12 21:14:58 groups.go:300: Asking if I can serve tablet for: _predicate_
2018/01/12 21:14:58 node.go:127: Setting conf state to nodes:1
2018/01/12 21:14:58 raft.go:749: INFO: 1 is starting a new election at term 1
2018/01/12 21:14:58 raft.go:580: INFO: 1 became candidate at term 2
2018/01/12 21:14:58 raft.go:664: INFO: 1 received MsgVoteResp from 1 at term 2
2018/01/12 21:14:58 raft.go:621: INFO: 1 became leader at term 2
2018/01/12 21:14:58 node.go:301: INFO: raft.node: 1 elected leader 1 at term 2
2018/01/12 21:14:58 mutation.go:155: Done schema update predicate:"_predicate_" value_type:STRING list:true

But dgraph-ratel errors out as

Error parsing Dgraph server address: addr is empty

Metadata

Metadata

Assignees

Labels

investigateRequires further investigation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions