vaultaddfile error: Commitment of change set failed!

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

Moderator: SourceGear

Post Reply
ifolarin
Posts: 3
Joined: Fri May 04, 2007 6:22 am
Location: Lagos, Nigeria

vaultaddfile error: Commitment of change set failed!

Post by ifolarin » Fri May 04, 2007 6:34 am

I am currently trying to implement the vault package for cifactory http://www.cifactory.org. But whenever I try to load files into the repository I get the following error: Commitment of change set failed. The nant task is provided below: and a screen shot of the failed build operation. I am however able to succesfully create a repository using the vaultaddrepo task.

<vaultaddfile url="${Vault.URI}"
username="${Vault.Username}"
password="${Vault.Password}"
repository="${Vault.Repository}"
path="$/">
<fileset basedir="${ProjectRootDirectory}">
<include name="**/*" />
</fileset>
</vaultaddfile>


The console output from the failed build is provided below:

[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\package-tree.html] added to c
hange set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\SimianCheck.html] added to ch
ange set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\SimianMain.html] added to cha
nge set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\SimianTask.Formatter.html] ad
ded to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\SimianTask.html] added to cha
nge set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\SourceFile.html] added to cha
nge set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\StreamLoader.html] added to c
hange set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\au\com\redhillconsulting\simian\Version.html] added to change
set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\resources\inherit.gif] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\allclasses-frame.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\allclasses-noframe.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\constant-values.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\deprecated-list.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\help-doc.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\index-all.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\index.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\overview-summary.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\overview-tree.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\package-list] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\javadoc\stylesheet.css] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\changes.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\customers.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\features.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\future_plans.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\get_dotnet.png] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\get_it_now.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\get_java_blue-button.gif] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\index.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\installation.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\jdk1.4.2_03.log] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\jdk1.4.2_03.log.zip] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\LICENSE.txt] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\menu.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\overview.html] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\simian.dtd] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\simian.jpg] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\bin\simian.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\Simian.Properties.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\Simian.Target.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\SimianReport.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Simian\SimianSummary.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
SourceModificationReport\SourceModificationReport.Properties.xml] added to chang
e set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
SourceModificationReport\SourceModificationReport.Target.xml] added to change se
t.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\AprSharp.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\AprSharp.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\CIFactory.NAnt.Subversion.Tasks.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\CIFactory.NAnt.Subversion.Tasks.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\intl3_svn.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libapr.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libapr.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libapriconv.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libapriconv.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libaprutil.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libaprutil.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libdb44d.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\libeay32.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\ssleay32.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\SubversionSharp.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\SubversionSharp.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\svn_client-1.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\That.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\bin\VBProxy.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\HistoryPaths.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\SourceControl.Credentials.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\SourceControl.Properties.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Subversion\SourceControl.Target.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\bin\NAnt.VaultTasks.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\bin\SGDiff.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\bin\VaultClientNetLib.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\bin\VaultClientOperationsLib.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\bin\VaultLib.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\bin\VCDiff.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\doc\Documentation.chm] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\SourceControl.Properties.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Vault\SourceControl.Target.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Versioning\Versioning.Properties.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages\
Versioning\Versioning.Target.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\xs
l\compile.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\xs
l\cruisecontrol.css] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\xs
l\header.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\xs
l\modifications.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\xs
l\NAnt.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\xs
l\NAntTiming.xsl] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\cc
net.exe] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\cc
net.exe.config] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\CC
NET.Extensions.Plugin.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\CC
NET.Extensions.Plugin.pdb] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\Ne
tReflector.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\Th
oughtWorks.CruiseControl.Core.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\server\Th
oughtWorks.CruiseControl.Remote.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\ccnetproj
ect.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\CCNETServ
er.Bat] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Common.Bu
ild.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Main.buil
d.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\NAnt.xsd]
added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\OpenSolut
ion.bat] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Packages.
csproj] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Post.buil
d.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Post.Shim
.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Propertie
s.build.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Recompile
Analytics.bat] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Recompile
Analytics.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\Scratch.b
uild.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\SetupIIS.
xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\TestProje
ctBuildScripts.sln] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\TestProje
ctBuildScripts.suo] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\UpdatenAn
tSchema.bat] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Build\UpdatenAn
tSchema.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Product\OpenSol
ution.bat] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Product\Scratch
.build.xml] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Product\TestPro
ject.sln] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.AddIn.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Cons.exe] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Cons.exe.config] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Demo.1.1.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Framework.1.1.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Framework.1.1.XML] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Framework.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Framework.XML] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.GUI.exe] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.GUI.exe.config] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.MSBuild.Tasks.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Tasks.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\MbUnit.Tests.1.1.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\NGraphviz.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\NGraphviz.Helpers.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\NGraphviz.Layout.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\QuickGraph.Algorithms.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\QuickGraph.Algorithms.Graphviz.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\QuickGraph.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\Refly.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\TestDriven.Framework.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\TestFu.dll] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\TestFu.XML] added to change set.
[vaultaddfile] File [c:\Projects\TestProject\Current\Third Party\MbU
nit\XsdTidy.exe] added to change set.

BUILD FAILED

c:\Projects\TestProject\Current\Build\Packages\Vault\SourceControl.T
arget.xml(115,6):
Commitment of change set failed!

Total time: 4.2 seconds.


BUILD FAILED

Nested build failed. Refer to build log for exact reason.

Total time: 17.5 seconds.


F:\Downloads\DevTools\CIFactory\CI-Factory-Beta-0.8.0.121>SET /P variable="Hit E
nter to exit."
Hit Enter to exit.

I am using vault version 3.5.0.4741 and the corresponding client libraries.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri May 04, 2007 9:00 am

Are you able to manual load those files using the Vault GUI? If not, then we will look at that side of things first.

ifolarin
Posts: 3
Joined: Fri May 04, 2007 6:22 am
Location: Lagos, Nigeria

Post by ifolarin » Fri May 04, 2007 9:10 am

Yes I am able to load it through the GUI, I've discovered that the <vaultaddfile> task does not operate on directories recursively and does not automagically create a corresponding directory structure in the repository. Is there any work around this besides creating the folder structure manually?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed May 09, 2007 3:19 pm

Not currently. I can make a feature request if you can describe exactly what you are wanting to see.

ifolarin
Posts: 3
Joined: Fri May 04, 2007 6:22 am
Location: Lagos, Nigeria

Post by ifolarin » Thu May 10, 2007 11:03 am

Great!
Actually I'm working on the Vault Package for CI-Factory and while I've written a recursive function to traverse the local directory and create corresponding remote directories and add the files in the directory manaully. I would've loved if all I had to do was use the syntax below and the remote directory structure is created to match the local directory structure, because the nant <fileset> task actually traverses the local directory structure but the error in committing is as a result of a similar structure not existing in the repository. However I observed that with the GUI tool this is not the case as the local directory is created in the remote store during the add process. I hope I've been able to shed some light on my requirements.

<vaultaddfile url="${Vault.URI}"
username="${Vault.Username}"
password="${Vault.Password}"
repository="${Vault.Repository}"
path="$/">
<fileset basedir="${ProjectRootDirectory}">
<include name="**/*" />
</fileset>
</vaultaddfile>

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu May 10, 2007 12:58 pm

Got it. Thanks for the feedback.

Post Reply