ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Failure running Report 'Windows Compliance by Update' (aa5a13f6-52ce-415c-ab72-6a718d848229). Please check the configuration of the query.

book

Article ID: 227228

calendar_today

Updated On:

Products

Client Management Suite

Issue/Introduction

Patch Management reports "Windows Compliance by Update" and "Windows Compliance by Bulletin" are failing to run and update.

Errors in the a.log files show the following:

Severity: 1
Date: 10/27/2021 12:18:52 PM
Tick Count: 87907468
Host Name: <SMPserver>
Process: w3wp (4952)
Thread: 1041
Module: Altiris.Reporting.UI.dll
Source: Altiris.Reporting.UI.ReportViewControl.OnLoad
Description: Failure running Report 'Windows Compliance by Update' (aa5a13f6-52ce-415c-ab72-6a718d848229). Please check the configuration of the query.

Timeout Expired: 'Windows Compliance by Update Query' (441f78f4-bc60-4ee5-b3b2-d1e0fa67a021)
   [Altiris.DataSource.Exceptions.DataSourceRunException @ Altiris.Reporting.DataSource]
   at Altiris.Reporting.DataSource.RawSqlDataSource.RunTry(IDatabaseContext ctx, String name, String sql)
   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 independentContext, Getter`1 getContext, Action`1 action, Action`1 retry)
   at Altiris.Reporting.DataSource.RawSqlDataSource.Run()
   at Altiris.Reporting.Report.Run()
   at Altiris.Reporting.UI.ReportViewControl.DataBind(Boolean raiseOnDataBinding, DataBindMode mode)
   at Altiris.Reporting.Controls.StandardReportViewControl.DataBind(Boolean raiseOnDataBinding, DataBindMode mode)
   at Altiris.Reporting.UI.ReportViewControl.OnLoad(EventArgs e)

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.
   [System.Data.SqlClient.SqlException @ .Net SqlClient Data Provider]
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)
   at Altiris.Reporting.DataSource.RawSqlDataSource.RunTry(IDatabaseContext ctx, String name, String sql)

SQL Exception details: code=-2

The wait operation timed out
   [System.ComponentModel.Win32Exception @ ]

Exception logged from: 
   at Altiris.Reporting.UI.ReportViewControl.OnLoad(EventArgs)
   at Altiris.Reporting.Controls.StandardReportViewControl.OnLoad(EventArgs)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisPage.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)

User [<Domain>\altiristdas1], Auth [<Domain>\CORETRD1], AppDomain [/LM/W3SVC/1/ROOT/Altiris/Reporting-6-132797409033587278]

HTTP [POST]: http://localhost/Altiris/Reporting/Report.aspx?Guid=aa5a13f6-52ce-415c-ab72-6a718d848229&ItemGuid=aa5a13f6-52ce-415c-ab72-6a718d848229&Parameters=VendorGuid:[00000000-0000-0000-0000-000000000000],DisplayMode:[all]&CallbackPageId=1de0445b01eb4ef785e8c1fe2658df3c&ReportContext=11120004-1df4-437e-a04b-9e9fa828700f
 ip: [::1]; languages: [es-MX]; content-length: [9815];
 response: [200 OK]; x-smp-nsversion: [8.5.3073.0];

and also :

Severity: 1
Date: 10/20/2021 10:47:15 AM
Tick Count: 3460487921
Host Name: <SMPserver>
Process: w3wp (19252)
Thread: 25
Module: Altiris.Reporting.UI.dll
Source: Altiris.Reporting.UI.ReportViewControl.OnLoad
Description: Failure running Report 'Windows Compliance by Bulletin' (6cc399cf-414a-4cc9-a180-d9ff2bfead35). Please check the configuration of the query.

Timeout Expired: 'Windows Compliance by Bulletin Query' (cf1fc48d-0c61-4f69-8ffb-bfbdc0843135)
   [Altiris.DataSource.Exceptions.DataSourceRunException @ Altiris.Reporting.DataSource]
   at Altiris.Reporting.DataSource.RawSqlDataSource.RunTry(IDatabaseContext ctx, String name, String sql)
   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 independentContext, Getter`1 getContext, Action`1 action, Action`1 retry)
   at Altiris.Reporting.DataSource.RawSqlDataSource.Run()
   at Altiris.Reporting.Report.Run()
   at Altiris.Reporting.UI.ReportViewControl.DataBind(Boolean raiseOnDataBinding, DataBindMode mode)
   at Altiris.Reporting.Controls.StandardReportViewControl.DataBind(Boolean raiseOnDataBinding, DataBindMode mode)
   at Altiris.Reporting.UI.ReportViewControl.OnLoad(EventArgs e)

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.
   [System.Data.SqlClient.SqlException @ .Net SqlClient Data Provider]
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)
   at Altiris.Reporting.DataSource.RawSqlDataSource.RunTry(IDatabaseContext ctx, String name, String sql)

