-
Notifications
You must be signed in to change notification settings - Fork 3
Installation issue w/ release 2022-11-09133750 #26
Comments
On the logfile netdata.log I see |
Possibly microsoft/WSL#8714 |
could you share with me your e-mail? not sure these logs are safe to be shared public |
Sent you an email. |
this seems to be related with default DNS, checking the content of looked to another image that has the following this was gotten from https://askubuntu.com/questions/1403886/how-to-fix-wsl-domain-resolution |
@hugovalente-pm can you confirm it is just the DNS by pinging an IP address? also, the wsl import now switchs to wsl1 if takes more than 2 minutes. And with the MSI argument WSL=1 that will be used. Both dns and import issues appear to be related directly to WSL and not the installer. |
@dfpr it was the DNS I did a troubleshooting with some guys on slack to help identify this, I'll add a summary here
Not sure if I follow here, if we install the Netdata image and there are some issues on the
then I remembered I had seen and done this on the Ubuntu https://askubuntu.com/questions/1403886/how-to-fix-wsl-domain-resolution |
I can't reproduce your issue, the askubuntu article mentions issues when connecting a vpn so I can't pinpoint the exact solution proposed there, I don't know why your Ubuntu points to Google DNS servers, if I put
in |
@dfpr That needs to go in |
Sorry, typo, I did put the lines in the right place but WSL deletes the file, putting an immutable flag created a lot of issues for the docker hostb when building, I'll try after importing. Again, this is a wsl issue not coming from the installer. |
Latest commit should fix dns issue |
Now we can no longer access Whatever the network issues were, |
I have reverted the change. |
@hugovalente-pm try the latest version and let's try and figure out why claiming doesn't work in your case, without changing DNS again. The installer should be left as is IMO. |
sure, will try a fresh install tomorrow |
@cakrit I was trying a fresh install and got this error which I thought it would mean the node wasn't claimed to Cloud (I tried it twice to make sure I hadn't miscopied the token), the command I ran
looking to the log file on
Looking to the pinging |
I can't ping either |
Hello @dfpr , Like you I cannot ping: bash-5.2$ nslookup app.netdata.cloud
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: app.netdata.cloud
Address: 54.198.178.11
Name: app.netdata.cloud
Address: 44.196.50.41
Name: app.netdata.cloud
Address: 44.207.131.212
app.netdata.cloud canonical name = main-ingress-545609a41fcaf5d6.elb.us-east-1.amazonaws.com.
bash-5.2$ ping -c 1 app.netdata.cloud
PING app.netdata.cloud (44.207.131.212) 56(84) bytes of data.
--- app.netdata.cloud ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
bash-5.2$ nslookup api.netdata.cloud
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: api.netdata.cloud
Address: 54.198.178.11
Name: api.netdata.cloud
Address: 44.196.50.41
Name: api.netdata.cloud
Address: 44.207.131.212
api.netdata.cloud canonical name = main-ingress-545609a41fcaf5d6.elb.us-east-1.amazonaws.com.
bash-5.2$ ping -c 1 api.netdata.cloud
PING api.netdata.cloud (44.207.131.212) 56(84) bytes of data.
--- api.netdata.cloud ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms , but I can access host |
Don't try |
HTTPS works for me. |
where it seems to fail is at netdata |
with @underhood we were able to rule out the issue with DNS, since we got an IP resolution (if right or now we aren't sure), but the issue was reproduced with an emulation to an HTTP call like this @underhood will try to get is setup installed with WSL 2 (for some reason it got WSL 1) to further investigate this network issue that could be a config or a bug on WLS 2 |
basically to summarize agent fails to we tried to do Therefore as wget seems to have same issue I consider this to be some network configuration issue or a bug in WSL2 and is not specific to netdata. I also tried the msi installer in Win 11 in VirtualBox with WSL1 and cloud connection was working OK. I will try to figure out why WSL2 version was not used and try to see if WSL2 version will have the aforementioned issue. |
This is all very strange. Were you able to duplicate elsewhere @underhood? I have a different windows machine (laptop) I can try too |
Never mind, on Windows 10 it couldn't install with WSL 2 it says and it's reverting to WSL 1. So I can't do the test. |
For some reason I cant make WSL2 to work in VM despite trying 100 things :/ |
WSL2 in general doesn't work in VMs, the installer should default to WSL1 I may have replicated the network issue on my WSL2 on a laptop I have with me. The PC at home had Win 11 and worked great, this one just doesn't want to work with app.netdata.cloud for some reason. I'll see if anything from above will help. |
@cakrit mine is WSL 2 and I bumped into this domain resolution fix ttps://askubuntu.com/questions/1403886/how-to-fix-wsl-domain-resolution |
Yes, that works, but there should be a way to properly resolve app.netdata.cloud without losing the capability to reach the windows host via From https://superuser.com/questions/1714002/wsl2-connect-to-host-without-disabling-the-windows-firewall I got the idea to exclude the interface from the windows firewall (see screenshot below) and that at least got rid of the message I now get the following:
|
Never mind, I tried to get the rest of it working and followed some instructions in https://gist.github.com/sivinnguyen/8bc0125b274250683a97e149cf270040 I give up. This is clearly a shoddy implementation that only works occasionally. I have no idea how to get both the name resolution to work AND to get a URL that will let us access the windows_exporter metrics from inside WSL. The moment we change resolv.conf, we lose access to the /metrics endpoint and I have no idea how we can get to it. I found somewhere that if you type If you can find a solution gents, let me know, but it needs to both allow claiming and show the metrics, not just one or the other. At this point, I'm even considering hard-coding an IP in /etc/hosts as a workaround, which is basically the same as accepting defeat. |
Was trying to install netdata and I guess this is the release used https://github.com/netdata/msi-installer/releases/tag/2022-11-09133750 (based on date/time)
Steps:
netdata.msi
installation but I had the wmi_exporter already installedmsiexec.exe /i C:\Users\hugoj\netdata\netdata.msi TOKEN=<space-token> URL=https://app.netdata.cloud
The text was updated successfully, but these errors were encountered: