Closed linuxd3v closed 3 years ago
@linuxd3v so you are running the main server on your home network and are attempting to attach a client from the VPS? Or is it the other way around? I am trying to understand if this is an issue with the provided public IP for your api server, which looks like will be providing your local address currently.
@afeiszli correct. trying to launch main server on home network and connect client from the VPS.
I am trying to understand if this is an issue with the provided public IP for your api server, which looks like will be providing your local address currently.
well Ive omitted my external ip from above config but im populating it in EXTERNAL_API_IP=HOMEIP
code.
instead of HOMEIP there would be my external ip.
I see you are doing port forwarding but have you confirmed that the api is reachable from an external network before running the netclient? Typically I would deploy the netmaker server to a VPS.
Also, with "UniqueAddress encountered an error"...what is the network range you've defined for the network?
@afeiszli
I see you are doing port forwarding but have you confirmed that the api is reachable from an external network before running the netclient?
Hi - it is reachable. well I've recchecked router port forwarding. And also the fact that I can see above error in the netmaker-api docker logs (which is within home network) i think is already enough to confirm reachability. I see this error exactly when I call netclient register -t
from the vps.
Typically I would deploy the netmaker server to a VPS.
that would be my next test - however for my use-case I would prefer if I could host from home network.
Also, with "UniqueAddress encountered an error"...what is the network range you've defined for the network?
currently using: 10.200.117.0/24
Does "docker logs netmaker" give any additional logs related to the UniqueAddress error? Also, is "Secure GRPC" mode enabled (it is by default)?
Does "docker logs netmaker" give any additional logs related to the UniqueAddress error?
unfortunately not really, thats the extent of it unless there is some way to increase verbosity.
all error relevant data seems to be this: "UniqueAddress encountered an error {500 mongo: no documents in result}"
2021/07/02 09:28:44 MongoDB Connected. 2021/07/02 09:28:44 Creating default network... 2021/07/02 09:28:44 Default network already exists. Skipping... 2021/07/02 09:28:44 main.go:146: Agent Server succesfully started on port 31744 (gRPC) 2021/07/02 09:28:44 main.go:162: Setup complete. You are ready to begin using netmaker. 2021/07/02 09:28:44 controller.go:47: REST Server succesfully started on port 31742 (REST) UniqueAddress encountered an error {500 mongo: no documents in result} UniqueAddress encountered an error {500 mongo: no documents in result}
Also, is "Secure GRPC" mode enabled (it is by default)?
if it is on by default then should be on - I haven notg disabled it intentionally to my best knowledge.
I am having the same problem here, did you manage to find a solution?
@Punkado I did not. Ive tried another wireguard mesh tool called innernet which happened to worked for me out of the box. but I would definately be interested to get netmaker working as getting UI would be great.
@linuxd3v @Punkado The issue with mongo was due to empty queries returning errors under certain circumstances. This has been fixed in the 0.7 release which is coming out tomorrow (8/11/21).
@afeiszli Ah that's awesome. Ill close this ticket then and reopen if new version doesnt resolve it. Thank you!
Hi - very interesting project, trying to get it to work but failing.
Trying to launch the mongo/api/ui stack on my homenetwork and then connect to remote VPS. Client errors out with this message:
At the same time Im seeing this in the server docker logs:
Iim launching docker compose like this:
With the following .env file:
I also forward grpc and api ports through my router. (31744, 31742)
halp. lol. Any advice is appreciated.