You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Waseem Shahzad <wa...@curemd.com> on 2012/03/06 15:57:19 UTC

SVN Problems

Hi Guys

                   I am running SVN in the .Net environment. à Using TSVN and Ankh SVN

 

I have checkout the repository (almost 1 GB) and working in it. It gets stuck when on Commit with followings solutions:

 

1.       It shows locked status even other people not being used it in Lock.

2.       I will have to run CleanUp command , Why?

3.       After moving from VSS to SVN , Visual Studio gets slower down in saving files , Why?

 

Cheers, 

Waseem Bukhari

CMer 

 


RE: SVN Problems

Posted by Dominik Psenner <dp...@gmail.com>.
>> 1.       It shows locked status even other people not being used it in
>> Lock.
>>
>> 2.       I will have to run CleanUp command , Why?
>>

Good morning,

I ran into this problem recently, too.

First: So far I can tell that there might be some circumstances where the
working copy is left locked on svn update/status/add/remove operations even
though there was no error that caused a crash of svn. Thus all locks *should
be* released once svn terminates.

Second: I can confirm that it is not a problem with tortoisesvn since this
happened to me while using a self-written svn frontend that interacts with
svn on the commandline.

Since it did not happen very frequently to me I did not try to reproduce the
error and - to be honest - I don't bother because it happened only once or
twice.

But there is indeed some noise in the subversion-users mailing list
regarding this problem. I'm going to quote one:

On 29.02.2012 12:40 'Adrian Smith' wrote:
>Even with all of the precautions above on a single multi threaded
>application we see the error below on average seven times in two thousand
>individual updates.
>
>svn: E155004: Working copy '*' locked
>svn: E200033: database is locked
>svn: E200033: database is locked
>svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for 
>details)

On 29.02.2012 15:21 'Markus Schaber' responded:
>Two ideas:
>-       Some antivirus "live" scanner might lock the working copies.
>-       Some other background process like windows search indexer, or 
>TortoiseSVNs TSvnCache.exe might access the working copies in parallel.

Could something like this be your problem? Meaning: are you accessing your
working copy concurrently from different threads/processes? There might be
some interesting race conditions treasured in 1.7.X that haven't been found
yet, as Markus Schaber already mentioned on 14.02.2012 12:57:

>When SVN 1.7 working copies are accessed concurrently (different Threads or
Processes), I 
>often get SVN_ERR_WC_LOCKED.

Cheers,
Dominik


Re: SVN Problems

Posted by Alexey Neyman <st...@att.net>.
Hi Waseem,

On Tuesday, March 06, 2012 06:57:19 am Waseem Shahzad wrote:
> Hi Guys
> 
>                    I am running SVN in the .Net environment. à Using TSVN
> and Ankh SVN
> 
> 
> 
> I have checkout the repository (almost 1 GB) and working in it. It gets
> stuck when on Commit with followings solutions:
> 
> 
> 
> 1.       It shows locked status even other people not being used it in
> Lock.
> 
> 2.       I will have to run CleanUp command , Why?
> 
> 3.       After moving from VSS to SVN , Visual Studio gets slower down in
> saving files , Why?
> 
> 
> 
> Cheers,
> 
> Waseem Bukhari
> 
> CMer

With regard to #1 and #2, I think you're mixing two separate "locking" 
concepts. One is "locking" in the repository - which prevents other developers 
from working on a given file that's being modified by another person. Another 
is "locking" the working copy during certain operations (such as commit) to 
prevent concurrent changes in the working copy (i.e. adding new files).

As to why it gets "stuck in commit" - is it possible that you have some access 
control scripts on the repository side? Running 1GB commit through them may 
take substantial time, depending on what those scripts do. Such repository-
side scripts may also be the reason why saving files is slower.

Regards,
Alexey.

Re: SVN Problems

Posted by Michael Diers <md...@elego.de>.
On 2012-03-06 15:57, Waseem Shahzad wrote:
> *Hi Guys*
> 
>                    I am running SVN in the .Net environment. à Using
> *TSVN* and *Ankh SVN*
> 
>  
> 
> I have checkout the repository (almost 1 GB) and working in it. It gets
> stuck when on Commit with followings solutions:
> 
>  
> 
> 1.       It shows *locked status* even other people not being used it in
> Lock.
> 
> 2.       I will have to run *CleanUp* command , Why?
> 
> 3.       After moving from VSS to SVN , *Visual Studio gets slower down
> in saving files* , Why?
> 
>  
> 
> Cheers,
> 
> Waseem Bukhari
> 
> CMer

Waseem,

Your are not going to get much help with this sort of unspecific
questions. (Yes, your questions and explanations are too hand-wavy to
make anything of them.) As far as we can tell, the answers might well be
"Looks like a bad phase of the moon," and "Well, that sort of thing
sometimes happens."

If you are actually looking for help, you need to show that you have
invesitgated the situation in some depth and that there is _something_
that other people might be able to duplicate in their environments.

http://catb.org/esr/faqs/smart-questions.html

-- 
Michael Diers, elego Software Solutions GmbH, http://www.elegosoft.com