Unable to connect to Source Gear Vault

We are trying to get started with TC and Vault, but are not able to connect to the Vault server from TC.  We are using the same connection parameters that we use from the Vault Client on the same server, so we're not sure why TC cannot connect.

Any help here is greatly appreciated.

NOTE:  we removed our actual server name and replace with <server>

[2010-04-13 07:38:07,087]   WARN [ion=addVcsRoot ] -      jetbrains.buildServer.VCS - Error occurred in test connection
jetbrains.buildServer.vcs.VcsException: Exception occurred while trying to connect to Vault server. See original message below:
The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Unable to connect to https://<server>/VaultService.  No server was found at the specified URL.  Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.  Web Exception:
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:83)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.doInConnection(VaultConnection.java:60)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.testConnection(VaultConnection.java:124)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultVcsSupport.testConnection(VaultVcsSupport.java:246)
at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:9)
at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:54)
at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:45)
at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:52)
at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:73)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:10)
at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:13)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:8)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:595)
Caused by: System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Unable to connect to https://<server>/VaultService.  No server was found at the specified URL.  Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.  Web Exception:  ---> System.Exception: Unable to connect to https://<server>/VaultService.  No server was found at the specified URL.  Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.  Web Exception:
at clr.System.ExceptionStaticWrapper.ExceptionCtor(ExceptionStaticWrapper.java:43)
at VaultClientNetLib.VaultConnection.Login(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Login(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2480)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2586)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connectNotForce(VaultConnection.java:94)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:76)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.doInConnection(VaultConnection.java:60)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.testConnection(VaultConnection.java:124)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultVcsSupport.testConnection(VaultVcsSupport.java:246)
at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:9)
at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:54)
at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:45)

.....   rest of exception left out to keep the thread shorter.

Thanks,

Kevin

7 comments

Hello, Kevin,

Please try using https://<server> instead of https://<server>/VaultService.

0

Thanks.  Your suggestion gives the exact same error.   Whether VaultService is appended not produces the exact same error.

0

Then please try typing https://<server>/VaultService and https://<server> links into your browser address bar.
Try also http://<server>/VaultService and http://<server>.

0

We have http (port 80) turned off on that server, so I know those will not work.  The https url's work fine in the browser, except that the certification we are using on that server has expired but the vault client can handle that fine.  Do you think this might be causing the error?

0

Kevin,

Please, try one more adjustment - explicitly specify your https port in the servier URL like https://<server>:<port>/VaultService, make sure server is running and try Test Connection.

If that won't help, I suppose it's your expired certificate causing the error.
We use Vault API that is provided by SourceGear to set up TeamCity connection to Vault, I forwarded your question to them.


0

Guys from SourceGear recommend you to generate a new cert. This will most likely fix you problem.

0

Great thanks - I am hoping to get the certificate generation completed today.

0

Please sign in to leave a comment.