Hello, we succesfully intalled ServiceControl on a clean VM (Windows Server 2019).
The transport we use is Azure Service Bus. I can see that the servicecontrol service is set to start automatically. However, sometimes it fails to start after the machine is rebooted. It usually takes 3 to 4 manual retries before it starts running again.
Service Control version: 5.0.1
Things I tried so far:
- I checked the troubleshoot page
- Disabled virus scanning on the database folders.
- Increased the timeout for services to start
None of this helped me, so I digged into the logs and the only exception I can see is the following:
2024-01-03T10:21:13.6383317Z, 1, Operations, Server, Sparrow.Server.LowMemory.CheckPageFileOnHdd, Failed to determine if drive C is SSD or HDD
2024-01-03T10:21:13.6391558Z, 1, Operations, Server, Sparrow.Server.LowMemory.CheckPageFileOnHdd, Failed to determine if drive D is SSD or HDD
2024-01-03T10:21:13.6397102Z, 1, Operations, Server, Sparrow.Server.LowMemory.CheckPageFileOnHdd, Failed to determine if drive E is SSD or HDD
2024-01-03T10:21:14.9823783Z, 7, Operations, A, Raven.Server.Rachis.RachisConsensus, Took way too much time (00:00:00.3424981) to change the state to LeaderElect in term 45. (Election timeout:00:00:00.3000000)
2024-01-03T10:21:41.0436815Z, 2, Operations, Server, Raven.Server.Program, Server is about to shut down (interactive mode)
2024-01-03T10:21:43.0776266Z, 30, Operations, Server/TCP, Raven.Server.RavenServer, Failed to accept new tcp connection again, will wait 1 seconds before retrying, EXCEPTION: System.InvalidOperationException: Not listening. You must call the Start() method before calling this method.
at System.Net.Sockets.TcpListener.AcceptSocketAsync(CancellationToken cancellationToken)
at System.Net.Sockets.TcpListener.AcceptTcpClientAsync()
at Raven.Server.RavenServer.AcceptTcpClientAsync(TcpListener listener) in C:\Builds\RavenDB-Stable-5.4\54092\src\Raven.Server\RavenServer.cs:line 2221
2024-01-03T10:21:43.0772459Z, 38, Operations, Server/TCP, Raven.Server.RavenServer, Failed to accept new tcp connection again, will wait 1 seconds before retrying, EXCEPTION: System.InvalidOperationException: Not listening. You must call the Start() method before calling this method.
at System.Net.Sockets.TcpListener.AcceptSocketAsync(CancellationToken cancellationToken)
at System.Net.Sockets.TcpListener.AcceptTcpClientAsync()
at Raven.Server.RavenServer.AcceptTcpClientAsync(TcpListener listener) in C:\Builds\RavenDB-Stable-5.4\54092\src\Raven.Server\RavenServer.cs:line 2221
2024-01-03T10:21:43.0772520Z, 54, Operations, Server/TCP, Raven.Server.RavenServer, Failed to accept new tcp connection again, will wait 1 seconds before retrying, EXCEPTION: System.InvalidOperationException: Not listening. You must call the Start() method before calling this method.
at System.Net.Sockets.TcpListener.AcceptSocketAsync(CancellationToken cancellationToken)
at System.Net.Sockets.TcpListener.AcceptTcpClientAsync()
at Raven.Server.RavenServer.AcceptTcpClientAsync(TcpListener listener) in C:\Builds\RavenDB-Stable-5.4\54092\src\Raven.Server\RavenServer.cs:line 2221
2024-01-03T10:21:43.0772457Z, 57, Operations, Server/TCP, Raven.Server.RavenServer, Failed to accept new tcp connection again, will wait 1 seconds before retrying, EXCEPTION: System.InvalidOperationException: Not listening. You must call the Start() method before calling this method.
at System.Net.Sockets.TcpListener.AcceptSocketAsync(CancellationToken cancellationToken)
at System.Net.Sockets.TcpListener.AcceptTcpClientAsync()
at Raven.Server.RavenServer.AcceptTcpClientAsync(TcpListener listener) in C:\Builds\RavenDB-Stable-5.4\54092\src\Raven.Server\RavenServer.cs:line 2221
My hope is that somebody here knows how to troubleshoot this, as my company is afraid that the service won’t start at all one day.
Thank you and best wishes for 2024!
Robert