Microsoft KB Archive/909446

= FIX: The SNA Host Account Cache service and the SNA WinNT Account Synchronization service may not start automatically when you restart a domain controller that is running Windows Server 2003 =

Article ID: 909446

Article Last Modified on 7/26/2006

-

APPLIES TO


 * Microsoft Host Integration Server 2000 Standard Edition
 * Microsoft Host Integration Server 2000 Service Pack 1
 * Microsoft Host Integration Server 2000 Standard Edition

-





Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
The SNA Host Account Cache (SnaDatabase) service and the SNA WinNT Account Synchronization (SnaPMP) service are installed by the Microsoft Host Integration Server 2000 Setup program on a domain controller that is running Microsoft Windows Server 2003. When you restart this domain controller, the SnaDatabase service and the SnaPMP service may not start automatically. When this problem occurs, events that are similar to the following may be logged in the Application log: Event Type: Information

Event Source: SNA Host Security

Event ID: 42

Description:

This Windows NT Account Synchronization service is not the primary, service terminated normally. Only the primary Windows NT Account Synchronization service can be active in an NT domain.

ACTION No action is necessary. This event is normal on machines that have been configured to run a backup copy of the Windows NT Account Synchronization service.

Event Type: Information

Event Source: SNA Host Security

Event ID: 1325

Description:

Host Integration Server Host Account Cache Stopped.

Additionally, an event that is similar to the following may be logged in the System log: Event Type: Error

Event Source: Service Control Manager

Event ID: 7024

Description:

The SNA Host Account Cache service terminated with service-specific error 2147500036 (0x80004004).



CAUSE
The SnaDatabase service and the SnaPMP service do not start when the NetGetDCName function call returns an error. The NetGetDCName function call is used to locate the primary domain controller (PDC) emulator for the Microsoft Windows domain.

This problem may occur when the Windows Server 2003 Net Logon service enters a paused state during the directory service startup. During this time, the domain controller responds to netlogon ping requests with a &quot;netlogon paused&quot; response. This may cause the NetGetDCName function call to return an error.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Host Integration Server 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
After you apply this hotfix, you can configure the SnaDatabase service and the SnaPMP service to retry the NetGetDCName function call. This lets the SnaDatabase service and the SnaPMP service start automatically when you restart the domain controller that is running Windows Server 2003.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To specify the number of times that you want the SnaDatabase service and the SnaPMP service to retry the NetGetDCName function call and the delay between each attempt, you must configure the following registry entries. To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK. Locate the following subkey in the registry:

 Right-click HostSecurity, point to New, and then click Key. Type NetGetDcName, and then press ENTER. Right-click NetGetDcName, point to New, and then click DWORD Value.</li> Type RetryCount, and then press ENTER.</li> Double-click RetryCount, type the number of attempts that you want in the Value data box, and then click OK.

Note By default, Hexadecimal is selected for the Base value. If you want to enter the value in decimal, click Decimal.</li> Right-click NetGetDcName, point to New, and then click DWORD Value.</li> Type RetryDelayInSec, and then press ENTER.</li> Double-click RetryDelayInSec, type the number of seconds that you want between each attempt in the Value data box, and then click OK.

Note By default, Hexadecimal is selected for the Base value. If you want to enter the value in decimal, click Decimal.</li> Quit Registry Editor.</li> Stop and then restart the SnaDatabase service and the SnaPMP service.</li></ol>

If the RetryCount entry and the RetryDelayInSec entry do not exist, the default values are used. The default value for the RetryCount entry is one. The default value for the RetryDelayInSec entry is 5 seconds.

If the RetryCount entry is set to five and the RetryDelayInSec entry is set to 30 seconds, the SnaDatabase service and the SnaPMP service each retry the NetGetDCName function call one time every 30 seconds until the call succeeds or until the SnaDatabase service and the SnaPMP service have each made five attempts. In this example, the maximum time during the retry sequence is 150 seconds.

Typically, the SnaPMP service is installed on all the domain controllers in the Windows domain that contain the user accounts that use the Host Integration Server 2000 host security features. When the SnaPMP service initializes, the SnaPMP service calls the NetGetDCName function to determine which domain controller holds the PDC emulator operations master role in the domain. This information is required because the SnaPMP service only runs on the PDC emulator in a Windows 2000 domain or in a Windows Server 2003 domain. The SnaPMP service stops the initialization on all the other domain controllers on which the SnaPMP service is installed when the SnaPMP service detects that the local domain controller is not the PDC emulator.

Event ID 42 is a typical event that occurs when the SnaPMP service detects that the local domain controller is not the PDC emulator. The problem that is described in this article occurs when the SnaPMP service does not start automatically when you restart a Windows Server 2003 PDC emulator.

Typically, the SnaDatabase service is installed on multiple servers in a Windows domain. This includes domain controllers and member servers. The SnaDatabase service can successfully run on multiple servers at the same time. This allows for multiple backup Host Account Cache databases and one primary Host Account Cache database. The primary Host Account Cache service and the primary Host Account Cache database run on the PDC emulator. That is why the NetGetDCName function is called. The SnaDatabase service must determine which domain controller holds the PDC emulator operations master role so that the SnaDatabase service initializes in the master role.

If you use Host Integration Server 2000 Trace Initiator (Snatrace.exe) to capture the SnaDatabase service and the SnaPMP service trace when this problem occurs, trace data that is similar to the following is included in the resulting trace files.

Pmpint1.atf: SNA WinNT Account Synchronization internal trace file
<pre class="fixed_text">[Data omitted for brevity] About Get PMP primary role status Checking if this machine is the PDC WeAreThePdc: Local machine is <Computer Name> WeAreThePdc: NetGetDcNameFailed, error 995 This is not PDC, set to SECONDARY This PMP is not primary. Operation halted [Data omitted for brevity]

Udbint1.atf: SNA Host Account Cache internal trace file
<pre class="fixed_text">[Data omitted for brevity] Share D:\Program Files\Host Integration Server\system\hsdata\Logs as SnaUdb Share UdbLogs already exists Requested Access: 100009h Found a matching ACE User already has access to share Failed to grant admins access to share UdbLogs, hr = 8007054Bh Unable to start LogShipping, abort UdbWorkThread exit with code: 2147500036 Error occured, singal termination event Termination Event signaled, set service status to pending [Data omitted for brevity] Note In this trace file, the word &quot;occured&quot; is a misspelling for the word &quot;occurred,&quot; and the word &quot;singal&quot; is a misspelling for the word &quot;signal.&quot;

<div class="references_section">