Hi,
When we restarted a DataMiner Agent, it got stuck in the startup menu. The SLNet.txt log shows the following:
2020-08-17 12:07:43.771|4|WaitUntilPortIsAvailable|Waiting for port 9004 to become available...
We tried unregistering and registering the DataMiner services and DLLs; however, when DataMiner and SLNet were restarted, the following message was displayed:
I cannot stop/start the SLNet service manually because the options are greyed out:
Last Friday (14/08/2020) it was possible to stop and restart the Agent.
I checked the DataMiner.xml file and compared it to previously dated files (found in the Recycle Bin) and there are no differences.
What additional steps can be done to get this Agent running again?
Thank you for the help.
You can check if a process is using the port that SLNet is waiting on. My favourite way to do this is with following powershell command:
> netstat -abon | findstr :9004
TCP 0.0.0.0:9004 0.0.0.0:0 LISTENING 15708
The last number here (15708) is the process ID of the process that has claimed the port. It could be possible that either another process has taken the port or that it is taken by SLNet.exe, but in status "Suspended".
When this happens, SLNet.exe is usually locked by one of the "WmiPrvSE.exe" processes. Which one exactly can be found with process explorer.
The issue can be fixed by killing the correct WmiPrvSE.exe process.
A more likely cause for the issue however is indeed a corrupt xml file somewhere, but this idea might be something to check as well.
Hi Laurens,
Thank you for the tip, if I encounter this issue again I will be sure to do this check right away.