locked
WSUS first syncro not function RRS feed

  • Question

  • I have installed WSUS3.0 SP2 over a W2K3 SP1 server.
    I do wizard but at first syncro with microsoft update, with direct connection no proxy, i obtain "The synchronization with upstream server of microsoft Update was canceled"

    After i see the log files and obtain this:
    2009-09-24 12.06.17.153 UTC Change w3wp.5 AdminDataAccess.SetSubscription Server subscription has been set
    2009-09-24 12.06.17.168 UTC Info w3wp.5 EventLogEventReporter.ReportEvent EventId=389,Type=Information,Category=Synchronization,Message=Synchronization settings were modified.
    2009-09-24 12.06.17.324 UTC Change w3wp.5 AdminDataAccess.ExecuteSPSetConfiguration WSUS configuration has been changed
    2009-09-24 12.06.17.731 UTC Info w3wp.14 SusEventDispatcher.TriggerEvent TriggerEvent called for NotificationEventName: ConfigurationChange, EventInfo: ConfigurationChange
    2009-09-24 12.06.17.793 UTC Info w3wp.31 ThreadEntry ThreadHelper.ThreadStart
    2009-09-24 12.06.17.793 UTC Info w3wp.31 SusEventDispatcher.DispatchManagerWorkerThreadProc DispatchManager Worker Thread Processing NotificationEvent: ConfigurationChange
    2009-09-24 12.06.17.793 UTC Info w3wp.31 ChangeNotificationDispatcher.InternalEventHandler Get event ConfigurationChange from dispatchmanager
    2009-09-24 12.06.17.793 UTC Info w3wp.13 Client.OnConfigurationChange Creating a new ClientImplementation because the DB configuration changed
    2009-09-24 12.06.17.793 UTC Info w3wp.13 ClientImplementation..ctor Initializing ClientWebService ProcessID = 5520, Process Start Time = 24/09/2009 13.16.00, Product Version = 3.2.7600.226
    2009-09-24 12.06.17.809 UTC Info w3wp.13 AuthorizationManager.GetUpstreamServerUriHeader Found config says USS is MU site
    2009-09-24 12.06.19.090 UTC Info WsusService.7 SusEventDispatcher.TriggerEvent TriggerEvent called for NotificationEventName: CatalogSyncAgent, EventInfo:
    2009-09-24 12.06.19.090 UTC Info WsusService.24 SusEventDispatcher.DispatchManagerWorkerThreadProc DispatchManager Worker Thread Processing NotificationEvent: CatalogSyncAgent
    2009-09-24 12.06.19.106 UTC Info WsusService.7 SusEventDispatcher.TriggerEvent TriggerEvent called for NotificationEventName: ConfigurationChange, EventInfo: ConfigurationChange
    2009-09-24 12.06.19.106 UTC Info WsusService.24 SusEventDispatcher.DispatchManagerWorkerThreadProc DispatchManager Worker Thread Processing NotificationEvent: ConfigurationChange
    2009-09-24 12.06.19.137 UTC Info WsusService.10 CatalogSyncAgentCore.SyncUpdatesOutsideSubscription sync'ing 0 updates with catalog site flag
    2009-09-24 12.06.19.168 UTC Info WsusService.10 EventLogEventReporter.ReportEvent EventId=382,Type=Information,Category=Synchronization,Message=A manual synchronization was started.
    2009-09-24 12.06.19.184 UTC Error WsusService.10 ReportingDatabaseAccess.AddReportingEventBatchToDatabase Error occurred while writing events to the database. Exception: System.UnauthorizedAccessException: Access to the temp directory is denied.  Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location.
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type)
       at Microsoft.UpdateServices.Internal.DatabaseAccess.EventHistoryTableRow.ConvertStringCollectionToXml(StringCollection collection)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.ConvertEventBatchToXml(ReportingEvent[] eventBatch, Int32& acceptedEventCount)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.ExecuteSPAddReportingEvent(ReportingEvent[] eventBatch, Boolean doUpdateIdValidation, Boolean doSummarization)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.AddReportingEventBatchToDatabase(ReportingEvent[] eventBatch, Boolean doUpdateIdValidation, Boolean doSummarization)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.AddReportingEventBatchToDatabase(ReportingEvent[] eventBatch, Boolean doUpdateIdValidation, Boolean doSummarization)
       at Microsoft.UpdateServices.Internal.Reporting.LocalServerEventReporter.ReportEvent(ReportingEvent reportingEvent)
       at Microsoft.UpdateServices.Internal.Reporting.EventReporter.ReportEvent(ReportingEvent reportingEvent)
       at Microsoft.UpdateServices.Internal.BaseApi.SubscriptionEvent.GenerateEvent(String userName, WsusEventId eventId, WsusEventSourceComponent sourceComponent, SynchronizationError error, Exception errorException, SynchronizationUpdateErrorInfoCollection updateErrors)
       at Microsoft.UpdateServices.Internal.BaseApi.SubscriptionEvent.GenerateEvent(WsusEventId eventId, WsusEventSourceComponent sourceComponent, SynchronizationError error, Exception errorException, SynchronizationUpdateErrorInfoCollection updateErrors)
       at Microsoft.UpdateServices.Internal.BaseApi.SubscriptionEvent.GenerateEvent(WsusEventId eventId, WsusEventSourceComponent sourceComponent, SynchronizationError error, Exception errorException)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CatalogSyncThreadProcess()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.19.199 UTC Info WsusService.10 AuthorizationManager.GetUpstreamServerUriHeader Found config says USS is MU site
    2009-09-24 12.06.19.215 UTC Error WsusService.10 AuthorizationManager.LoadAuthorizationPlugIns Failed to initialize authorization plugin Microsoft.UpdateServices.Internal.Authorization.DownstreamServerAuthorizationPlugInAccess to the temp directory is denied.  Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location.

       at Microsoft.UpdateServices.Internal.Authorization.AuthorizationManager.LoadAuthorizationPlugIns(AllConfigurationTableRows configuration, Hashtable groupAuthTable)
       at Microsoft.UpdateServices.Internal.Authorization.AuthorizationManager.Load()
       at Microsoft.UpdateServices.Internal.Authorization.AuthorizationManager..ctor()
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CatalogSyncThreadProcess()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.19.231 UTC Error WsusService.10 CatalogSyncAgentCore.ExecuteSyncProtocol System.UnauthorizedAccessException: Access to the temp directory is denied.  Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location.
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[] mappings, Type type)
       at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
       at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
       at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
       at Microsoft.UpdateServices.Internal.Authorization.DownstreamServerAuthorizationProxy..ctor(WebProxy webProxy)
       at Microsoft.UpdateServices.Internal.Authorization.DownstreamServerAuthorizationPlugIn.Init(Byte[] data, AuthorizationManager authManager)
       at Microsoft.UpdateServices.Internal.Authorization.AuthorizationManager.LoadAuthorizationPlugIns(AllConfigurationTableRows configuration, Hashtable groupAuthTable)
       at Microsoft.UpdateServices.Internal.Authorization.AuthorizationManager.Load()
       at Microsoft.UpdateServices.Internal.Authorization.AuthorizationManager..ctor()
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CatalogSyncThreadProcess()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.19.231 UTC Info WsusService.10 CatalogSyncAgentCore.UpdateSyncResultAndGenerateReportingEvent CatalogSyncThreadProcess: report subscription Undefined error class or Success
    2009-09-24 12.06.19.246 UTC Info WsusService.10 EventLogEventReporter.ReportEvent EventId=386,Type=Error,Category=Synchronization,Message=Synchronization failed. Reason: Access to the temp directory is denied.  Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location..
    2009-09-24 12.06.19.246 UTC Error WsusService.10 ReportingDatabaseAccess.AddReportingEventBatchToDatabase Error occurred while writing events to the database. Exception: System.UnauthorizedAccessException: Access to the temp directory is denied.  Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location.
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type)
       at Microsoft.UpdateServices.Internal.DatabaseAccess.EventHistoryTableRow.ConvertStringCollectionToXml(StringCollection collection)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.ConvertEventBatchToXml(ReportingEvent[] eventBatch, Int32& acceptedEventCount)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.ExecuteSPAddReportingEvent(ReportingEvent[] eventBatch, Boolean doUpdateIdValidation, Boolean doSummarization)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.AddReportingEventBatchToDatabase(ReportingEvent[] eventBatch, Boolean doUpdateIdValidation, Boolean doSummarization)
       at Microsoft.UpdateServices.Internal.ReportingDatabaseAccess.AddReportingEventBatchToDatabase(ReportingEvent[] eventBatch, Boolean doUpdateIdValidation, Boolean doSummarization)
       at Microsoft.UpdateServices.Internal.Reporting.LocalServerEventReporter.ReportEvent(ReportingEvent reportingEvent)
       at Microsoft.UpdateServices.Internal.Reporting.EventReporter.ReportEvent(ReportingEvent reportingEvent)
       at Microsoft.UpdateServices.Internal.BaseApi.SubscriptionEvent.GenerateEvent(String userName, WsusEventId eventId, WsusEventSourceComponent sourceComponent, SynchronizationError error, Exception errorException, SynchronizationUpdateErrorInfoCollection updateErrors)
       at Microsoft.UpdateServices.Internal.BaseApi.SubscriptionEvent.GenerateEvent(WsusEventId eventId, WsusEventSourceComponent sourceComponent, SynchronizationError error, Exception errorException, SynchronizationUpdateErrorInfoCollection updateErrors)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.UpdateSyncResultAndGenerateReportingEvent(Boolean isStartEventReported)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CleanupAfterSync(DateTime currentSubscriptionStartTime, Boolean isStartEventReported, Boolean didRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CatalogSyncThreadProcess()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.19.246 UTC Error WsusService.10 CatalogSyncAgentCore.CleanupAfterSync Unable to set Last Run Information because Subscription is not loaded
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CleanupAfterSync(DateTime currentSubscriptionStartTime, Boolean isStartEventReported, Boolean didRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.CatalogSyncThreadProcess()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.19.246 UTC Info WsusService.33 CatalogSyncAgent.WaitUntilSyncFinishedOrCancelled Agent signalled done.
    2009-09-24 12.06.19.246 UTC Info WsusService.33 CatalogSyncAgent.SetSubscriptionStateWithRetry Firing event SyncFailToStart...
    2009-09-24 12.06.19.246 UTC Info WsusService.33 CatalogSyncAgent.WakeUpWorkerThreadProc Found no more jobs. CatalogSyncAgent quits but will run rollup before terminating ...
    2009-09-24 12.06.19.262 UTC Info WsusService.33 CatalogSyncAgent.UpdateServerHealthStatusBasedOnError ServerHealth: Updating Server Health for Component: CatalogSyncAgent, Marking as Not Running
    2009-09-24 12.06.21.324 UTC Info w3wp.15 SusEventDispatcher.TriggerEvent TriggerEvent called for NotificationEventName: ConfigurationChange, EventInfo: ConfigurationChange
    2009-09-24 12.06.21.324 UTC Info w3wp.30 ThreadEntry ThreadHelper.ThreadStart
    2009-09-24 12.06.21.324 UTC Info w3wp.30 SusEventDispatcher.DispatchManagerWorkerThreadProc DispatchManager Worker Thread Processing NotificationEvent: ConfigurationChange
    2009-09-24 12.06.21.324 UTC Info w3wp.16 SusEventDispatcher.RegisterEventHandler RegisterEventHandler called for NotificationEventName: ConfigurationChange
    2009-09-24 12.06.21.340 UTC Info w3wp.16 AuthorizationManager.GetUpstreamServerUriHeader Found config says USS is MU site
    2009-09-24 12.06.21.559 UTC Info w3wp.18 SusEventDispatcher.TriggerEvent TriggerEvent called for NotificationEventName: ConfigurationChange, EventInfo: ConfigurationChange
    2009-09-24 12.06.21.559 UTC Info w3wp.32 ThreadEntry ThreadHelper.ThreadStart
    2009-09-24 12.06.21.559 UTC Info w3wp.32 SusEventDispatcher.DispatchManagerWorkerThreadProc DispatchManager Worker Thread Processing NotificationEvent: ConfigurationChange
    2009-09-24 12.06.21.574 UTC Info w3wp.32 AuthorizationManager.GetUpstreamServerUriHeader Found config says USS is MU site
    2009-09-24 12.06.24.106 UTC Info WsusService.7 SusEventDispatcher.TriggerEvent TriggerEvent called for NotificationEventName: RollupAgent, EventInfo:
    2009-09-24 12.06.24.106 UTC Info WsusService.12 SusEventDispatcher.DispatchManagerWorkerThreadProc DispatchManager Worker Thread Processing NotificationEvent: RollupAgent
    2009-09-24 12.06.26.246 UTC Info WsusService.27 RollupEventReporter.BuildReportingServiceUrl Found config says USS is MU site
    2009-09-24 12.06.26.309 UTC Error WsusService.27 ClassFactory.CreateInstance Received TargetInvocationException from ClassFactory call: Exception has been thrown by the target of an invocation.
       at Microsoft.UpdateServices.Internal.ClassFactory.CreateInstance(Type type, Object[] args)
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupEventReporter.GetWebServiceProxy(UpdateServerConfiguration config, WebServiceCommunicationHelper webServiceHelper)
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupEventReporter..ctor(UpdateServerConfiguration config, RollupStatusManager statusManager)
       at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
       at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
       at Microsoft.UpdateServices.Internal.ClassFactory.CreateInstance(Type type, Object[] args)
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupAgent.WakeUpWorkerThreadProc()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.26.309 UTC Error WsusService.27 ClassFactory.CreateInstance Received TargetInvocationException from ClassFactory call: Exception has been thrown by the target of an invocation.
       at Microsoft.UpdateServices.Internal.ClassFactory.CreateInstance(Type type, Object[] args)
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupAgent.WakeUpWorkerThreadProc()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.26.309 UTC Error WsusService.27 MicrosoftUpdateRollup.DoRollup Error found when running rollup: System.UnauthorizedAccessException: Access to the temp directory is denied.  Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location.
       at Microsoft.UpdateServices.Internal.ClassFactory.CreateInstance(Type type, Object[] args)
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupAgent.WakeUpWorkerThreadProc()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.26.309 UTC Error WsusService.27 MicrosoftUpdateRollup.DoRollup System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupAgent.WakeUpWorkerThreadProc()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-09-24 12.06.26.309 UTC Error WsusService.27 MicrosoftUpdateRollup.DoRollup System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.MicrosoftUpdateRollup.DoRollup()
       at Microsoft.UpdateServices.Internal.Reporting.Rollup.RollupAgent.WakeUpWorkerThreadProc()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    This return error about read/writing permission for NETWORK SERVICE in temp directory but i have already NETWORK user with FULL CONTROLL over this 3 directory:
    %windir%/TEMP
    %user profile%/local settings/TEMP
    on root over all unit that contain only DB and update files


    Fabrizio T.
    Thursday, September 24, 2009 12:25 PM

Answers

  • Here's the cause:

    Access to the temp directory is denied.
    Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.

    As documented in the WSUS Operations Guide in the section Issues with Update Storage


    • The temporary ASP.NET directory (%windir%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files) must have Full Control permissions for the NT Authority\Network Service account.
    • The %TEMP% directory (usually %windir%\TEMP) must have Full Control permissions for the NT Authority\Network Service account.

    Lawrence Garvin, M.S., MCITP:EA, MCDBA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2009)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Thursday, September 24, 2009 2:49 PM

All replies

  • Here's the cause:

    Access to the temp directory is denied.
    Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.

    As documented in the WSUS Operations Guide in the section Issues with Update Storage


    • The temporary ASP.NET directory (%windir%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files) must have Full Control permissions for the NT Authority\Network Service account.
    • The %TEMP% directory (usually %windir%\TEMP) must have Full Control permissions for the NT Authority\Network Service account.

    Lawrence Garvin, M.S., MCITP:EA, MCDBA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2009)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Thursday, September 24, 2009 2:49 PM
  • As noted, the issue, fundamentally, is one of file system permissions . . .

    > 2009-09-24 12.06.19.184 UTC Error WsusService.10 ReportingDatabaseAccess.AddReportingEventBatchToDatabase Error occurred
    > while writing events to the database. Exception: System.UnauthorizedAccessException: Access to the temp directory is denied.
    > Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the
    > temp directory.  CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access
    > to system temp directory, you will not be able to compile.  Use Path.GetTempPath() API to find out the temp directory location.

    But in this case, it's not the %TEMP% folder that's specifically at issue, but more likely the Temporary ASP.NET Files folder. The process was attempting to perform a process requiring code compiliation, which is normally done in the Temporary ASP.NET Files folder. As noted the NT AUTHORITY\Network Service account did not have access, and apparently neither did the account being used to install WSUS.


    As documented in the WSUS Operations Guide in the section Issues with Update Storage

    The temporary ASP.NET directory (%windir%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files) must have Full Control permissions for the NT Authority\Network Service account.

    Lawrence Garvin, M.S., MCITP:EA, MCDBA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2009)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Thursday, September 24, 2009 2:55 PM
  • I verify if the correct autorization is present and i found that on all path but not solve a problem. I probe a reinstall, unistall/install and use of different site from default in IIS but doesen't function a synchro. All other function correctly. What do i could?
    Fabrizio T.
    Friday, September 25, 2009 11:29 AM
  • I found a problem and i solve.
    In DCOM panel i foud a service WSUS and i changed to administrator autorization after ok i reselect a default profile, at the same of initial value.

    After this all function.
    Fabrizio T.
    Friday, September 25, 2009 2:00 PM
  • So the remaining question, then, would be: Who's been "customizing" DCOM permissions on the server? :-)

    I'm glad you found that solution; I would have never considered DCOM permissions as the cause for a synchronization failure!


    Lawrence Garvin, M.S., MCITP:EA, MCDBA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2009)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Saturday, September 26, 2009 9:45 PM
  • I not remember customization, but i could wrong remember.
    For all support thanks.
    Fabrizio T.
    Monday, September 28, 2009 5:43 AM
  • I'm using Windows 2008 R2 x64 and WSUS 3.0 SP2 and have to same issue on the first sync.  All mentioning directories are set for Network Service.  WSUSSERVICE under DCOM are allow for administrators.  Fabrizio, please let me know steps on how to change administrator authorization.  Note Launch and Activation Persions, Access Permissions, and Configuration Permissions are allow for local administrators group.  Lawrence, any ideas?

    -Sam

    Wednesday, October 13, 2010 8:04 PM
  • I'm using Windows 2008 R2 x64 and WSUS 3.0 SP2 and have to same issue on the first sync.  All mentioning directories are set for Network Service.  WSUSSERVICE under DCOM are allow for administrators.  Fabrizio, please let me know steps on how to change administrator authorization.  Note Launch and Activation Persions, Access Permissions, and Configuration Permissions are allow for local administrators group.  Lawrence, any ideas?

    -Sam


    WSUS will install and run without modification on any fresh installation of Windows Server 2003, Windows Server 2008, or Windows Server 2008 R2 system, provided that the .NET Framework v2.0 (on Win2003) and IIS (v6 on Win2003, v7 on Win2008) is installed in accordance with the documented procedures.

    So the real question here is this: What was *changed* on your Operating System installation PRIOR to installing WSUS?

    In most of these type incidents, the root cause is usually traced back to administrators 'tweaking the security' on the operating system prior to installing WSUS.


    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2010)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Wednesday, October 13, 2010 9:39 PM