StackTrace: at VaultServiceBase.VaultLogManager.LogExcept

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Hans Olav Nymand
Posts: 55
Joined: Wed Sep 29, 2004 8:09 am
Location: Denmark, Copenhagen
Contact:

StackTrace: at VaultServiceBase.VaultLogManager.LogExcept

Post by Hans Olav Nymand » Wed Jul 25, 2018 4:50 am

Hello,

On average once a week - but really at random times - we get this error in the event log and the IIS restarts the Vault server application.

Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 25-07-2018 11:02:24
Event ID: 1325
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: svrVault2.pdc.xx
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1/ROOT/VaultService

Process ID: 4396

Exception: System.NullReferenceException

Message: Object reference not set to an instance of an object.

StackTrace: at VaultServiceBase.VaultLogManager.LogException(Exception e)
at VaultServiceSQL.VaultSqlSCC.GetPluginsByName(VaultSqlConn conn, String strName, Boolean bThrowOnException, List`1& pluginInfo)
at VaultServiceAPILib.VaultServiceAPISystem.GetPluginURLs(VaultSqlConn connURL, String strPluginName, Boolean bOnlyGetActiveURLs, List`1& listPluginURLs)
at VaultServiceAPILib.VaultServiceAPISystem.InvalidateNotificationAuthTicketsProc(Object o)
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()


And the list of this event for this year:
Error 25-07-2018 11:02:24 ASP.NET 4.0.30319.0 1325 None
Error 16-07-2018 11:02:27 ASP.NET 4.0.30319.0 1325 None
Error 05-07-2018 11:02:24 ASP.NET 4.0.30319.0 1325 None
Error 02-07-2018 11:02:36 ASP.NET 4.0.30319.0 1325 None
Error 17-06-2018 15:08:52 ASP.NET 4.0.30319.0 1325 None
Error 15-06-2018 11:01:51 ASP.NET 4.0.30319.0 1325 None
Error 23-05-2018 22:03:36 ASP.NET 4.0.30319.0 1325 None
Error 19-05-2018 03:47:22 ASP.NET 4.0.30319.0 1325 None
Error 14-05-2018 11:06:14 ASP.NET 4.0.30319.0 1325 None
Error 06-05-2018 01:10:47 ASP.NET 4.0.30319.0 1325 None
Error 03-05-2018 11:02:50 ASP.NET 4.0.30319.0 1325 None
Error 12-04-2018 22:06:58 ASP.NET 4.0.30319.0 1325 None
Error 22-03-2018 22:33:07 ASP.NET 4.0.30319.0 1325 None
Error 17-03-2018 02:03:03 ASP.NET 4.0.30319.0 1325 None

17/3 however is not the first time we had the event - but our Event Log on the server does not go back any further.

Although it does seem quite random I will investigate what happens at 11:02

Addition: I notice now that half the events have a diffenrent 2nd line (and below) in the stack trace:
StackTrace: at VaultServiceBase.VaultLogManager.LogException(Exception e)
at VaultServiceAPILib.VaultServiceAPISystem.GetOpenSqlConn(VaultServiceDBConnectType vsDbType, VaultSqlConn& conn)
at VaultServiceAPILib.SCCEventController.LoadActivePlugins(List`1& piList)
at VaultServiceBase.VaultPluginEventController.GetPluginListForEvent(UInt64 nEventType, List`1& listPlugins)
at VaultServiceBase.VaultPluginEventController.EventNotificationDispatchProc()
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()

So some are
at VaultServiceSQL.VaultSqlSCC.GetPluginsByName(VaultSqlConn conn, String strName, Boolean bThrowOnException, List`1& pluginInfo)

And some are:
at VaultServiceAPILib.VaultServiceAPISystem.GetOpenSqlConn(VaultServiceDBConnectType vsDbType, VaultSqlConn& conn)


Best regards,
Hans Olav Nymand

joe_sg
Posts: 27
Joined: Tue Oct 28, 2008 1:20 pm
Location: SourceGear

Re: StackTrace: at VaultServiceBase.VaultLogManager.LogExcep

Post by joe_sg » Wed Jul 25, 2018 1:11 pm

Hello, Hans.

Thanks for including the detail from your event log. I'd like to take a look at your server log, too. Your Vault server log can be found on the Vault server machine at %windir%\temp\sgvault\sgvault.log. If it's huge, you can just send the portion of the log starting July 1. Then we can align the server log entries with those from your event log.

You can email the logs to: support@sourcegear.com.

Thanks.
Joe Ream
SourceGear Technical Support

Hans Olav Nymand
Posts: 55
Joined: Wed Sep 29, 2004 8:09 am
Location: Denmark, Copenhagen
Contact:

Re: StackTrace: at VaultServiceBase.VaultLogManager.LogExcep

Post by Hans Olav Nymand » Thu Jul 26, 2018 1:01 am

Log-files for July sent as requested.

Best regards, Hans Olav

Post Reply