Command line errors
Moderator: SourceGear
Command line errors
Hi,
I'm getting this error quite a bit when i execute the command line client:
<vault>
<error>
<exception>System.Exception: The connection to the server failed: server can
not be contacted or uses a protocol that is not supported by this client. System
.Web.Services.Protocols.SoapException: Server was unable to process request. ---
> System.NullReferenceException: Object reference not set to an instance of a
n object.
at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strL
ogin, String strHostname, String strSessionID, VaultUser vu, String& strDbHa
shPwd, Int32& nAttempts)
at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn,
Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strH
ostname, String strSessionID, VaultUser vu, Guid& gSessionGUID, Int32& n
ValidUserAttempts)
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean alloww
ebonly, String strLogin, String strDecryptedPassword, String strHostname, String
strSessionID, String& strToken, VaultUser& vu, Int32& nValidUserAtt
empts)
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers
, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin
, String strPassword, String strRMKey, String& strAuthToken)
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles,
String username, String strEncryptedPassword, String strRMKey, String& strA
uthToken)
--- End of inner exception stack trace --- ---> System.Web.Services.Protoc
ols.SoapException: System.Web.Services.Protocols.SoapException: Server was unabl
e to process request. ---> System.NullReferenceException: Object reference no
t set to an instance of an object.
at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strL
ogin, String strHostname, String strSessionID, VaultUser vu, String& strDbHa
shPwd, Int32& nAttempts)
at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn,
Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strH
ostname, String strSessionID, VaultUser vu, Guid& gSessionGUID, Int32& n
ValidUserAttempts)
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean alloww
ebonly, String strLogin, String strDecryptedPassword, String strHostname, String
strSessionID, String& strToken, VaultUser& vu, Int32& nValidUserAtt
empts)
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers
, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin
, String strPassword, String strRMKey, String& strAuthToken)
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles,
String username, String strEncryptedPassword, String strRMKey, String& strA
uthToken)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.Login(String strHostname, Boo
lean bUseFullFiles, String username, String strEncryptedPassword, String strRMKe
y, String& strAuthToken)
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserL
ogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String usern
ame, String password)
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
--- End of inner exception stack trace ---
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
</error>
<result>
<success>False</success>
</result>
</vault>
any ideas what might be wrong? (this is actual output from the command line client, the log in ccnet is different but indicates the command line command is failing).
Could it be because no -password is specified (the builder account has no password)
I'm getting this error quite a bit when i execute the command line client:
<vault>
<error>
<exception>System.Exception: The connection to the server failed: server can
not be contacted or uses a protocol that is not supported by this client. System
.Web.Services.Protocols.SoapException: Server was unable to process request. ---
> System.NullReferenceException: Object reference not set to an instance of a
n object.
at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strL
ogin, String strHostname, String strSessionID, VaultUser vu, String& strDbHa
shPwd, Int32& nAttempts)
at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn,
Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strH
ostname, String strSessionID, VaultUser vu, Guid& gSessionGUID, Int32& n
ValidUserAttempts)
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean alloww
ebonly, String strLogin, String strDecryptedPassword, String strHostname, String
strSessionID, String& strToken, VaultUser& vu, Int32& nValidUserAtt
empts)
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers
, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin
, String strPassword, String strRMKey, String& strAuthToken)
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles,
String username, String strEncryptedPassword, String strRMKey, String& strA
uthToken)
--- End of inner exception stack trace --- ---> System.Web.Services.Protoc
ols.SoapException: System.Web.Services.Protocols.SoapException: Server was unabl
e to process request. ---> System.NullReferenceException: Object reference no
t set to an instance of an object.
at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strL
ogin, String strHostname, String strSessionID, VaultUser vu, String& strDbHa
shPwd, Int32& nAttempts)
at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn,
Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strH
ostname, String strSessionID, VaultUser vu, Guid& gSessionGUID, Int32& n
ValidUserAttempts)
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean alloww
ebonly, String strLogin, String strDecryptedPassword, String strHostname, String
strSessionID, String& strToken, VaultUser& vu, Int32& nValidUserAtt
empts)
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers
, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin
, String strPassword, String strRMKey, String& strAuthToken)
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles,
String username, String strEncryptedPassword, String strRMKey, String& strA
uthToken)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.Login(String strHostname, Boo
lean bUseFullFiles, String username, String strEncryptedPassword, String strRMKe
y, String& strAuthToken)
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserL
ogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String usern
ame, String password)
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
--- End of inner exception stack trace ---
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
</error>
<result>
<success>False</success>
</result>
</vault>
any ideas what might be wrong? (this is actual output from the command line client, the log in ccnet is different but indicates the command line command is failing).
Could it be because no -password is specified (the builder account has no password)
This is what the client GUI posts in the messages tab:
[8/23/2007 1:40:59 PM] Version Check: This Fortress client is version 1.0.4.15848
[8/23/2007 1:41:00 PM] Version Check: Your Fortress server is version 1.0.4.15848
Client Information
Fortress Client Version: 1.0.4.15848
.Net Framework Version: 2.0.50727.832
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Total Physical Memory: 1013.98 MB
Time Zone: (GMT-05:00) Eastern Time (US & Canada)
Server Information
Fortress Server Version: 1.0.4.15848
.Net Framework Version: 2.0.50727.832
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Timezone: (GMT-05:00) Eastern Time (US & Canada)
SQL Version: Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86)
Mar 23 2007 16:28:52
Copyright (c) 1988-2005 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
License Information
0 serial number(s):
[8/23/2007 1:40:59 PM] Version Check: This Fortress client is version 1.0.4.15848
[8/23/2007 1:41:00 PM] Version Check: Your Fortress server is version 1.0.4.15848
Client Information
Fortress Client Version: 1.0.4.15848
.Net Framework Version: 2.0.50727.832
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Total Physical Memory: 1013.98 MB
Time Zone: (GMT-05:00) Eastern Time (US & Canada)
Server Information
Fortress Server Version: 1.0.4.15848
.Net Framework Version: 2.0.50727.832
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Timezone: (GMT-05:00) Eastern Time (US & Canada)
SQL Version: Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86)
Mar 23 2007 16:28:52
Copyright (c) 1988-2005 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
License Information
0 serial number(s):
The VaultService and database are on separate servers, however they are both members of our domain and the clocks are kept in sync.
This issue has only surfaced since upgrading to Fortress.
This is a sample of the ccnet.log file:
2007-08-23 15:59:36,026 [MedSales Help:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory "$/dotnet/MedSales Help" -beginversion 142 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2007-08-23 16:02:34,937 [MedMerge.Business:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory $/dotnet/MedMerge.Business -beginversion 34 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2007-08-23 16:02:43,844 [MedMerge.Business:WARN] Attempt 2 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory $/dotnet/MedMerge.Business -beginversion 34 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2007-08-23 16:05:54,364 [MedServices.Business:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory $/dotnet/MedServices.Business -beginversion 47 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
I assume this no longer causes a cc.net project failure and that the check will be retried.
This issue has only surfaced since upgrading to Fortress.
This is a sample of the ccnet.log file:
2007-08-23 15:59:36,026 [MedSales Help:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory "$/dotnet/MedSales Help" -beginversion 142 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2007-08-23 16:02:34,937 [MedMerge.Business:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory $/dotnet/MedMerge.Business -beginversion 34 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2007-08-23 16:02:43,844 [MedMerge.Business:WARN] Attempt 2 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory $/dotnet/MedMerge.Business -beginversion 34 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2007-08-23 16:05:54,364 [MedServices.Business:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\Fortress client\vault.exe versionhistory $/dotnet/MedServices.Business -beginversion 47 -rowlimit 1 -host localhost -user <user> -repository BusinessApplications -ssl
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
I assume this no longer causes a cc.net project failure and that the check will be retried.