Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000

book

Article ID: 170670

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

The SMP logs shows the following messages:

Error 1:
NSE dispatch failed for: id=16522222, from: a1c6bf4f-f9dd-4a1b-a8f1-2bbc57f9a349, to: AeXNSCUserLogon
Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000

Error 2:
Failed to create client message.
Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000

Error 3:
Unable to get the package codebases for the specified packages, request:
agent=6e66fac2-89d8-4739-b346-32c262af281b, type=SoftwareDelivery
Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000
 

When trying to access for example:

http://mySMP.domain.local/Altiris/TaskManagement/CTAgent/GetClientTaskServers.aspx?resourceGuid=626cfac1-60fd-41a1-878c-c1efc9b88ffa&crc=00070006000E0677

we got this message in the browser:

<?xml version="1.0"?>
<response description="The handler 'GetClientTaskServers' is failed to process request. Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000" code="6" result="failure">The handler 'GetClientTaskServers' is failed to process request. Altiris.NS.Exceptions.Security.MissingSecurityEntityException: Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000 at Altiris.NS.Security.SecurityContext.HandleContextException(Object identity, Exception ex, Boolean failWhenAccountMissing) at Altiris.NS.Security.SecurityContext..ctor(Guid accountGuid, Boolean failWhenAccountMissing) at Altiris.Resource.StandardResources.SiteServiceRelationsCache.LoadResourceTargetManuallyAssignedCache() at Altiris.Resource.StandardResources.SiteSubnetServiceCacheController.CacheProxy`1.get_Value() at Altiris.NS.StandardItems.SiteServer.SiteServiceLocator.GetSiteServiceIdsByManualAssignment(Guid resourceId, SiteServiceController siteServiceType) at Altiris.NS.StandardItems.SiteServer.SiteServiceLocator.GetSiteServers(Guid resourceId, ISet`1 ipAddresses, SiteServiceController siteServiceType) at Altiris.TaskManagement.ClientTask.AgentWeb.GetClientTaskServers.Altiris.TaskManagement.ClientTask.AgentWeb.IGetClientTaskServersInfoProvider.GetTaskServersForResource(Guid resourceGuid, ISet`1 ipList, NameValueCollection headers) at Altiris.TaskManagement.ClientTask.AgentWeb.GetClientTaskServers.PrepareServers(Guid resourceGuid, IGetClientTaskServersInfoProvider infoProvider, ISet`1 ipList, List`1& taskServersForResource) at Altiris.TaskManagement.ClientTask.AgentWeb.GetClientTaskServers.WriteResponseImplementation(XmlTextWriter wr, IGetClientTaskServersInfoProvider infoProvider) at Altiris.DotNetLib.Threading.StringBuilderCache.ToXml(Action`1 fu) at Altiris.TaskManagement.ClientTask.AgentWeb.GetClientTaskServers.WriteResponse(XmlTextWriter wr) at Altiris.DotNetLib.Threading.StringBuilderCache.ToXml(Action`1 fu) at Altiris.TaskManagement.Common.XmlHttp.BaseXmlXmlHttpCallback.WriteResponseRaw(XmlTextWriter xwr) at Altiris.TaskManagement.Common.XmlHttp.BaseXmlHttpCallback.ProcessRequest(HttpContext context)</response>

Error 1:

NSE dispatch failed for: id=16522222, from: a1c6bf4f-f9dd-4a1b-a8f1-2bbc57f9a349, to: AeXNSCUserLogon

Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000
   [Altiris.NS.Exceptions.Security.MissingSecurityEntityException @ Altiris.NS]
   at Altiris.NS.Security.SecurityContext.HandleContextException(Object identity, Exception ex, Boolean failWhenAccountMissing)
   at Altiris.NS.Security.SecurityContext..ctor(Guid accountGuid, Boolean failWhenAccountMissing)
   at Altiris.NS.ItemManagement.CollectionMembershipCache.FetchMembers(Guid collectionGuid)
   at Altiris.NS.ItemManagement.MembershipCacheBase.MembershipCacheInstanceData.ContainerContains(Guid collectionGuid, Guid resourceGuid, Boolean preferCollectionToMembersLoad)
   at Altiris.NS.ResourceManagement.MessagingResource.SaveImpl(Boolean allowUpdate)
   at Altiris.Database.DatabaseContext`1.RetryAction(Int32 retries, Boolean transacted, Getter`1 getContext, Action`1 action, Action`1 retry, DeadlockRetryArgs& re, Exception& exception, Boolean inTransaction)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetryHelper(Int32 retries, Boolean inTransaction, Getter`1 getContext, Action`1 action, Action`1 retry, Boolean transacted)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetry(Int32 retries, Boolean startNewTransaction, Nullable`1 isolationLevel, Boolean independentContext, Action`1 action, Action`1 retry)
   at Altiris.NS.ResourceManagement.MessagingResource.Save()
   at Altiris.NS.Utilities.ResourceHelper.GetResourceGuidFromResourceXml(XmlNode resourceNode, Boolean createIfNotExists)
   at Altiris.NS.Utilities.ResourceHelper.GetResourceGuidFromLegacyMessage(XmlNode messageNode, Boolean createIfNotExists)
   at Altiris.NS.ClientMessaging.ClientMessage..ctor(String clientMessage, String alternateBodyNodeName)
   at Altiris.NS.StandardItems.Messaging.MessagingItem.OnMessage(String message)
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.DispatchWithinContext(String message, Boolean useFilename, IItem item, IItemMessaging iim, MessageHeader header)
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.DispatchWithinContext(Int32 eventQueueId, String message, Boolean useFilename, Int64 fileSize, Int64 eventId, MessageHeader header)
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.TryDispatch(Int32 eventQueueId, String message, Boolean useFilename, Int64 fileSize, Int64 eventId)

Exception logged from:
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.TryDispatch(Int32, String, Boolean, Int64, Int64)
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.PerformDispatch(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, Boolean&)
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.WorkerDispatchStep(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, Altiris.Common.Threading.IAutoCallContextSnapshot)
   at Altiris.NS.ClientMessaging.EventQueueDispatcher.DispatchSlotThreadProc(Object)
   at System.Threading.ThreadHelper.ThreadStart(Object)

-----------------------------------------------------------------------------------------------------
Date: 12/13/2017 10:50:02 AM, Tick Count: 154750625 (1.18:59:10.6250000), Size: 3.32 KB
Process: AeXSvc (608), Thread ID: 406, Module: Altiris.NS.dll
Priority: 1, Source: Altiris.NS.ClientMessaging.EventQueueDispatcher.TryDispatch

 

Error 2:

Unable to get the package codebases for the specified packages, request:
agent=6e66fac2-89d8-4739-b346-32c262af281b, type=SoftwareDelivery

Unable to set security context, account missing: 00000000-0000-0000-0000-000000000000
   [Altiris.NS.Exceptions.Security.MissingSecurityEntityException @ Altiris.NS]
   at Altiris.NS.Security.SecurityContext.HandleContextException(Object identity, Exception ex, Boolean failWhenAccountMissing)
   at Altiris.NS.Security.SecurityContext..ctor(Guid accountGuid, Boolean failWhenAccountMissing)
   at Altiris.Resource.StandardResources.SiteServiceRelationsCache.LoadResourceTargetManuallyAssignedCache()
   at Altiris.Resource.StandardResources.SiteSubnetServiceCacheController.CacheProxy`1.get_Value()
   at Altiris.NS.StandardItems.SiteServer.SiteServiceLocator.GetSiteServiceIdsByManualAssignment(Guid resourceId, SiteServiceController siteServiceType)
   at Altiris.NS.StandardItems.SiteServer.PackageServer.PackageInfoProvider.GetIntranetCodebases(ParsedPackageInfoDetailsRequest req)

Exception logged from:
   at Altiris.NS.StandardItems.SiteServer.PackageServer.PackageInfoProvider.GetIntranetCodebases(Altiris.NS.StandardItems.SoftwareDelivery.PackageManager+ParsedPackageInfoDetailsRequest)
   at Altiris.NS.StandardItems.SiteServer.PackageServer.PackageInfoProvider.GetPackageInfoTry(Altiris.NS.StandardItems.SoftwareDelivery.PackageManager+ParsedPackageInfoDetailsRequest)
   at Altiris.NS.ContextManagement.<>c__DisplayClass16<T>.<PerformWithDeadlockRetry>b__15(Altiris.Database.IDatabaseContext)
   at Altiris.Database.DatabaseContext<T>.RetryAction(Int32, Boolean, Altiris.Common.Delegates.Getter<Altiris.Database.IDatabaseContext>, System.Action<Altiris.Database.IDatabaseContext>, System.Action<Altiris.Database.DeadlockRetryArgs>, Altiris.Database.DeadlockRetryArgs&, Exception&, Boolean)
   at Altiris.Database.DatabaseContext<T>.PerformWithDeadlockRetryHelper(Int32, Boolean, Altiris.Common.Delegates.Getter<Altiris.Database.IDatabaseContext>, System.Action<Altiris.Database.IDatabaseContext>, System.Action<Altiris.Database.DeadlockRetryArgs>, Boolean)
   at Altiris.Database.DatabaseContext<T>.PerformWithDeadlockRetry(Int32, Boolean, System.Nullable<System.Data.IsolationLevel>, Boolean, System.Action<Altiris.Database.IDatabaseContext>, System.Action<Altiris.Database.DeadlockRetryArgs>)
   at Altiris.NS.StandardItems.SiteServer.PackageServer.PackageInfoProvider.GetPackageInfo(Altiris.NS.StandardItems.SoftwareDelivery.PackageManager+ParsedPackageInfoDetailsRequest, Boolean&, Boolean&, Guid&)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageManager.GetPackageInfoDetails(Altiris.NS.StandardItems.SoftwareDelivery.PackageManager+ParsedPackageInfoDetailsRequest)
   at Altiris.Web.NS.Agent.GetPackageInfoHandler.HandleRequest(Altiris.NS.StandardItems.SoftwareDelivery.PackageManager, Altiris.Web.NS.Agent.GetPackageInfoHandler+GetPackageInfoData)
   at Altiris.NS.WebHandlers.AltirisHttpHandlerBase<T>.ProcessRequest(System.Web.HttpContext, T, Int32)
   at Altiris.NS.WebHandlers.AltirisHttpHandlerBase<T>.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

HTTP [GET]: http://MySMP.domain.local/Altiris/NS/Agent/GetPackageInfo.aspx?xml=<request resource="{6E66FAC2-89D8-4739-B346-32C262AF281B}" version="1" type="codebases" compress="1" totalTime="602" totalFailureTime="602">
<packages>
 <package guid="{FCA43D84-12DA-C3AF-2F5B-2C4E0E547C30}"/>
</packages>
<addresses>
 <address ip="10.100.17.23"/>
</addresses>
</request>

ip: [10.100.17.23]; x-sma-version: [8.1.5641.0];
response: [200 OK]; x-smp-nsversion: [8.1.4528.0];

-----------------------------------------------------------------------------------------------------
Date: 12/13/2017 11:02:54 AM, Tick Count: 155523046 (1.19:12:03.0460000), Size: 5.07 KB
Process: w3wp (3352), Thread ID: 274, Module: Altiris.NS.StandardItems.dll
Priority: 1, Source: Altiris.NS.StandardItems.SiteServer.PackageServer.PackageInfoProvider.GetIntranetCodebases

Cause

In this particular instance, the customer had a failed repair of his SMP Server. Some configuration fails didn't properly add the required references needed for his security context.

Environment

ITMS 8.1 RU4

Resolution

Since a repair on the SMP failed previously, we ran a re-configure of the SMP and its RU version using SIM:

  1. Open SIM
  2. Click on "Repair installed products"
  3. Select "Reconfigure installed products". Click Next.
  4. Select "Symantec Management Platform 8.1 RU4" (or whatever Roll Up you have). Click Next.
  5. Click Configure and let the repair to finish.