Command Line GetLabel hangs

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

Moderator: SourceGear

Post Reply
kozchris
Posts: 8
Joined: Tue Sep 27, 2011 12:58 pm

Command Line GetLabel hangs

Post by kozchris » Fri Oct 14, 2011 9:49 am

Hello,

I am using this command line:

"C:\Program Files (x86)\SourceGear\Vault Client\Vault.exe" GETLABEL -user "xxxx" -password "xxxx" -host "10.100.0.66" -repository "eCommerce" -merge overwrite -nonworkingfolder "R:\PSE_beta_temp\PointShop_ASC" "$/PointShop_ASC" "PSE_AB_20111014_10_22"

The command has been working successfully for about a month but now when it runs it just hangs. I've been killing it after 25+ mins of inactivity. The command use to run in 3mins or so. The task manager shows no activity by the vault process, there are also no errors shown in the sgvault server log.

I have tried the following:
1) upgrading the server and client to the latest versions 5.1.2.19281
2) deleting my client side cache
3) try as different vault user
4) try a different working directory
5) tried command on different machines

the directory structure gets created but files are ever added.

Any suggestions?

Thank you,
Chris

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

Re: Command Line GetLabel hangs

Post by lbauer » Fri Oct 14, 2011 10:21 am

Can you do the same Get with the Vault GUI Client, or does it hang, too?

We can get more info from CLC logging.

You can enable CLC logging by copying the VaultGUIClient.exe.config file fromt the Vault GUI Client directory and renaming it vault.exe.config. Then enable logging, log all classes,
<add key="enableLogging" value="true" />

Create the path for the log file and add this to the config file:

<add key="logFilePath" value="C:\_CLCLog\clc_log.txt" />

Details here:
http://support.sourcegear.com/viewtopic.php?t=1534

You can enable debug server logging in the Admin Web Client under Server Settings->Logging->Log Level.

Reproduce the problem, then send the logs zipped up to support at sourcegear.com, Attn: Linda. Please include a link to this forum post.
Linda Bauer
SourceGear
Technical Support Manager

kozchris
Posts: 8
Joined: Tue Sep 27, 2011 12:58 pm

Re: Command Line GetLabel hangs

Post by kozchris » Fri Oct 14, 2011 11:15 am

Thanks for the help.

Logs sent.

Vault GUI client also hangs.
I killed the vault action after 6 minutes of inactivity (no cpu use, no log updates).

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

Re: Command Line GetLabel hangs

Post by lbauer » Fri Oct 14, 2011 3:38 pm

We did a remote session -- user could get individual files, but not large folder structures. Might be a network issue.

Something else to try:

After logging into the Vault GUI client, go to Tools - Options - Network Settings and turn off "Request database delta on repository cache miss." That usually helps with getting the repository tree.
Linda Bauer
SourceGear
Technical Support Manager

egarrison
Posts: 2
Joined: Fri Sep 10, 2010 3:56 pm

Re: Command Line GetLabel hangs

Post by egarrison » Sun Oct 16, 2011 9:30 am

Linda,
I work with Chris. Sysadmin and I have put a second and third set of eyes on this and trying to figure out what is going on. We do not thing there is a network issue. It seems to happen MOSTLY on one machine but is not isolated to just the 1 machine. We have a build server we need this to work on and it stopped working reliably. We have run TCPIP test and moved files between Vault server and Build server without issue.

Using the GUI client, we are also having the problem. We are setting a Label and doing get latest on the root and it hangs. It will create the folder structure, but never get a single file. If we go from the root into a sub folder, we can get recent on a subs. This repository is not overly big. Size on disk is 236MB.

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

Re: Command Line GetLabel hangs

Post by lbauer » Mon Oct 17, 2011 10:21 am

Earlier in your logs I see quite a few errors like this:

----10/13/2011 10:36:58 PM emullins--::1(::1)--SSL Disabled System.Data.SqlClient.SqlException: Procedure or function 'spgetintegrations' expects parameter '@repid', which was not supplied.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

Had you been having other problems prior to this?

The errors seem to go away on after a restart. Could you tell me anymore about this?
Linda Bauer
SourceGear
Technical Support Manager

kozchris
Posts: 8
Joined: Tue Sep 27, 2011 12:58 pm

Re: Command Line GetLabel hangs

Post by kozchris » Wed Oct 19, 2011 7:42 am

This turned out to be an issue that occurred when using the checkpoint VPN client. Apparently some limit was reached and it just decides to block traffic.

We put a public IP on the vault web service and are able to sync now.

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

Re: Command Line GetLabel hangs

Post by lbauer » Wed Oct 19, 2011 9:19 am

Thanks for the update. What you discovered makes sense, since you were able to do smaller GETs but not one big one.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply