Vault.exe GET not working properly

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

Moderator: SourceGear

Post Reply
mikep
Posts: 26
Joined: Wed Jan 21, 2004 12:56 pm

Vault.exe GET not working properly

Post by mikep » Tue Jun 05, 2007 10:01 am

Hi,
I am using CruiseControl and everything works great for all of my .net apps with the exception of one. Everytime CC detects a change and called the GET command, vault returns this: Please specify -user, -password, and -host.

I find the following in the logs:

2007-06-05 11:56:21,353 [UniversityV2:DEBUG] Starting process [C:\Program Files\SourceGear\Vault Client\vault.exe] in working directory [C:\Projects\Web Projects\University\webroot\] with arguments [getversion 11351 "$/Web Projects/University/webroot" "C:\Projects\Web Projects\University\webroot\" -useworkingfolder -merge overwrite -makewritable -backup no -setfiletime checkin -host xxxx -user xxxx -password xxxx -repository University]
2007-06-05 11:56:23,665 [UniversityV2:DEBUG] <vault>
2007-06-05 11:56:23,665 [UniversityV2:DEBUG] <error>
2007-06-05 11:56:23,665 [UniversityV2:DEBUG] Please specify -user, -password, and -host.
2007-06-05 11:56:23,665 [UniversityV2:DEBUG] </error>
2007-06-05 11:56:23,665 [UniversityV2:DEBUG] <result success="no" />
2007-06-05 11:56:23,665 [UniversityV2:DEBUG] </vault>


I have looked into the client and server logs for Vault and I don't find anything that helps. Your thoughts are appreciated.

-Mike

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Jun 05, 2007 10:35 am

Can you try moving the -user -password and -host information up to either in front of the command or right after it? That might not make a difference, but I had a case or two where it did.

mikep
Posts: 26
Joined: Wed Jan 21, 2004 12:56 pm

Post by mikep » Tue Jun 05, 2007 11:14 am

Hi Beth,
Thanks for the suggestion. I received the same result. Yesterday, I tried removing and changing various parameters with no success. Any other thoughts or logs that I can look into?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Jun 05, 2007 11:56 am

On your path, "C:\Projects\Web Projects\University\webroot\, " try taking out the last backslash.
Last edited by Beth on Tue Jun 05, 2007 2:04 pm, edited 1 time in total.

mikep
Posts: 26
Joined: Wed Jan 21, 2004 12:56 pm

Post by mikep » Tue Jun 05, 2007 11:59 am

I got it working. It appears that, when there is a space in the file path, CC does not put a period (.) at the end of the working path. It is interesting to note that CC does in fact put the period there when there are not spaces in the file path.

I.e. changing this:
getversion 11351 "$/Web Projects/University/webroot" "C:\Projects\Web Projects\University\webroot\"

into this:
getversion 11351 "$/Web Projects/University/webroot" "C:\Projects\Web Projects\University\webroot\."

Simply adding the period to the ccnet config file at the end of the Vault working path seems to have done the trick.

Beth,
While writing this and previewing the message, I received your message regarding removing the trailling backslash. I will try that as well and post back if it worked as well.

mikep
Posts: 26
Joined: Wed Jan 21, 2004 12:56 pm

Post by mikep » Tue Jun 05, 2007 12:05 pm

Removing the backslash worked as well. Thanks.

Post Reply