SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

NI SystemLink Service Manager Crashes

NI SystemLink Service Manager stops working after a while. In the crashlog_svcmgr, I see two things that stand out.

 

10/18/2023 09:10:44

NationalInstruments.Skyline.MessageBus.SkylineException: Attempt to publish on a closed channel: SvcMgrReportServicesResponseBroadcast

   at NationalInstruments.Skyline.MessageBus.MessagePublisher.PublishMessage(MessageHeader header, Byte[] body, Boolean mandatory)

   at NationalInstruments.Skyline.AkkaUtilities.SkylineGateway.PublishBroadcast(BroadcastMessage message)

   at NationalInstruments.Skyline.ServiceManager.Internal.ServiceStateTracker.MakeCurrentSnapshot(Boolean updateRemotes)

   at NationalInstruments.Skyline.ServiceManager.Internal.ServiceStateTracker.AddLocalServiceInstance(ServiceInstanceBase instance)

   at NationalInstruments.Skyline.ServiceManager.Internal.MessageManagerBase.SpawnerThreadWithUserData(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

=================================================

=================================================

WARNING: exception after exception handler already ran

10/18/2023 09:10:45

NationalInstruments.Skyline.MessageBus.SkylineException: Attempt to publish on a closed channel: TraceLoggerRegisterTracePointRoutedMessage

   at NationalInstruments.Skyline.MessageBus.MessagePublisher.PublishMessage(MessageHeader header, Byte[] body, Boolean mandatory)

   at NationalInstruments.Skyline.SkylineUtilities.TraceLogging.ProcessLogger.MakeOrLookupTracePoint(String name)

   at NationalInstruments.Skyline.ServiceManager.Internal.MessageManagerBase..ctor(String moduleName)

   at NationalInstruments.Skyline.ServiceManager.Internal.ServiceLauncher.CreateSkylineLauncher(ServiceLaunchable launchable, Boolean attachOnly)

   at NationalInstruments.Skyline.ServiceManager.Internal.MessageManagerBase.DelayedSpawnerThreadWithUserData(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

=================================================

=================================================

10/18/2023 13:09:21

NationalInstruments.Skyline.MessageBus.SkylineException: Attempt to publish on a closed channel: TraceLoggerRegisterTracePointRoutedMessage

   at NationalInstruments.Skyline.MessageBus.MessagePublisher.PublishMessage(MessageHeader header, Byte[] body, Boolean mandatory)

   at NationalInstruments.Skyline.SkylineUtilities.TraceLogging.ProcessLogger.MakeOrLookupTracePoint(String name)

   at NationalInstruments.Skyline.ServiceManager.Internal.MessageManagerBase..ctor(String moduleName)

   at NationalInstruments.Skyline.ServiceManager.Internal.ServiceLauncher.CreateSkylineLauncher(ServiceLaunchable launchable, Boolean attachOnly)

   at NationalInstruments.Skyline.ServiceManager.Internal.MessageManagerBase.DelayedSpawnerThreadWithUserData(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

=================================================

=================================================

WARNING: exception after exception handler already ran

10/18/2023 13:09:22

NationalInstruments.Skyline.MessageBus.SkylineException: Attempt to publish on a closed channel: SvcMgrHeartbeatBroadcast

   at NationalInstruments.Skyline.MessageBus.MessagePublisher.PublishMessage(MessageHeader header, Byte[] body, Boolean mandatory)

   at NationalInstruments.Skyline.AkkaUtilities.SkylineGateway.PublishBroadcast(BroadcastMessage message)

   at NationalInstruments.Skyline.ServiceManager.Internal.ServiceManagersTracker.SendHeartbeatAndCheckForMissedHeartbeats()

   at NationalInstruments.Skyline.ServiceManager.Internal.ServiceManagersTracker.HeartbeatThreadFunction()

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart()

=================================================

 
0 Kudos
Message 1 of 9
(2,466 Views)

Have you checked to see if the system is periodically running out of memory? In addition, is this running on a dedicated server or a personal PC like a laptop? 

0 Kudos
Message 2 of 9
(2,445 Views)

Also, what version of SystemLink Server do you have installed?

0 Kudos
Message 3 of 9
(2,443 Views)

Version 2022 Q1 installed on a Windows Server 2022 with 8 CPU & 20 GB RAM.

0 Kudos
Message 4 of 9
(2,433 Views)

After a while, this is what happens and the service stops

0 Kudos
Message 5 of 9
(2,428 Views)

If you open the Tags application and look at the history for localhost.Health.Memory.UsePercentage what does it show? If your are periodically getting over 90% and if those spikes align with your crashes then that is the source of your issue and you should upgrade the amount of memory on your server or delete some data.

0 Kudos
Message 6 of 9
(2,420 Views)

Thank you for your reply.

 

We have another server identical to this one, but the product version is different.

 

It's version 2023 Q3, but we're having problems connecting to the database from Diadem with this version, but we're not having any problems with the service stopping.

 

We've set up an identical server with version 2022 installed, and this time the connection from Diadem works, but the services stop after a delay.

 

Regarding verification from Tags, can you tell me how to access this feature?

0 Kudos
Message 7 of 9
(2,392 Views)

Should look something like this.

Screenshot 2023-10-19 at 6.51.30 AM.png

0 Kudos
Message 8 of 9
(2,385 Views)

You will find the photo requested above

0 Kudos
Message 9 of 9
(2,379 Views)