netdata / msi-installer

Netdata installer for Windows using WSL2
GNU General Public License v3.0
22 stars 3 forks source link

Node is seen Unseen on Cloud and can't find logs to troubleshoot #11

Closed hugovalente-pm closed 1 year ago

hugovalente-pm commented 1 year ago

I see my node claimed but as Unseen some issue on the communication between Agent and Cloud, was trying to search for logs and can't find them

hugovalente-pm commented 1 year ago

cc/ @cakrit

cakrit commented 1 year ago

Issue #9 is for the log files.

Which windows version did you use?

Send me the command you used, we'll probably need to rerun adding /L*V "C:\log\example.log", to see what the installer says.

cakrit commented 1 year ago

FYI for now @dfpr

dfpr commented 1 year ago

For this it seems the installation and claiming worked so MSI Windows Installer logs won't show the issue, better check netdata logs after https://github.com/netdata/msi-installer/issues/9 is resolved.

hugovalente-pm commented 1 year ago

ok, will still generate the log

my Windows version details

dfpr commented 1 year ago

ok, will still generate the log

my Windows version details

Try killing the agent and launching again with these to see if appears in cloud:

wsl -t netdata
wsl -d netdata netdata
hugovalente-pm commented 1 year ago

@dfpr I've run the two commands provided

hugovalente-pm commented 1 year ago

I think it is because I have another local instance running (Ubuntu) now that I see better the error, let me stop that one

this is the result, still something wrong image

dfpr commented 1 year ago

Logs at /var/log/netdata have been fixed.

hugovalente-pm commented 1 year ago

was able to get the Node live! I couldn't find the logs folder can you share where I should look for it @dfpr ?

now also trying to dig into a different problem because I only get a small subset of charts image

dfpr commented 1 year ago

was able to get the Node live! I couldn't find the logs folder can you share where I should look for it @dfpr ?

The agent logs located at /var/log/netdata inside the Netdata distro (and all the distro files) can be reached in addition from the terminal (wsl -d netdata) through the Netdata folder inside the Linux item located in the folder tree on the Windows File Explorer or going to the "\wsl.localhost\netdata\var\log\netdata" Windows path.

now also trying to dig into a different problem because I only get a small subset of charts !

For that issue please try to restart the computer after installation. Sometimes instead of a full restart stopping the agent (wsl -d netdata netdatacli shutdown-agent) and starting it again (wsl -d netdata netdata) and/or restarting the windows_exporter service by running (Restart-Service windows_exporter) in an elevated Powershell terminal can fix the WMI metrics not showing.

hugovalente-pm commented 1 year ago

...or going to the "\wsl.localhost\netdata\var\log\netdata" Windows path.

I actually got there from \\wsl$\netdata\var\log\netdata and I can see the logs so 👌

and/or restarting the windows_exporter service by running

I think this maybe the issue, I tried to stop the agent but it isn't responding let me restart the laptop

hugovalente-pm commented 1 year ago

I did the laptop restart and couldn't see the other charts, I'm trying again to stop the agent (wsl -d netdata netdatacli shutdown-agent) to start it again but it seems to get stuck

image

cakrit commented 1 year ago

don't use netdatacli, it's broken. Just do wsl -d Netdata killall netdata to stop Netdata. I updated the README.

cakrit commented 1 year ago

Closing this, we have #12

dfpr commented 1 year ago

@hugovalente-pm latest version saves installation log at c:\netdata.log.