Hello,
I am trying to use the command-line client, but it is failing to connect.
The cmd line I am using is:
vault -host myserver:8080/vaultservice -user admin -password *** -repository Fred8080:1 checkout $/whatever.cs
The error returned is:
<vault>
<error>
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 http://myserver:80/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: The request failed with HTTP status 404: Not Fou
nd.
</error>
<exception>
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 http://myserver:80/VaultService. No server was found at the specified URL. Please verify your netw
ork settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: The request failed with HTTP s
tatus 404: Not Found.
at VaultCmdLineClient.VaultCmdLineClient.Login(Boolean bAllowAuto, Boolean bSaveSession)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandCheckout(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>
Notice how I am passing in port 8080, but the error message says it can't connect to port 80. I guess that the command-line parsing is getting confused when trying to pick out the url.
Any thoughts on how to fix this?
Alan.
Command line client can't connect to Vault on different port
Moderator: SourceGear
-
- Posts: 3
- Joined: Tue Aug 29, 2006 9:33 am
- Contact:
-
- Posts: 3
- Joined: Tue Aug 29, 2006 9:33 am
- Contact:
Version number
Version 3.5.0.
Thanks for the quick response!
Thanks for the quick response!
-
- Posts: 3
- Joined: Tue Aug 29, 2006 9:33 am
- Contact:
Found the solution
I've found the solution - just needed to remove the /VaultService from the url.
Command line now reads:
vault -host myserver:8080 -user admin -password ***** -repository "default repository" checkout $/whatever.cs
and it works!!
Alan.
Command line now reads:
vault -host myserver:8080 -user admin -password ***** -repository "default repository" checkout $/whatever.cs
and it works!!
Alan.