Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/252158

From BetaArchive Wiki
Knowledge Base


Error Message Occurs When You Start the Viacompact Utility in Unattended Mode

Article ID: 252158

Article Last Modified on 1/25/2006



APPLIES TO

  • Microsoft Metadirectory Services 2.1



This article was previously published under Q252158

SYMPTOMS

When you automate the Viacompact process by using a batch file that stops the Zoomit VIA service with a net command, and then immediately starts the Viacompact utility in Unattended mode from the command line, the follow error message may occur in the Compact ASN database phase:

Failed to Rename D:\Zoomserv\Data\Db\x500.db; error 13 (permission denied) (ViaServer may be running)

A problem has occurred. Check D:\Zoomserv\Data\Logs\Genlogs for details.

CAUSE

This issue can occur if the service is not completely stopped before the Viacompact utility starts. When the Zoomit VIA service is running as expected, you cannot run the Viacompact utility. In this case, the service is in the process of being stopped; therefore, the Viacompact utility does not detect that the service is running until the it tries to rename the database file.

RESOLUTION

To resolve this issue, create a batch file that includes a sleep operation that runs for 90 seconds to ensure that the service is completely stopped. You can use the Sleep.exe command-line utility that is available in the Microsoft Windows NT 4.0 Resource Kit and the Microsoft Windows 2000 Resource Kit. The batch file can call this utility to set a sleep time in seconds. You can also use another scripting language with a built-in sleep function.

MORE INFORMATION

This following text is an example of a batch file that may generate the error message described in the "Summary" section:

net stop "zoomit server"
c:\zoomserv\bin\viacompact.exe -unattended -start
net start "zoomit server"


When this issue occurs, the X500.db file may be truncated. It is recommended that you completely back up the server that is running Microsoft Metadirectory Services (MMS) before you run the Viacompact utility.

For additional information about how to schedule Viacompact or MMScompact to run on a routine basis, click the article number below to view the article in the Microsoft Knowledge Base:

251019 How to Schedule Viacompact to Run on a Routine Basis


For additional information about how to use the Viabackup or MMSbackup utility, click the article number below to view the article in the Microsoft Knowledge Base:

250392 Using the Viabackup Tool in Microsoft Metadirectory Services



Additional query words: MMS Metadirectory Zoomit Sleep exe

Keywords: kberrmsg kbprb KB252158