Connection refused on a new install in Ubuntu


#1

Hi guys, Im totally new to Dgraph so have patience with me. I keep getting " connection refused error" on the new installation of Dgraph on Ubuntu:

Here is the entire message Im getting:

I0108 17:39:33.909320 5097 init.go:88]

Dgraph version : v1.0.11
Commit SHA-1 : b2a09c5b
Commit timestamp : 2018-12-17 09:50:56 -0800
Branch : HEAD
Go version : go1.11.1

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2018 Dgraph Labs, Inc.

I0108 17:39:33.909829 5097 run.go:98] Setting up grpc listener at: 0.0.0.0:5080
I0108 17:39:33.909963 5097 run.go:98] Setting up http listener at: 0.0.0.0:6080
badger2019/01/08 17:39:33 INFO: Replaying file id: 0 at offset: 3401
badger2019/01/08 17:39:33 INFO: Replay took: 13.322µs
I0108 17:39:33.929296 5097 node.go:151] Setting raft.Config to: &{ID:1 peers: learners: ElectionTick:100 HeartbeatTick:1 Storage:0xc00045e960 Applied:0 MaxSizePerMsg:1048576 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x1f94370 DisableProposalForwarding:false}
I0108 17:39:33.931106 5097 node.go:281] Found hardstate: {Term:2 Vote:1 Commit:17 XXX_unrecognized:}
I0108 17:39:33.931217 5097 node.go:290] Group 0 found 18 entries
I0108 17:39:33.931227 5097 raft.go:398] Restarting node for dgraphzero
I0108 17:39:33.931342 5097 node.go:83] 1 became follower at term 2
I0108 17:39:33.931439 5097 node.go:83] newRaft 1 [peers: , term: 2, commit: 17, applied: 0, lastindex: 17, lastterm: 2]
I0108 17:39:33.938382 5097 run.go:265] Running Dgraph Zero…
I0108 17:39:33.938661 5097 node.go:173] Setting conf state to nodes:1
I0108 17:39:33.938726 5097 raft.go:596] Done applying conf change at 1
E0108 17:39:33.940064 5097 pool.go:206] Echo error from localhost:7080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:7080: connect: connection refused”
I0108 17:39:33.940659 5097 pool.go:140] CONNECTED to localhost:7080
E0108 17:39:33.941292 5097 pool.go:206] Echo error from localhost:7080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:7080: connect: connection refused”
I0108 17:39:34.934909 5097 node.go:83] 1 no leader at term 2; dropping index reading msg
E0108 17:39:34.941683 5097 pool.go:206] Echo error from localhost:7080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:7080: connect: connection refused”
E0108 17:39:34.941831 5097 pool.go:206] Echo error from localhost:7080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:7080: connect: connection refused”
I0108 17:39:36.694330 5097 node.go:83] 1 is starting a new election at term 2
I0108 17:39:36.694370 5097 node.go:83] 1 became pre-candidate at term 2
I0108 17:39:36.694377 5097 node.go:83] 1 received MsgPreVoteResp from 1 at term 2
I0108 17:39:36.694435 5097 node.go:83] 1 became candidate at term 3
I0108 17:39:36.694442 5097 node.go:83] 1 received MsgVoteResp from 1 at term 3
I0108 17:39:36.694516 5097 node.go:83] 1 became leader at term 3
I0108 17:39:36.694528 5097 node.go:83] raft.node: 1 elected leader 1 at term 3
I0108 17:39:36.697862 5097 raft.go:613] I’ve become the leader, updating leases.
I0108 17:39:36.697889 5097 assign.go:44] Updated Lease id: 10001. Txn Ts: 10001
W0108 17:39:37.934967 5097 node.go:550] [1] Read index context timed out
I0108 17:39:42.939759 5097 zero.go:368] Got connection request: cluster_info_only:true
I0108 17:39:42.940022 5097 zero.go:386] Connected: cluster_info_only:true
I0108 17:39:42.941326 5097 zero.go:368] Got connection request: id:1 addr:“localhost:7080”
I0108 17:39:42.941845 5097 zero.go:495] Connected: id:1 addr:“localhost:7080”
I0108 17:39:42.942945 5097 pool.go:217] Connection established with localhost:7080
I0108 17:39:43.943139 5097 pool.go:217] Connection established with localhost:7080
E0108 17:40:23.940873 5097 pool.go:206] Echo error from localhost:7080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:7080: connect: connection refused”
E0108 17:40:23.941722 5097 pool.go:206] Echo error from localhost:7080. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:7080: connect: connection refused”
I0108 17:40:25.409187 5097 zero.go:368] Got connection request: cluster_info_only:true
I0108 17:40:25.409429 5097 zero.go:386] Connected: cluster_info_only:true
I0108 17:40:25.410500 5097 zero.go:368] Got connection request: id:1 addr:“localhost:7080”
I0108 17:40:25.410792 5097 zero.go:495] Connected: id:1 addr:“localhost:7080”
I0108 17:40:25.942007 5097 pool.go:217] Connection established with localhost:7080
I0108 17:40:25.942830 5097 pool.go:217] Connection established with localhost:7080

Please share your thoughts.

Thanks


(Michel Conrado (Support Engineer)) #2

Did you change anything on the command to start the Alphas?

Please share more detailed logs.


#3

I did the standard starting procedure:

dgraph zero

dgraph alpha --lru_mb 2048 --zero localhost:5080

dgraph-ratel


Its the first time I started. I can actually enter to localhost:800 but mutations and quieries simply dont work.

(Daniel Mai) #4

And can you share the Alpha logs? At the end of the Zero logs you shared, it says that Zero was able to establish a connection to Alpha’s internal gRPC port 7080.