Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault Mirror error on open files

1 REPLY 1
Reply
Message 1 of 2
jeoffry
291 Views, 1 Reply

Vault Mirror error on open files

Hello,


We have our Vault mirror read-only shared across the network.  The mirror runs from a batch file which is set off from the task scheduler.  The mirror process appears to fail when someone is viewing a file from the share:

 

2/03/2012 9:51:37 AM
System.IO.IOException: The process cannot access the file 'D:\VaultMirror\vault\XREF\A1bord-pid.dwg' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at VaultMirror.Command.DownloadFileStandard(File file, String filePath)
   at VaultMirror.Command.DownloadFile(File file, String filePath)
   at VaultMirror.PartialMirrorCommand.Execute()
   at VaultMirror.Form1.Main()

 

I put the following command in the batch file to kill off all network share connections (the user does not see this as it is read-only):

for /f "skip=4 tokens=1" %%a in ('net files') do net files %%a /close

 

This seems to fix the problem except when users open more files while the mirror is processing.

 

I am running mirror version 4.0.2.23777 on Vault 2011.

 

Is there anyway to handle these errors to stop this error from occuring?

 

Thankyou

1 REPLY 1
Message 2 of 2
Redmond.D
in reply to: jeoffry

Just to repeat the problem:  Vault Mirror errors out when it tries to download a file that is in use by a user. 

 

It sounds like your mirror folder is a network share that users can access.  What is the permission on the network share?  If the users have write permissions, that would explain why the file is locked and can't be updated by Vault Mirror.  I suggest making the network share read-only.

 

If the share is already read-only, you may want to restrict the local permissions to so that only Vault Mirror can write to that folder. 



Doug Redmond
Software Engineer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report