Problems Renaming a Folder

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
rich36
Posts: 1
Joined: Thu Aug 02, 2012 6:17 pm

Problems Renaming a Folder

Post by rich36 » Thu Aug 02, 2012 7:29 pm

I've got a folder I'm having some issues renaming in Vault. It's the root folder for the branch. When I try to rename the file, I get the following message in the client:

[8/2/2012 9:23:31 PM] Version Check: This Vault client is version 5.0.3.18802
[8/2/2012 9:23:31 PM] Version Check: Your Vault server is version 5.1.2.19248
[8/2/2012 9:23:31 PM] Version Check: SourceGear recommends that the client and server be the same version.
[8/2/2012 9:23:31 PM] Version Check: The following information was retrieved from the SourceGear website. No information was sent to SourceGear. You can disable this part of the version check from the Options dialog.
[8/2/2012 9:23:31 PM] Version Check: The most recent Vault release is version 6.0.0.477
[8/2/2012 9:23:51 PM] Preparing data to begin transaction
[8/2/2012 9:23:51 PM] Beginning transaction
[8/2/2012 9:23:52 PM] Rename $/<root_folder>/branches/<branch_name>
[8/2/2012 9:23:52 PM] Ending the transaction
[8/2/2012 9:23:52 PM] An error occurred while trying to end a transaction.
[8/2/2012 9:23:52 PM] Transaction failed
[8/2/2012 9:23:52 PM] Item $/<root_folder>/branches/<branch_name> caused the transaction to fail: A database error has occured (FailDBReader)
[8/2/2012 9:23:52 PM] Transaction failed
=============================
There are no errors in the SQL database log or on the server where Vault is running. I don't seem to have problems with other renames in the folder. I don't know if it's an issue with the size of the folder (see below).

=============================
Folder information
Size: 2.84 GB
25,476 Files, 3,350 Folders
=============================
Here's some information from the Log:

8/1/2012 9:19:42 AM <eventengine>: [GUIClientWorkerThread:5880] Event fired: VaultClientOperationsLib.StatusMessageEvent
8/1/2012 9:19:42 AM <eventengine>: [GUIClientWorkerThread:5880] Event fired: VaultClientOperationsLib.ChangeSetItemsChangedEvent
8/1/2012 9:19:42 AM <eventengine>: [GUIClientWorkerThread:5880] Event fired: VaultClientOperationsLib.ActiveRepositoryChangedEvent
8/1/2012 9:19:42 AM <eventengine>: [GUIClientWorkerThread:5880] Event fired: VaultClientOperationsLib.TreeStructureChangedEvent
8/1/2012 9:19:42 AM <eventengine>: [GUIClientWorkerThread:5880] Event fired: VaultClientOperationsLib.ConnectionStateChangedEvent
8/1/2012 9:19:42 AM <mutex>: [<No Name>:9992] Created mutex 1728 (Vault_WF_-943695948)
8/1/2012 9:19:42 AM <busy>: [GUIClientWorkerThread:5880] Setting GUI to unbusy from DisconnectFromServer.
8/1/2012 9:19:42 AM <generic>: [<No Name>:9992] [System.NullReferenceException: Object reference not set to an instance of an object.
at VaultClientOperationsLib.WorkingFolder.GetHiddenFolderName(ClientInstance ci, String folderName)
at VaultClientOperationsLib.WorkingFolder.GetHiddenStateFilename()
at VaultClientOperationsLib.WorkingFolder.LoadState()
at VaultClientOperationsLib.WorkingFolder..ctor(ClientInstance ci, String diskFolderPath, Boolean makeBackups)
at VaultClientOperationsLib.ClientInstance.FindOrCreateWorkingFolder(String diskPath, Boolean makeBackups)
at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_Folder(VaultClientFolder folder, Hashtable alreadySearchedFolderPaths, Boolean recursive)
at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)]Object reference not set to an instance of an object.
at VaultClientOperationsLib.WorkingFolder.GetHiddenFolderName(ClientInstance ci, String folderName)
at VaultClientOperationsLib.WorkingFolder.GetHiddenStateFilename()
at VaultClientOperationsLib.WorkingFolder.LoadState()
at VaultClientOperationsLib.WorkingFolder..ctor(ClientInstance ci, String diskFolderPath, Boolean makeBackups)
at VaultClientOperationsLib.ClientInstance.FindOrCreateWorkingFolder(String diskPath, Boolean makeBackups)
at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_Folder(VaultClientFolder folder, Hashtable alreadySearchedFolderPaths, Boolean recursive)
at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)

Stack Trace:
at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)
at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Object notifyChangeSetItemsChanged)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

8/1/2012 9:19:42 AM <eventengine>: [<No Name>:9992] Event fired: VaultClientOperationsLib.BackgroundChangeScanEvent started: False
8/1/2012 9:19:42 AM <generic>: [<No Name>:9660] SimpleLogger finalized
8/2/2012 9:40:14 AM <generic>: [<No Name>:11128] FileSystemWatcher error, probably overflow of its internal buffer: System.IO.ErrorEventArgs Too many changes at once in directory:C:\Repos\Project.
at VaultClientOperationsLib.ClientInstance.WatchedFolderErrorHandler(Object sender, ErrorEventArgs e)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

8/2/2012 7:45:35 PM <generic>: [GUIClientWorkerThread:8972] Unable to update working copy for Rename: $/Project/branches/Maint to $/Project/branches/Dev [System.IO.IOException: Access to the path 'C:\Repos\Project\branches\Maint' is denied.
at System.IO.Directory.Move(String sourceDirName, String destDirName)
at VaultClientOperationsLib.ChangeSetItem_Rename.DoWorkingFolderRename(TreeCache treeCache, String sourcePath, String destPath, Boolean undo)
at VaultClientOperationsLib.ChangeSetItem_Rename.PerformInWorkingFolder(TreeCache treeCache, Boolean undo)]Access to the path 'C:\Repos\Project\branches\Maint' is denied.
at System.IO.Directory.Move(String sourceDirName, String destDirName)
at VaultClientOperationsLib.ChangeSetItem_Rename.DoWorkingFolderRename(TreeCache treeCache, String sourcePath, String destPath, Boolean undo)
at VaultClientOperationsLib.ChangeSetItem_Rename.PerformInWorkingFolder(TreeCache treeCache, Boolean undo)

Stack Trace:
at VaultClientOperationsLib.ChangeSetItem_Rename.PerformInWorkingFolder(TreeCache treeCache, Boolean undo)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithPendingChange(ChangeSetItemPerformPending csiPP, Boolean updateWorkingFolder, Boolean undo, Boolean isRefresh, ChangeSetItemColl csisToRemove)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithPendingChanges(ChangeSetItemColl items, Boolean updateWorkingFolder, Boolean undo, Boolean isRefresh)
at VaultClientOperationsLib.TreeCache.ChangeSetItems_AppendRange(ChangeSetItemColl items)
at VaultClientOperationsLib.ClientInstance.InternalChangeSet_Append(ChangeSetItemColl items)
at VaultClientPresentationLib.GUIClientInstance.Rename(RepositoryExplorerSelection selection)
at VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)
at VaultClientPresentationLib.GUIClientThread.Start()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Problems Renaming a Folder

Post by lbauer » Thu Aug 02, 2012 9:07 pm

We'd like to see a copy of the Vault Server log. It should have additional information about the database error. It's called sgvault.log and is in %windir%\temp\sgvault on the server machine. Send the log zipped up to support at sourcegear.com, Attn: Linda. Please include a link to this forum post.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply