I am utilizing Vault Ant in a build script that is used on my companies continuous integration platform to pull down the latest and greatest code for a project from the repository before building. However, as of lately, we have been getting the following stacktrace whenever we attempt to run a build.
C:\Program Files\CruiseControl\projects\PTD\vault-ant-build.xml:56: System.Exception: The Vault server could not be contacted to perform the operation. Your network connection to the server may have been interrupted. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.Timeout exceededRead timed out
at clr.System.ExceptionStaticWrapper.ExceptionCtor(Unknown Source)
at VaultClientNetLib.VaultConnection.GetRepositoryStructure(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Refresh(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Refresh(Unknown Source)
at VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.SetRepository(ServerOperations.cs:3507)
at VaultClientIntegrationLib.ServerOperations.SetRepository(ServerOperations.cs:3478)
at com.sourcegear.ant.tasks.VaultSetRepository.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: System.Exception: The Vault server could not be contacted to perform the operation. Your network connection to the server may have been interrupted. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.Timeout exceededRead timed out
at clr.System.ExceptionStaticWrapper.ExceptionCtor(Unknown Source)
at VaultClientNetLib.VaultConnection.GetRepositoryStructure(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Refresh(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Refresh(Unknown Source)
at VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.SetRepository(ServerOperations.cs:3507)
at VaultClientIntegrationLib.ServerOperations.SetRepository(ServerOperations.cs:3478)
at com.sourcegear.ant.tasks.VaultSetRepository.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
at clr.System.ExceptionStaticWrapper.ExceptionCtor(Unknown Source)
at VaultClientNetLib.VaultConnection.GetRepositoryStructure(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Refresh(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Refresh(Unknown Source)
at VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.SetRepository(ServerOperations.cs:3507)
at VaultClientIntegrationLib.ServerOperations.SetRepository(ServerOperations.cs:3478)
at com.sourcegear.ant.tasks.VaultSetRepository.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 11 more
Nothing has changed on our script, and these used to work all the time with minimal problem like this. I have seen this exact error occur in the past, however it usually has fixed itself in a day or so. This time, it is going on three days and still having the same problem.
The Client and Server are both the save version: 5.0.3.18802
Any assistance, especially quick assistance, with this would be greatly appreciated!
Vault Server unable to be contacted
Moderator: SourceGear
Re: Vault Server unable to be contacted
The first thing I would try is restarting the Vault Server. Run the "iisreset" command from a command prompt on the Vault Server machine.
We'd like to see a copy of the Vault Server log. It's called sgvault.log and is in %windir%\temp\sgvault on the server machine. Email the log zipped up to support at sourcegear.com, ATTN: Linda.
Please include a link to this forum post.
Are you having any network or SQL Server issues/timeouts?Caused by: System.Exception: The Vault server could not be contacted to perform the operation. Your network connection to the server may have been interrupted. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.Timeout exceededRead timed out
We'd like to see a copy of the Vault Server log. It's called sgvault.log and is in %windir%\temp\sgvault on the server machine. Email 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
SourceGear
Technical Support Manager
Re: Vault Server unable to be contacted
Done, you should have the e-mail shortly with the attached log file in ZIP format.
Re: Vault Server unable to be contacted
Working with this customer offline.
HS 227183
HS 227183
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager