# Build 896 - Vault Repo's get stuck at "Build initialising"

**URL:** https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741
**Category:** Bugs
**Created:** [September 26, 2012, 2:16am UTC](https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741 "2012-09-26T02:16:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jenasys](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jenasys/32/888_2.png) [@Jenasys](https://www.finalbuilder.com/forums/u/Jenasys)
#### Post date: [September 26, 2012, 2:16am UTC](https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741/1 "2012-09-26T02:16:13Z")

</div>

1. Continua and Vault web services are located on the same server.
2. Open Continua
3. If I include a validated Vault repository.
4. Manually run the project configuration.
5. The process gets stuck with "Build initialising" getting displayed in the various screens.

Help!

---

<div class="post-metadata">

### Author: ![vinnie](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/v/71e660/32.png) [@vinnie](https://www.finalbuilder.com/forums/u/vinnie)
#### Post date: [September 26, 2012, 11:47am UTC](https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741/2 "2012-09-26T11:47:15Z")

</div>

Hi Jamie,   
 There’s two things you can try to get you up and running. You can either re-save the repository or delete it and re-create it. If one of those solves the problem it looks like something is up with out repository checking code. I can’t think of anything else that causes a build to be stuck at Build Initialising but I’ll setup a test and see what I find.

---

<div class="post-metadata">

### Author: ![Jenasys](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jenasys/32/888_2.png) [@Jenasys](https://www.finalbuilder.com/forums/u/Jenasys)
#### Post date: [September 26, 2012, 11:50am UTC](https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741/3 "2012-09-26T11:50:36Z")

</div>

Here is an exception message.

Cannot get new changsets for Iims-Vault-Repo: Running vault.exe failed with return code: -1 and error output: &nbsp;  
&nbsp;  
System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. System.Web.Services.Protocols.SoapException: Server was unable to process request.&nbsp;  
---&gt; System.NullReferenceException: Object reference not set to an instance of an object.  
at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strLogin, String strHostname, String strSessionID, VaultUser vu, String&amp; strDbHashPwd, Int32&amp; nAttempts)  
at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, VaultUser vu, String strDomain, Guid&amp; gSessionGUID, Int32&amp; nValidUserAttempts)  
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, String strDomain, String&amp; strToken, VaultUser&amp; vu, Int32&amp; nValidUserAttempts)  
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String&amp; strAuthToken, String strDomain)  
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String&amp; strAuthToken)  
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String&amp; strAuthToken)  
--- End of inner exception stack trace --- ---&gt; System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.  
at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strLogin, String strHostname, String strSessionID, VaultUser vu, String&amp; strDbHashPwd, Int32&amp; nAttempts)  
at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, VaultUser vu, String strDomain, Guid&amp; gSessionGUID, Int32&amp; nValidUserAttempts)  
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, String strDomain, String&amp; strToken, VaultUser&amp; vu, Int32&amp; nValidUserAttempts)  
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String&amp; strAuthToken, String strDomain)  
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String&amp; strAuthToken)  
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String&amp; strAuthToken)  
--- End of inner exception stack trace ---&nbsp;  
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)&nbsp;  
at Syst&nbsp;  
em.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)&nbsp;  
at VaultClientNetLib.ClientService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String&amp; strAuthToken)&nbsp;  
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserLogin, String strPassword)&nbsp;  
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String username, String password)&nbsp;  
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)&nbsp;  
--- End of inner exception stack trace ---&nbsp;  
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)&nbsp;  
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)&nbsp;  
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)&nbsp;  
&nbsp;  
&nbsp;  
False&nbsp;  
&nbsp;&nbsp;

# Review of configuration

Now I initially thought it might be a http://{VaultServer:port} issue as per the repo configuration bellow.

I also let this run overnight to see how well the **timeout of 60 minutes worked**. But that **failed** as it was still at build initialising this morning (8 hours or so later). I suspect there is a threading/callback issue here.

![ContinuaCI_896_VaultHTTP.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/765e0862f7d35609b273890489a8e3eacc4e8ee3.jpeg)

![ContinuaCI_896_VaultValid.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/75b7e755dc3743eaa53873743943f05fb4782d73.jpeg)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 27, 2012, 4:58am UTC](https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741/4 "2012-09-27T04:58:34Z")

</div>

Hi Jamie   
  
 We have been able to reproduce this here and have made some major improvements. We’re still tweaking things and trying different ways to break the repositories but it should behave better with the next build (hopefully later today).

---

<div class="post-metadata">

### Author: ![Jenasys](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jenasys/32/888_2.png) [@Jenasys](https://www.finalbuilder.com/forums/u/Jenasys)
#### Post date: [September 27, 2012, 5:27am UTC](https://www.finalbuilder.com/forums/t/build-896-vault-repos-get-stuck-at-build-initialising/5741/5 "2012-09-27T05:27:35Z")

</div>

Yeah baby, love this continuous build idea! 😄

I’ve deleted all my projects, configurations and most of the repo’s to try and remove any poor data triggering the problems I’ve been getting. I just can’t wait to get stuck into the stage actions at this stage of my testing.