SQL Exception details: code=-2

The wait operation timed out
   [System.ComponentModel.Win32Exception @ ]

Exception logged from: 
   at Altiris.Reporting.UI.ReportViewControl.OnLoad(EventArgs)
   at Altiris.Reporting.Controls.StandardReportViewControl.OnLoad(EventArgs)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisPage.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 [<Domain>\altiristdas1], Auth [<Domain>\CORETRD1], AppDomain [/LM/W3SVC/1/ROOT/Altiris/Reporting-5-132792139793600790]

HTTP [POST]: http://10.95.1.86/Altiris/Reporting/Report.aspx?Guid=6cc399cf-414a-4cc9-a180-d9ff2bfead35&ItemGuid=6cc399cf-414a-4cc9-a180-d9ff2bfead35&Parameters=Vendor:[9D5F6BB8-8ADF-49D1-9D84-2932CA46CE1E]&CallbackPageId=cbd17b34be564c30bb5d4f19232b73a4&ReportContext=5f8e4e5c-5924-4cc6-ba3a-6453a96bbe9c
 ip: [10.95.1.83]; languages: [es-MX]; content-length: [27100];
 response: [200 OK]; x-smp-nsversion: [8.5.3073.0];

with many of the following:

Severity: 1
Date: 10/22/2021 5:56:35 PM
Tick Count: 3659028875
Host Name: <SMPserver>
Process: w3wp (3972)
Thread: 11
Module: Altiris.NS.dll
Source: DbUtils.CreateConnection
Description: [5/5] SQL connection failed, current user=<Domain>\altiristdas1, total time=00:02:34.1727562

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
   [System.Data.SqlClient.SqlException @ .Net SqlClient Data Provider]
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Altiris.NS.Utilities.DbUtils.TryCreateConnection(String costring, Int32 retries, Int32 delay, Int32 add)

SQL Exception details: code=5

Access is denied
   [System.ComponentModel.Win32Exception @ ]

Exception logged from: 
   at Altiris.NS.Utilities.DbUtils.TryCreateConnection(String, Int32, Int32, Int32)
   at Altiris.NS.Utilities.DbUtils.CreateConnection(String, String, String, String)
   at Altiris.NS.Utilities.DbUtils.CreateConnection(String)
   at Altiris.NS.ContextManagement.AdminDatabaseContext.OpenDbConnection()
   at Altiris.Database.DatabaseContext<T>.Initialize(Boolean, System.Data.IsolationLevel)
   at Altiris.Database.DatabaseContext<T>.CreateFirstContext(Altiris.Database.ContextTransactionMode, System.Nullable<System.Data.IsolationLevel>, Altiris.Database.DatabaseContextStack<T>, Boolean)
   at Altiris.Database.DatabaseContext<T>.GetContextImpl(Altiris.Database.ContextTransactionMode, System.Nullable<System.Data.IsolationLevel>, Boolean)
   at Altiris.Database.DatabaseContext<T>.GetContext(Altiris.Database.ContextTransactionMode, System.Nullable<System.Data.IsolationLevel>, Boolean)
   at Altiris.Database.DatabaseContext<T>.GetContext()
   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.Security.AccountManagement.AccountDetailsCache.GetAccountGuid(String)
   at Altiris.NS.Security.AccountManagement.AccountDetailsCache.Get(System.Security.Principal.IIdentity, String&, Boolean)
   at Altiris.NS.Security.SecurityTrusteeProvider.GetCoreGroups(System.Security.Principal.WindowsIdentity, String&, String&, Boolean&, Boolean&)
   at Altiris.NS.Security.SecurityContextManager.SetContextData(System.Security.Principal.WindowsIdentity, Boolean, Boolean, String[], String[])
   at Altiris.NS.Threading.NSThreadPool.WorkerThreadStart(Altiris.Common.Threading.LocalThreadPool+LocalThreadPoolWorkerState, Object&)
   at Altiris.Common.Threading.LocalThreadPool.ThreadPoolProc(Object)
   at System.Threading.ThreadHelper.ThreadStart(Object)

User [<Domain>\altiristdas1], AppDomain [/LM/W3SVC/1/ROOT/Altiris/Reporting-8-132794141113467078]

 

Cause

Notification Server is unable to communicate with the SQL server.

Environment

Release: ITMS 8.x

 

Resolution

Resolve the communication issues between the Notification Server and the SQL server.