On a new production platform (sw version 10.1.9.0-10732), which is currently still in its construction phase, we noticed the following runtime error exception taking place:
Unexpected exception while initializing CloudEndpointManager: System.IO.IOException: The process cannot access the file 'C:\Skyline DataMiner\SLCloud.xml' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at Skyline.DataMiner.MessageBroker.XML.SLMessageBrokerXmlWriter.ReadFromFile()
at Skyline.DataMiner.MessageBroker.XML.SLMessageBrokerXmlWriter..ctor(String path)
at SLEndpointTool.Install.Generic.Installer..ctor(String rootFolder, String resourceFolder, Boolean isInstaller)
at SLEndpointTool.Install.Installers.NasInstaller..ctor(String destinationFolder, String resourceFolder)
at SLEndpointTool.Install.Generic.InstallerFactory.CreateInstallers(List`1 endpoints, String destinationFolder, String resourceFolder, Boolean isInstaller)
at SLEndpointTool.Install.Generic.InstallerFactory.GetInstallers(InstallerFlags flags, String destinationFolder, String resourceFolder)
at Skyline.DataMiner.Net.CloudEndpoints.CloudEndpointAutomaticInstallation.RunAutomated_SingleDMA()
at Skyline.DataMiner.Net.CloudEndpoints.CloudEndpointManager.OnInitialize()
at Skyline.DataMiner.Net.ManagerStore.BaseManager.Initialize()
at Skyline.DataMiner.Net.ManagerStore.ManagerStore.InnerInitializeSync(BaseManager manager)
As this is a new service (SLCloud) I'm unsure about the root cause of this exception and what i should do in order to troubleshoot / remedy this situation.
Can someone with more in depth knowledge on SLCloud share some troubleshooting tips which can assist us in resolving this error?
Hi Jeroen,
This is likely because there was a problem during the NATS installation. Can you check if the NATS & NAS services are running (in the Windows Service Manager)? If they are constantly "restarting" you'll likely have to open the firewall so NATS can communicate (You'll need to open ports: 4222, 6222, 8222, 9090). If the services are running correctly, I would check if the SLCloud.xml file is locked by SLNet or a different DataMiner process (see this guide https://www.winhelponline.com/blog/resource-monitor-find-process-locked-file-windows-7/ ). If it's locked by a DataMiner process I would try to restart the DataMiner.