Endpoint Management User Group (Osterreich, Schweiz, Deutschland)

 View Only
  • 1.  Site Server Settings Policies cannot be created

    Posted Aug 28, 2017 04:11 AM

    Hello,

    We have a bit trouble with one of our environments. We upgraded from 7.6 to 8.1, and now our site server doesn't work anymore. There are several error messages in the log saying 'unable to generate policy xml' for the Site Server Settings Client Policy, and, maybe as a consequence of that, for package server config. And when I try to open Package Service Settings in the console, I get an error message as well.

    We're running this test environment on a virtual 2008 R2 Server. All Agent Plugins are upgraded. I tried a config repair with the SIM, that didn't solve the issue.

    Does anybody here had same problems and maybe can help?

    Thanks in advance! Here are some log entries you maybe can deal with:

    <event date="08/23/2017 15:21:03.2143854 +02:00" severity="1" hostName="VI-TEST-SMP" source="Altiris.NS.AgentManagement.PolicyRequest.BuildPolicyXml" module="Altiris.NS.dll" process="w3wp" pid="5468" thread="163" tickCount="84740203"><![CDATA[Unable to generate policy XML for item: 'Einstellungen für Site Server: Clientrichtlinie' (9500a868-a21d-4d1c-acc0-0045873b1289), resource: f7d050f8-6108-4fd9-8ba9-75b9f389ea78
    
    Object reference not set to an instance of an object.
       [System.NullReferenceException @ Altiris.NS.StandardItems]
       at Altiris.NS.StandardItems.SiteServer.SiteServerSettingsClient.OnBuildClientConfigXml(Guid workstationGuid, XmlTextWriter xmlBuilder)
       at Altiris.NS.StandardItems.Policies.ClientConfigPolicy.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter xmlBuilder)
       at Altiris.NS.StandardItems.Policies.ClientConfigPolicy.<>c__DisplayClasse.<GetConfigXml>b__d(XmlTextWriter xwr)
       at Altiris.Profiling.Support.XmlFormatOps.ToXml(Action`1 fu, String root, Boolean indented)
       at Altiris.NS.StandardItems.Policies.ClientConfigPolicy.GetConfigXml(Guid resourceGuid, String requestXml)
       at Altiris.NS.AgentManagement.PolicyRequest.BuildPolicyXml(LoadIdentData data, IItem item)
       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.AgentManagement.PolicyRequest.BuildPolicyXml(LoadIdentData data, IPolicyCacheEntryBuilder builder, ISet`1& requiredPermissions)
    
    Exception logged from: 
       at Altiris.NS.AgentManagement.PolicyRequest.BuildPolicyXml(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.AgentManagement.PolicyCache+IPolicyCacheEntryBuilder, Altiris.Common.Collections.Generic.ISet`1[System.Guid]&)
       at Altiris.NS.AgentManagement.PolicyRequest.BuildPolicy(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.AgentManagement.PolicyCache+IPolicyCacheEntryBuilder)
       at Altiris.NS.AgentManagement.PolicyRequest.GetPolicyByBuilder(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.AgentManagement.PolicyCache+IPolicyCacheEntry, Altiris.NS.AgentManagement.PolicyCache+EPolicyBuildState&)
       at Altiris.NS.AgentManagement.PolicyRequest.GetPolicy(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.Profiling.CodeProfiling.CodeProfiler)
       at Altiris.NS.AgentManagement.PolicyRequest.LoadIdentPolicy(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.Common.Collections.Generic.NullableDictionary<System.Guid,Altiris.NS.AgentManagement.PolicyRequest+PolicyPriority>, System.Collections.Generic.ICollection`1[System.Guid]&)
       at Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicies(Altiris.NS.AgentManagement.PolicyRequest+ParseRequestResult)
       at Altiris.NS.AgentManagement.PolicyRequest.GetPolicies(String, Boolean, String&)
       at Altiris.Web.NS.Agent.GetClientPoliciesHandler.HandleRequest(System.Web.HttpContext, Altiris.Web.NS.Agent.GetClientPoliciesHandlerData, Int32)
       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)
    
    User xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
    HTTP [POST]: http://vi-test-smp.ads-test.local/altiris/NS/Agent/GetClientPolicies.aspx
     ip: [xxx.xxx.xxx.xxx]; x-sma-version: [8.1.5276.0]; languages: [de-DE]; content-length: [2133];
     response: [200 OK]; x-smp-nsversion: [8.1.4528.0];
    ]]></event>
    
    <event date="08/23/2017 15:21:03.2300107 +02:00" severity="1" hostName="VI-TEST-SMP" source="Altiris.NS.StandardItems.PackageServer.PkgSvrEventPolicy.OnBuildClientConfigXml2" module="Altiris.NS.StandardItems.dll" process="w3wp" pid="5468" thread="163" tickCount="84740218"><![CDATA[Failed to generate package server config for: f7d050f8-6108-4fd9-8ba9-75b9f389ea78
    
    Object reference not set to an instance of an object.
       [System.NullReferenceException @ Altiris.NS.StandardItems]
       at Altiris.NS.StandardItems.PackageServer.PkgSvrEventPolicy.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter xmlBuilder)
    
    Exception logged from: 
       at Altiris.NS.StandardItems.PackageServer.PkgSvrEventPolicy.OnBuildClientConfigXml2(System.Guid, System.Xml.XmlNode, System.Xml.XmlTextWriter)
       at Altiris.NS.StandardItems.PackageServer.PkgSvrEventPolicy+<>c__DisplayClassc.<Altiris.NS.ItemManagement.IItemClientConfig4.GetConfigXml>b__b(System.Xml.XmlTextWriter)
       at Altiris.Profiling.Support.XmlFormatOps.ToXml(System.Action<System.Xml.XmlTextWriter>, String, Boolean)
       at Altiris.NS.StandardItems.PackageServer.PkgSvrEventPolicy.Altiris.NS.ItemManagement.IItemClientConfig4.GetConfigXml(Altiris.NS.ItemManagement.IClientConfigRequest)
       at Altiris.NS.AgentManagement.PolicyRequest.BuildPolicyXml(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.ItemManagement.IItem)
       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.AgentManagement.PolicyRequest.BuildPolicyXml(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.AgentManagement.PolicyCache+IPolicyCacheEntryBuilder, Altiris.Common.Collections.Generic.ISet`1[System.Guid]&)
       at Altiris.NS.AgentManagement.PolicyRequest.BuildPolicy(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.AgentManagement.PolicyCache+IPolicyCacheEntryBuilder)
       at Altiris.NS.AgentManagement.PolicyRequest.GetPolicyByBuilder(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.NS.AgentManagement.PolicyCache+IPolicyCacheEntry, Altiris.NS.AgentManagement.PolicyCache+EPolicyBuildState&)
       at Altiris.NS.AgentManagement.PolicyRequest.GetPolicy(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.Profiling.CodeProfiling.CodeProfiler)
       at Altiris.NS.AgentManagement.PolicyRequest.LoadIdentPolicy(Altiris.NS.AgentManagement.PolicyRequest+LoadIdentData, Altiris.Common.Collections.Generic.NullableDictionary<System.Guid,Altiris.NS.AgentManagement.PolicyRequest+PolicyPriority>, System.Collections.Generic.ICollection`1[System.Guid]&)
       at Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicies(Altiris.NS.AgentManagement.PolicyRequest+ParseRequestResult)
       at Altiris.NS.AgentManagement.PolicyRequest.GetPolicies(String, Boolean, String&)
       at Altiris.Web.NS.Agent.GetClientPoliciesHandler.HandleRequest(System.Web.HttpContext, Altiris.Web.NS.Agent.GetClientPoliciesHandlerData, Int32)
       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)
    
    User xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
    HTTP [POST]: http://vi-test-smp.ads-test.local/altiris/NS/Agent/GetClientPolicies.aspx
     ip: [xxx.xxx.xxx.xxx]; x-sma-version: [8.1.5276.0]; languages: [de-DE]; content-length: [2133];
     response: [200 OK]; x-smp-nsversion: [8.1.4528.0];
    ]]></event>
    
    <event date='08/25/2017 10:01:20.0580000 +02:00' severity='2' hostName='vi-test-site' source='Agent' module='AeXNSAgent.exe' process='AeXNSAgent.exe' pid='3092' thread='7596' tickCount='61291921' >
      <![CDATA[Failed to create object 'Altiris.AeXNSCPkgSvr': The object is not registered or is not present in the policy (0x8000401B)]]>
    </event>

     



  • 2.  RE: Site Server Settings Policies cannot be created

    Posted Aug 28, 2017 07:11 AM

    HI SHauck.

     

    This problem happens with only SS or all agents in your environment?

     

    Have you tried to delete the policies stored in the computer and then request the agent policy again? The path to delete is Program Files\Altiris\Altiris Agent\Client Policies. You can delete all files.

     

    And about install a new site server? Have o done that? What happens?

     

    Regards,



  • 3.  RE: Site Server Settings Policies cannot be created

    Posted Aug 28, 2017 08:09 AM

    As the policies that cannot be created are especially site server policies, I believe only site servers are affected (only one in this environment). Upgrade policies for site server agent plugins worked. Upgrade policies for clients are disabled at the moment, because the clients try to download packages from the site server, but the site server is not downloading packages from the NS, nor is the site server providing codebases, so the downloads for the clients fail. But the policy (Agent/Plugins Upgrade Policies) work.

    I reinstalled the site server completely new, that means, I uninstalled the Agent completely, cleaned up file system and registry and reinstalled the agent with a new guid. The problem still exists.



  • 4.  RE: Site Server Settings Policies cannot be created

    Posted Aug 28, 2017 09:21 AM

    Ok, I did a Complete Installation Repair via Installation Manager. Problem solved.