Timeout during large files upload

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

Moderator: SourceGear

Post Reply
wasp
Posts: 3
Joined: Tue Dec 01, 2009 4:59 am

Timeout during large files upload

Post by wasp » Tue Dec 01, 2009 5:39 am

Hello,
I'm using Fortress 1.1.1.4, and I'm experiencing a problem during large files upload.
Error details:

[01/12/2009 11.43.07] Preparing data to begin transaction
[01/12/2009 11.43.07] Beginning transaction
[01/12/2009 11.43.08] Add $/Totem/Updates/Versions/001/showcase.zip
[01/12/2009 11.53.08] Upload for item $/Totem/Updates/Versions/001/showcase.zip failed, retrying...
[01/12/2009 12.03.08] Upload for item $/Totem/Updates/Versions/001/showcase.zip failed, retrying...
[01/12/2009 12.13.08] Upload for item $/Totem/Updates/Versions/001/showcase.zip failed, retrying...
[01/12/2009 12.13.08] Ending the transaction
[01/12/2009 12.13.08] Upload for item $/Totem/Updates/Versions/001/showcase.zip failed too many times, aborting transaction.
Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.
The specific error was "Timeout dell'operazione."
An exception was encountered during the transaction. Exception: Timeout dell'operazione. in System.Net.HttpWebRequest.GetResponse()
in VaultClientOperationsLib.ClientInstance.UploadItem(ChangeSetItem item, String txID, Byte[]& streamBuffer, Int32& bytesWrittenThisFile, Boolean bIsImport)
in VaultClientOperationsLib.UploadThread.ProcessCommand(UploadThreadCommand command, UploadThreadCommandResult& outputResult)
[01/12/2009 12.13.09] An error occurred while trying to end a transaction.
[01/12/2009 12.13.09] An exception was encountered during the transaction. Exception: Server was unable to process request. ---> The process cannot access the file 'C:\WINDOWS\Temp\531ddf20-0e96-44f9-a641-8a08797c726b.vlt' because it is being used by another process. in System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
in System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
in VaultClientNetLib.ClientService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
in VaultClientNetLib.VaultConnection.EndTx(String strTxID, Int64& nNewRevision, VaultResponseItem[]& responses, Int32 nAction, VaultDateTime& txBeginDate)
in VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, String strChangeSetComment, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID, Int32[]& retBegEndTx)
[01/12/2009 12.13.09] Transaction failed
[01/12/2009 12.13.09] Transaction failed


As you can see from log, when upload takes more than 10 minutes it raises an exception and fails. Files are not that big (170MB), but big enough to take more than 10 minutes to be uploaded on our network infrastructure. The error comes up after exactly 600 seconds since upload start time, and after a few retries the whole transaction fails. I've been playing with client networking settings, following posts in this forum, but I've not been able to solve the issue. We've been using Fortress since 18 months and we are quite satisfied, but now we really need to upload these larger files and this problem is a blocking one for us. I think I found a message in this forum which was talking about a new setting introduced in Fortress 2.0 which would solve the problem, but for us the upgrade is not an option (we are a small company and the upgrade is too expensive for us).

We really need some help on this topic, and it is quite urgent...

Thanks in advance,


Roberto

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

Re: Timeout during large files upload

Post by lbauer » Tue Dec 01, 2009 8:04 am

We'd like to see a copy of the Fortress Server log that covers the time of the failed upload. It's called sgvault.log and is in %windir%\temp\sgvault on the server machine. Send the log zipped up to support at sourcegear.com, Attn: Linda. Please include a link to this forum post.
Linda Bauer
SourceGear
Technical Support Manager

wasp
Posts: 3
Joined: Tue Dec 01, 2009 4:59 am

Re: Timeout during large files upload

Post by wasp » Tue Dec 01, 2009 2:18 pm

Hello Linda,

I jut sent you the log file.

Thanks,


Roberto

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

Re: Timeout during large files upload

Post by lbauer » Tue Dec 01, 2009 4:37 pm

Since there's a timeout, I would suggest changing the client upload time.

The setting is in the registry: HKEY_CURRENT-USER\Software\SourceGear\Fortress\Client\Settings

Look for "UploadTimeoutSeconds"

The default value is 600; change it to 1200 or even more.

Let me know if this does not resolve the problem.
Linda Bauer
SourceGear
Technical Support Manager

wasp
Posts: 3
Joined: Tue Dec 01, 2009 4:59 am

Re: Timeout during large files upload

Post by wasp » Wed Dec 02, 2009 3:16 am

Thank you Linda, it worked perfectly :)

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

Re: Timeout during large files upload

Post by lbauer » Wed Dec 02, 2009 8:40 am

Glad that worked! Let us know if we can be of assistance in the future.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply