Advertised programs may not run after you restart a Systems Management Server Client computer (892685)



The information in this article applies to:

  • Microsoft Systems Management Server 2003

SYMPTOMS

When you restart a Microsoft Systems Management Server (SMS) 2003 client computer while either of the following conditions is true, the advertised program may not run on the SMS client computer:
  • The SMS Agent host service is processing an advertisement policy.
  • The SMS Agent host service is preparing to run an advertised program.
This problem may occur even when the advertisement is mandatory.

When you experience this problem, 80040202 or 80080008 errors may be logged in the Execmgr.log file or in the DataTransferService.log file on the SMS client computer.

For a more comprehensive list of the most frequently seen log entries for this issue, see the "More Information" section.

Note This problem may also occur for policies that are not advertisement policies. For example, if you use the SMS Administrator Console to make a configuration change on an SMS client computer, the new policy for this configuration change may not be applied to an SMS client computer that is experiencing this problem.

CAUSE

This problem occurs because the SMS Data Transfer Services (DTS) and the SMS Execution Manager on the SMS client computer may not be able to preserve their state after an SMS client computer is restarted.

When the SMS client computer shuts down because of a pending restart, the SMS Agent Host (CCMexec) service that is running the SMS client computer stops. Therefore, Windows Management Instrumentation (WMI) and other components within the SMS Agent Host service may not be available to finish processing the advertisement policy or running the advertised program. The state of the SMS Agent components is not preserved before the pending restart. Therefore, when the SMS client computer restarts, the partially processed advertised program information is lost.

WORKAROUND

To work around this problem, create a new advertisement for the same package. When you do this, only client computers that have not yet run the advertised program will run the new advertised program.

To create a new advertisement for the same package, follow these steps:
  1. Log on to a computer that has the SMS Administrator Console installed by using an account that has administrative permissions.
  2. Click Start, point to Programs, point to Systems Management Server, and then click Administrator Console.
  3. In the SMS Administrator Console, expand Site Database (SiteName-SiteCode), right-click Advertisements, click New, and then click Advertisement.
  4. In the Advertisement Properties dialog box, in the Name box, type a descriptive name.
  5. Click the list next to Package, and then select the package that you want to re-advertise.
  6. Click the list next to Program, and then select the program that you want to re-advertise.
  7. Click Browse.
  8. In the Browse Collection dialog box, click the collection that you want, and then click OK.
  9. Click the Schedule tab, select the schedule that you want, and then click OK.
  10. Click the Advanced Client tab, select the options that you want, and then click OK.

MORE INFORMATION

When this problem occurs, information that is similar to the following may be logged in the Execmgr.log file.

Note The Execmgr.log file is located in the \Winnt\System32\Ccm\Logs folder on the SMS client computer. However, if the SMS client computer is also an SMS management point, the Execmgr.log file is located in the SMS_CCM\Logs folder.

<![LOG[Creating mandatory request for advert AN220083, program TestProgram, package AN200030
Failed to open to WMI namespace '\\.\root\CCM' (80080008)

Raising event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistWaitingContentEvent
{ AdvertisementId = " AdvertisementId"; ClientID = "ClientGUID_ID"; DateTime = "20041117010522.815000+000"; MachineName = "ComputerName"; PackageName = "PackageName"; PackageVersion = "6"; ProcessID = 1212; ProgramName = "ProgramName"; ThreadID = 2060; };

Failed to submit event to the Status Agent. Attempting to create pending event.

Raising pending event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistWaitingContentEvent
{ AdvertisementId = " AdvertisementId"; ClientID = "ClientGUID_ID"; DateTime = "20041117010522.815000+000"; MachineName = "ComputerName"; PackageName = "PackageName"; PackageVersion = "6"; ProcessID = 1212; ProgramName = "ProgramName"; ThreadID = 2060; };

Failed to open to WMI namespace '\\.\root\CCM\Events' (8007045b)
Failed to submit pending event to WMI.
Failed to raise SoftDistWaitingContentEvent event for program ProgramName
Execution Request for program ProgramName state change from WaitingDependency to WaitingContent
Failed to open to WMI namespace '\\.\root\ccm\softmgmtagent' (8007045b) CExecutionRequest::Persist Could not connect to namespace \\.\root\ccm\softmgmtagent 0x8007045b



Additionally, information that is similar to the following may be logged in the DataTransferService.log file.

Note The DataTransferService.log file is located in the \Winnt\System32\Ccm\Logs folder on the SMS client computer. However, if the SMS client computer is also an SMS management point, the DataTransferService.log file is located in the SMS_CCM\Logs folder.

<![LOG[spJob2->SetCredentials(&bgCred), HRESULT=80080008 (e:\nts\sms\framework\ccmdts\bitshelper.cpp,785)]LOG]!><time="20:35:49.003+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="1484" file="bitshelper.cpp:785">

<![LOG[DTSJob {391DEA89-A46D-4851-91D8-913F0E4D49D7} encountered error setting BITS job to use default credentials (0x80080008).]LOG]!><time="20:35:49.003+540" date="12-08-2004" component="DataTransferService" context="" type="3" thread="1484" file="dtsjob.cpp:1526">

<![LOG[hrNull, HRESULT=80080008 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,1530)]LOG]!><time="20:35:49.003+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="1484" file="dtsjob.cpp:1530">

<![LOG[hrDownload, HRESULT=80080008 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,1404)]LOG]!><time="20:35:49.003+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="1484" file="dtsjob.cpp:1404">

<![LOG[DTSJob {391DEA89-A46D-4851-91D8-913F0E4D49D7} in state 'Error'.]LOG]!><time="20:35:49.003+540" date="12-08-2004" component="DataTransferService" context="" type="1" thread="1484" file="dtsjob.h:112">

<![LOG[ProcessDownload(), HRESULT=80080008 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,1851)]LOG]!><time="20:35:49.019+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="1484" file="dtsjob.cpp:1851">

<![LOG[spMessaging->SendMessageW( spMessage, CCM_MESSAGING_DELIVERMODE_RECOVERABLE, 0), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\notification.cpp,58)]LOG]!><time="20:35:49.019+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="1484" file="notification.cpp:58">

<![LOG[SendNotifyError( sNotifyEndpoint, sJobID, sNotifyData, hrStatusCode, sStatusMessage ), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,680)]LOG]!><time="20:35:49.019+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="1484" file="dtsjob.cpp:680">

<![LOG[Error sending callback notification for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time="20:35:49.019+540" date="12-08-2004" component="DataTransferService" context="" type="3" thread="1484" file="dtsjob.cpp:693">

<![LOG[Deleting persisted data for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time="20:35:49.019+540" date="12-08-2004" component="DataTransferService" context="" type="1" thread="1484" file="jobstate.cpp:193">

<![LOG[spMessaging->SendMessageW( spMessage, CCM_MESSAGING_DELIVERMODE_RECOVERABLE, 0), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\notification.cpp,58)]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="204" file="notification.cpp:58">

<![LOG[SendNotifyError( sNotifyEndpoint, sJobID, sNotifyData, hrStatusCode, sStatusMessage ), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,680)]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="204" file="dtsjob.cpp:680">

<![LOG[Error sending callback notification for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="3" thread="204" file="dtsjob.cpp:693">

<![LOG[Deleting persisted data for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="1" thread="204" file="jobstate.cpp:193">

<![LOG[it!=m_mapJobs.end(), HRESULT=80040215 (e:\nts\sms\framework\ccmdts\globalstate.cpp,96)]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="204" file="globalstate.cpp:96">

<![LOG[spGlobalState->RemoveJob(guidID, &spJob), HRESULT=80040215 (e:\nts\sms\framework\ccmdts\jobstate.cpp,196)]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="204" file="jobstate.cpp:196">

<![LOG[DeleteInstance( vValue.getBstr(), pContext ), HRESULT=80041002 (e:\nts\sms\framework\core\ccmcore\wminamespace.cpp,711)]LOG]!><time="20:35:49.034+540" date="12-08-2004" component="DataTransferService" context="" type="0" thread="204" file="wminamespace.cpp:711">

<![LOG[spNS.DeleteInstance(spJobData), HRESULT=80041002 (e:\nts\sms\framework\ccmdts\jobstate.cpp,199)]

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MinorLast Reviewed:6/13/2005
Keywords:kbtshoot kbprb KB892685 kbAudITPRO