-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grpc error missing port in address(No Validation) #837
Comments
After starting the first server with dgraph --bindall, --my flag can be used to tell other instances about the current dgraph instance's address.. The address should be valid with port, "10.183.105.90" is an invalid address. It should be ip:workerport or dns which points to workerport of this instance |
@janardhan1993 But dgraph does not complain a invalid address for "--my" flag when I run this command to start the first instance: So "--my" flag is not checked when there is no "--peer" flag being set? Update: after checking the document, I think I am doing right.
|
@Rader On second thought, it's difficult to validate whether the address specified after --my"" points to the dgraph instance or not. (10.183.105.89 points to port 80, but since dgraph is listening on port 12345 by default, it didn't work). |
@janardhan1993 At least a few things we need to check
Oh! Now I get the "missing port" error when I start the first dgraph instance, even I have set the IP and port for "-my" flag.
|
More information about this issue. I found that if I set wrong address for "-my" or "-peer", e.g. forget the port, then Dgraph will fail to join the cluster even if I set the right address for "-my" and "-peer" when restart it. The solution is to remove the "w" folder before restart Dgraph. I think the cluster config in WAL should be overwritten by the config set through command line. |
Thanks for pointing out the issues. We will fix them soon. |
I have a server 10.183.105.89 runs a dgraph v0.7.5 with "-bindall" option. Now I try to add another dgraph v0.7.5 on 10.183.105.89 to the cluster. But I get an error.
I think "peer" has format "IP:Port". Am I right?
[email protected]:~/dgraph_bin$ ./dgraph_v0.7.5 --groups "2" --idx 3 --my "10.183.105.90" -peer "10.183.105.89:12345"
The text was updated successfully, but these errors were encountered: