Command line client can't connect to Vault on different port

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
alansingfield
Posts: 3
Joined: Tue Aug 29, 2006 9:33 am
Contact:

Command line client can't connect to Vault on different port

Post by alansingfield » Tue Aug 29, 2006 9:42 am

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.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Aug 29, 2006 9:49 am

What version of Vault are you using?
Linda Bauer
SourceGear
Technical Support Manager

alansingfield
Posts: 3
Joined: Tue Aug 29, 2006 9:33 am
Contact:

Version number

Post by alansingfield » Tue Aug 29, 2006 9:51 am

Version 3.5.0.

Thanks for the quick response!

alansingfield
Posts: 3
Joined: Tue Aug 29, 2006 9:33 am
Contact:

Found the solution

Post by alansingfield » Tue Aug 29, 2006 10:25 am

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.

Post Reply