Error Message Occurs When You Start the Viacompact Utility in Unattended Mode (252158)
The information in this article 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.
Modification Type: | Minor | Last Reviewed: | 1/25/2006 |
---|
Keywords: | kberrmsg kbprb KB252158 |
---|
|