What I want to do
I want to delete the One node using Admin endpoint. My Alpha 3 got crashed and not starting
http://192.180.66.41:6080/removeNode?id=3&group=1
What I did
I have invoked the below get from the postman
http://192.180.66.41:6080/removeNode?id=3&group=1
Response :
“errors”: [
{
"message": "Not Zero leader. Aborting proposal: member:<id:3 group_id:1 am_dead:true > ",
"extensions": {
"code": "Error"
}
}
]
}
192.180.66.41 : is My Alpha1 and Zero 1 IP address.
I have started My Zeros and Alphas using below commands
nohup dgraph zero --replicas=3 --raft idx=1 --my=192.180.66.41:5080 &
nohup dgraph zero --replicas=3 --raft idx=2 --my=192.180.66.48:5080 --peer=192.180.66.41:5080 &
nohup dgraph zero --replicas=3 --raft idx=3 --my=192.180.66.39:5080 --peer=192.180.66.41:5080 &
nohup dgraph alpha --my=192.180.66.41:7080 --zero=192.180.66.41:5080 --security whitelist=0.0.0.0/0 &
nohup dgraph alpha --my=192.180.66.48:7080 --zero=192.180.66.41:5080 --security whitelist=0.0.0.0/0 &
nohup dgraph alpha --my=192.180.66.39:7080 --zero=192.180.66.41:5080 --security whitelist=0.0.0.0/0 &
Dgraph metadata
dgraph version
Dgraph version : v21.03.2
Dgraph codename : rocket-2
Dgraph SHA-256 : 00a53ef6d874e376d5a53740341be9b822ef1721a4980e6e2fcb60986b3abfbf
Commit SHA-1 : b17395d33
Commit timestamp : 2021-08-26 01:11:38 -0700
Branch : HEAD
Go version : go1.16.2
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.