Error parsing Dgraph server address: addr is empty

Windows 7 Professional SP1
Installed binaries as documented.

Running dgraph-retel generates following error:

C:\dgraph2>dgraph-ratel
Error parsing Dgraph server address: addr is empty

dgraph zero output:

C:\dgraph2>dgraph zero --port_offset -2000
Setting up grpc listener at: 0.0.0.0:5080
Setting up http listener at: 0.0.0.0:6080
2018/01/25 13:48:26 node.go:260: Group 0 found 0 entries
2018/01/25 13:48:26 raft.go:567: INFO: 1 became follower at term 0
2018/01/25 13:48:26 raft.go:316: INFO: newRaft 1 [peers: , term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2018/01/25 13:48:26 raft.go:567: INFO: 1 became follower at term 1
Running Dgraph zero…
2018/01/25 13:48:26 node.go:127: Setting conf state to nodes:1
2018/01/25 13:48:29 raft.go:749: INFO: 1 is starting a new election at term 1
2018/01/25 13:48:29 raft.go:580: INFO: 1 became candidate at term 2
2018/01/25 13:48:29 raft.go:664: INFO: 1 received MsgVoteResp from 1 at term 2
2018/01/25 13:48:29 raft.go:621: INFO: 1 became leader at term 2
2018/01/25 13:48:29 node.go:301: INFO: raft.node: 1 elected leader 1 at term 2
2018/01/25 13:48:46 zero.go:316: Got connection request: addr:“localhost:7080”
2018/01/25 13:48:46 pool.go:118: == CONNECT ==> Setting localhost:7080
2018/01/25 13:48:46 zero.go:412: Connected

DGraph Server output:

C:\dgraph2>dgraph server --memory_mb 2048 --zero localhost:5080
2018/01/25 13:48:46 gRPC server started. Listening on port 9080
2018/01/25 13:48:46 HTTP server started. Listening on port 8080
2018/01/25 13:48:46 worker.go:99: Worker listening at address: [::]:7080
2018/01/25 13:48:46 groups.go:94: Current Raft Id: 0
2018/01/25 13:48:46 pool.go:118: == CONNECT ==> Setting localhost:5080
2018/01/25 13:48:46 groups.go:117: Connected to group zero. Connection state: member:<id:1 group_id:1 addr:“localhost:7080” > state:<counter:5 gr
oups:<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/25 13:48:46 draft.go:140: Node ID: 1 with GroupID: 1
2018/01/25 13:48:46 node.go:260: Group 1 found 0 entries
2018/01/25 13:48:46 draft.go:668: New Node for group: 1
2018/01/25 13:48:46 raft.go:567: INFO: 1 became follower at term 0
2018/01/25 13:48:46 raft.go:316: INFO: newRaft 1 [peers: , term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2018/01/25 13:48:46 raft.go:567: INFO: 1 became follower at term 1
2018/01/25 13:48:46 groups.go:300: Asking if I can serve tablet for: predicate
2018/01/25 13:48:46 node.go:127: Setting conf state to nodes:1
2018/01/25 13:48:46 raft.go:749: INFO: 1 is starting a new election at term 1
2018/01/25 13:48:46 raft.go:580: INFO: 1 became candidate at term 2
2018/01/25 13:48:46 raft.go:664: INFO: 1 received MsgVoteResp from 1 at term 2
2018/01/25 13:48:46 raft.go:621: INFO: 1 became leader at term 2
2018/01/25 13:48:46 node.go:301: INFO: raft.node: 1 elected leader 1 at term 2
2018/01/25 13:48:46 mutation.go:155: Done schema update predicate:“predicate” value_type:STRING list:true

Any suggestions?

Which version are you using? There was a similar error fixed in *-dev version.

https://github.com/dgraph-io/dgraph/issues/2014

Following command worked:
dgraph-ratel.exe -addr localhost:8080

Documentation only says to execute dgraph-ratel.exe

It is working now.
Thanks.

dgraph-ratel should by default talk to server on localhost:8080. So you shouldn’t explicitly set using -addr if youa are running server on localhost:8080.

Could you tell me which version you were using?

You can check the version by running the dgraph command.

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