The audit instance of my newly installed service control environment immediately crashes after starting up. The version is 4.26.0. I installed using the powershell script audit-add
using the same queue names and other settings from the previously running instance (v 4.4.1)
Everything is set-up on a new machine.
Service Control and Monitoring instances appear both to be running fine. All the instances run on the same machine
There’s absolutely nothing in the log except
2023-01-18 16:08:06.6253|1|Info|ServiceControl.Audit.Infrastructure.Bootstrapper|
-------------------------------------------------------------
ServiceControl Audit Version: 4.26.0+143710d3279a865bd175394dddc74f7cb062843d
Audit Retention Period: 30.00:00:00
Forwarding Audit Messages: True
Database Size: b
Database Folder Size: 35 MB
ServiceControl Logging Level: Info
RavenDB Logging Level: Warn
Transport Customization: ServiceControl.Transports.SqlServer.SqlServerTransportCustomization, ServiceControl.Transports.SqlServer,
Persistence: RavenDB5
-------------------------------------------------------------
The only other thing I can find is a stack trace in the event viewer that doesn’t help me at all trying to understand the issue.
Application: ServiceControl.Audit.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at Raven.Embedded.EmbeddedServer+<RunServer>d__20.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Raven.Client.Extensions.TaskExtensions+<>c__3`1[[System.ValueTuple`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<WithCancellation>b__3_0(System.Threading.Tasks.Task`1<System.ValueTuple`2<System.__Canon,System.__Canon>>)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2[[System.ValueTuple`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.ValueTuple`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Raven.Embedded.EmbeddedServer+<GetServerUriAsync>d__15.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Raven.Embedded.EmbeddedServer+<>c__DisplayClass13_0+<<GetDocumentStoreAsync>b__0>d.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Raven.Client.Extensions.TaskExtensions+<>c__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<WithCancellation>b__3_0(System.Threading.Tasks.Task`1<System.__Canon>)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
at System.Threading.Tasks.Task.Execute()
The PS command I used is
audit-add -Name Servicecontrol.Audit -InstallPath 'C:\Program Files (x86)\Particular Software\ServiceControl.Audit' -DBPath 'E:\ServiceControl.Audit\DB' -LogPath 'E:\ServiceControl.Audit\Logs' -HostName localhost -Port 44444 -DatabaseMaintenancePort 44445 -AuditQueue audit -AuditLogQueue audit.log -Transport 'SQL Server' -DisplayName ServiceControl.Audit -ConnectionString 'Data Source=<masked>' -ForwardAuditMessages -ServiceAccount 'user' -ServiceAccountPassword 'password' -AuditRetentionPeriod '30.00:00:00' -ServiceControlQueueAddress Servicecontrol -SkipQueueCreation -EnableFullTextSearchOnBodies
Connection string, service account and password are identical with the other two services that are running fine. So, this should not be an issue.
Any ideas what is causing this issue?