You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Martin Knauf <ma...@gmx.de> on 2006/09/25 18:11:20 UTC

Bug: 1.3.x Overwriting File which are locked by Windows

Hi,

we have an annoying bug with file which are locked by Windows. Mostly this  
files are dll file which are used by a programm.

Wenn this files are used and you update you svn folders you'll get an  
error message that the file couldn't be overwriten. The Result of this  
action is, that you can download the whole svn again. There is no way to  
work further with this folder.

Could you please fix it!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Mark Bardsley <ma...@6sigmadc.com>.
Martin Knauf wrote:

> Am 26.09.2006, 00:07 Uhr, schrieb Garrett Rooney  
> <ro...@electricjellyfish.net>:
>
>> On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
>>
>>> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
>>> > Hi,
>>> >
>>> > we have an annoying bug with file which are locked by Windows. 
>>> Mostly  this
>>> > files are dll file which are used by a programm.
>>> >
>>> > Wenn this files are used and you update you svn folders you'll get an
>>> > error message that the file couldn't be overwriten. The Result of 
>>> this
>>> > action is, that you can download the whole svn again. There is no 
>>> way  to
>>> > work further with this folder.
>>> >
>>> > Could you please fix it!
>>>
>>> No, this is a windows problem. There's no way to overwrite files in
>>> use by other programs: to that extent, there's no way to update your
>>> working copy...
>>
>>
>> Well, he seems to be implying that running an update in that situation
>> results in a busted working copy.  That seems bad.  I'd love to see
>> some actual transcripts of this problem...
>>
>> -garrett
>
>
>
> ok, here is Tortois log windows message wenn the file is in use:
>
>    Updated: C:\test\test2.dll
>    Updated: C:\test\test.dll
>    Error: In directory ' C:\test'
>    Error: Can't move ' C:\test\test.dll.tmp' to ' C:\test\test.dll':  
> Zugriff verweigert
>
> after closing the program which is using the file und doing an update  
> again:
>
>   Error: Working copy 'C:\test' locked
>   Error: Please execute the "Cleanup" command.
>
> cleaning up:
>
>   Subversion reported an error while doing a cleanup!
>   ---------------------------------------------------
>   In directory 'c:\test'
>   Can't copy 'c:\test\.svn\tmp\text-base\test2.dll.svn-base' to  
> 'c:\test\test2.dll.2.tmp': Das System kann die angagebene Datei nicht  
> finden.
>
> System can't find given file.
>
> test2.dll is a file that was updated at the same time as test.dll but 
> not  locked by a program.
>
I used to get this behaviour fairly often. My solution was to delete the 
whole folder with the offending file in it, then do an svn update. No 
need to delete the whole working copy ...

Of course, the fact that (parts of) the working copy can get broken this 
way does suggest there may be a bug.

In my case, it seemed to be the virus scanner which caused the locked 
files. Now I've set the virus scanner to ignore my working copies, and 
everything's OK.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Martin Knauf <ma...@gmx.de>.
Am 26.09.2006, 00:07 Uhr, schrieb Garrett Rooney  
<ro...@electricjellyfish.net>:

> On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
>> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
>> > Hi,
>> >
>> > we have an annoying bug with file which are locked by Windows. Mostly  
>> this
>> > files are dll file which are used by a programm.
>> >
>> > Wenn this files are used and you update you svn folders you'll get an
>> > error message that the file couldn't be overwriten. The Result of this
>> > action is, that you can download the whole svn again. There is no way  
>> to
>> > work further with this folder.
>> >
>> > Could you please fix it!
>>
>> No, this is a windows problem. There's no way to overwrite files in
>> use by other programs: to that extent, there's no way to update your
>> working copy...
>
> Well, he seems to be implying that running an update in that situation
> results in a busted working copy.  That seems bad.  I'd love to see
> some actual transcripts of this problem...
>
> -garrett


ok, here is Tortois log windows message wenn the file is in use:

    Updated: C:\test\test2.dll
    Updated: C:\test\test.dll
    Error: In directory ' C:\test'
    Error: Can't move ' C:\test\test.dll.tmp' to ' C:\test\test.dll':  
Zugriff verweigert

after closing the program which is using the file und doing an update  
again:

   Error: Working copy 'C:\test' locked
   Error: Please execute the "Cleanup" command.

cleaning up:

   Subversion reported an error while doing a cleanup!
   ---------------------------------------------------
   In directory 'c:\test'
   Can't copy 'c:\test\.svn\tmp\text-base\test2.dll.svn-base' to  
'c:\test\test2.dll.2.tmp': Das System kann die angagebene Datei nicht  
finden.

System can't find given file.

test2.dll is a file that was updated at the same time as test.dll but not  
locked by a program.








---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by sv...@mobsol.be.
Quoting Erik Huelsmann <eh...@gmail.com>:

> On 9/26/06, Martin Knauf <ma...@gmx.de> wrote:
> > Am 26.09.2006, 00:07 Uhr, schrieb Garrett Rooney
> > <ro...@electricjellyfish.net>:
> >
> > > On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
> > >> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
> > >> > Hi,
> > >> >
> > >> > we have an annoying bug with file which are locked by Windows. Mostly
> > >> this
> > >> > files are dll file which are used by a programm.
> > >> >
> > >> > Wenn this files are used and you update you svn folders you'll get an
> > >> > error message that the file couldn't be overwriten. The Result of this
> > >> > action is, that you can download the whole svn again. There is no way
> > >> to
> > >> > work further with this folder.
> > >> >
> > >> > Could you please fix it!
> > >>
> > >> No, this is a windows problem. There's no way to overwrite files in
> > >> use by other programs: to that extent, there's no way to update your
> > >> working copy...
> > >
> > > Well, he seems to be implying that running an update in that situation
> > > results in a busted working copy.  That seems bad.  I'd love to see
> > > some actual transcripts of this problem...
> > >
> > > -garrett
> >
> > yes, it is not possible anymore to commit. and I didn't found a way to fix
> > this problem. Nothing works, no clean up, etc.
>
> Ok. Well, you could really help me by doing this:
>
> - make sure test.dll is in use.
> - run update (which bails out)
> - look in the .svn/ directory and send me all log.* files you find there
>
> From the log files, I should be able to deduce which part of the code
> it is that generates this error; they'll also greatly help to
> reproduce the problem.
>

While the situation is slightly different, this looks a lot like issue 2355:
http://subversion.tigris.org/issues/show_bug.cgi?id=2355

Lieven.



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Martin Knauf <ma...@gmx.de>.
Hi,

the Working copy is on a NTFS dirve. OS WindwosXP

Martin


Am 27.09.2006, 14:48 Uhr, schrieb Erik Huelsmann <eh...@gmail.com>:

> On 9/27/06, Martin Knauf <ma...@gmx.de> wrote:
>> Hi,
>>
>> sorry but i'm not allowed to use 1.4. right now, so i can't test it.
>>
>> When we have changed the server to 1.4. I can tell you.
>
> There were remarks of problems with unknown error codes in a related
> issue. Do you have your working copy on an NFS drive? /me presumes
> not, but one can never be sure enough...
>
> bye,
>
> Erik.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/27/06, Martin Knauf <ma...@gmx.de> wrote:
> Hi,
>
> sorry but i'm not allowed to use 1.4. right now, so i can't test it.
>
> When we have changed the server to 1.4. I can tell you.

There were remarks of problems with unknown error codes in a related
issue. Do you have your working copy on an NFS drive? /me presumes
not, but one can never be sure enough...

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Martin Knauf <ma...@gmx.de>.
Hi,

sorry but i'm not allowed to use 1.4. right now, so i can't test it.

When we have changed the server to 1.4. I can tell you.

Martin



Am 26.09.2006, 22:55 Uhr, schrieb Erik Huelsmann <eh...@gmail.com>:

>> > >> No, this is a windows problem. There's no way to overwrite files in
>> > >> use by other programs: to that extent, there's no way to update  
>> your
>> > >> working copy...
>> > >
>> > > Well, he seems to be implying that running an update in that  
>> situation
>> > > results in a busted working copy.  That seems bad.  I'd love to see
>> > > some actual transcripts of this problem...
>> > >
>> > > -garrett
>> >
>> > yes, it is not possible anymore to commit. and I didn't found a way  
>> to fix
>> > this problem. Nothing works, no clean up, etc.
>>
>> Ok. Well, you could really help me by doing this:
>>
>> - make sure test.dll is in use.
>> - run update (which bails out)
>> - look in the .svn/ directory and send me all log.* files you find there
>>
>> From the log files, I should be able to deduce which part of the code
>> it is that generates this error; they'll also greatly help to
>> reproduce the problem.
>
> Martin sent me his logs privately. We've been trying to recreate the
> error with trunk, but we couldn't. Could you try to do the same with a
> 1.4 client?
>
> ** BEWARE **
> Don't access working copies you mean to be using with 1.3 with 1.4!
> They will be inaccessible from 1.3 afterwards: 1.4 uses a different
> format number and automatically upgrades for you.
>
> bye,
>
> Erik.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Erik Huelsmann <eh...@gmail.com>.
> > >> No, this is a windows problem. There's no way to overwrite files in
> > >> use by other programs: to that extent, there's no way to update your
> > >> working copy...
> > >
> > > Well, he seems to be implying that running an update in that situation
> > > results in a busted working copy.  That seems bad.  I'd love to see
> > > some actual transcripts of this problem...
> > >
> > > -garrett
> >
> > yes, it is not possible anymore to commit. and I didn't found a way to fix
> > this problem. Nothing works, no clean up, etc.
>
> Ok. Well, you could really help me by doing this:
>
> - make sure test.dll is in use.
> - run update (which bails out)
> - look in the .svn/ directory and send me all log.* files you find there
>
> From the log files, I should be able to deduce which part of the code
> it is that generates this error; they'll also greatly help to
> reproduce the problem.

Martin sent me his logs privately. We've been trying to recreate the
error with trunk, but we couldn't. Could you try to do the same with a
1.4 client?

** BEWARE **
Don't access working copies you mean to be using with 1.3 with 1.4!
They will be inaccessible from 1.3 afterwards: 1.4 uses a different
format number and automatically upgrades for you.

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 9/26/06, Erik Huelsmann <eh...@gmail.com> wrote:
> On 9/26/06, Martin Knauf <ma...@gmx.de> wrote:
> > Am 26.09.2006, 00:07 Uhr, schrieb Garrett Rooney
> > <ro...@electricjellyfish.net>:
> >
> > > On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
> > >> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
> > >> > Hi,
> > >> >
> > >> > we have an annoying bug with file which are locked by Windows. Mostly
> > >> this
> > >> > files are dll file which are used by a programm.
> > >> >
> > >> > Wenn this files are used and you update you svn folders you'll get an
> > >> > error message that the file couldn't be overwriten. The Result of this
> > >> > action is, that you can download the whole svn again. There is no way
> > >> to
> > >> > work further with this folder.
> > >> >
> > >> > Could you please fix it!
> > >>
> > >> No, this is a windows problem. There's no way to overwrite files in
> > >> use by other programs: to that extent, there's no way to update your
> > >> working copy...
> > >
> > > Well, he seems to be implying that running an update in that situation
> > > results in a busted working copy.  That seems bad.  I'd love to see
> > > some actual transcripts of this problem...
> > >
> > > -garrett
> >
> > yes, it is not possible anymore to commit. and I didn't found a way to fix
> > this problem. Nothing works, no clean up, etc.
>
> Ok. Well, you could really help me by doing this:
>
> - make sure test.dll is in use.
> - run update (which bails out)
> - look in the .svn/ directory and send me all log.* files you find there
>
> From the log files, I should be able to deduce which part of the code
> it is that generates this error; they'll also greatly help to
> reproduce the problem.

It also might be useful to try this with a 1.4 release, as many bugs
have been fixed there.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/26/06, Martin Knauf <ma...@gmx.de> wrote:
> Am 26.09.2006, 00:07 Uhr, schrieb Garrett Rooney
> <ro...@electricjellyfish.net>:
>
> > On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
> >> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
> >> > Hi,
> >> >
> >> > we have an annoying bug with file which are locked by Windows. Mostly
> >> this
> >> > files are dll file which are used by a programm.
> >> >
> >> > Wenn this files are used and you update you svn folders you'll get an
> >> > error message that the file couldn't be overwriten. The Result of this
> >> > action is, that you can download the whole svn again. There is no way
> >> to
> >> > work further with this folder.
> >> >
> >> > Could you please fix it!
> >>
> >> No, this is a windows problem. There's no way to overwrite files in
> >> use by other programs: to that extent, there's no way to update your
> >> working copy...
> >
> > Well, he seems to be implying that running an update in that situation
> > results in a busted working copy.  That seems bad.  I'd love to see
> > some actual transcripts of this problem...
> >
> > -garrett
>
> yes, it is not possible anymore to commit. and I didn't found a way to fix
> this problem. Nothing works, no clean up, etc.

Ok. Well, you could really help me by doing this:

- make sure test.dll is in use.
- run update (which bails out)
- look in the .svn/ directory and send me all log.* files you find there

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Martin Knauf <ma...@gmx.de>.
Am 26.09.2006, 00:07 Uhr, schrieb Garrett Rooney  
<ro...@electricjellyfish.net>:

> On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
>> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
>> > Hi,
>> >
>> > we have an annoying bug with file which are locked by Windows. Mostly  
>> this
>> > files are dll file which are used by a programm.
>> >
>> > Wenn this files are used and you update you svn folders you'll get an
>> > error message that the file couldn't be overwriten. The Result of this
>> > action is, that you can download the whole svn again. There is no way  
>> to
>> > work further with this folder.
>> >
>> > Could you please fix it!
>>
>> No, this is a windows problem. There's no way to overwrite files in
>> use by other programs: to that extent, there's no way to update your
>> working copy...
>
> Well, he seems to be implying that running an update in that situation
> results in a busted working copy.  That seems bad.  I'd love to see
> some actual transcripts of this problem...
>
> -garrett

yes, it is not possible anymore to commit. and I didn't found a way to fix  
this problem. Nothing works, no clean up, etc.

Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 9/25/06, Erik Huelsmann <eh...@gmail.com> wrote:
> On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
> > Hi,
> >
> > we have an annoying bug with file which are locked by Windows. Mostly this
> > files are dll file which are used by a programm.
> >
> > Wenn this files are used and you update you svn folders you'll get an
> > error message that the file couldn't be overwriten. The Result of this
> > action is, that you can download the whole svn again. There is no way to
> > work further with this folder.
> >
> > Could you please fix it!
>
> No, this is a windows problem. There's no way to overwrite files in
> use by other programs: to that extent, there's no way to update your
> working copy...

Well, he seems to be implying that running an update in that situation
results in a busted working copy.  That seems bad.  I'd love to see
some actual transcripts of this problem...

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bug: 1.3.x Overwriting File which are locked by Windows

Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/25/06, Martin Knauf <ma...@gmx.de> wrote:
> Hi,
>
> we have an annoying bug with file which are locked by Windows. Mostly this
> files are dll file which are used by a programm.
>
> Wenn this files are used and you update you svn folders you'll get an
> error message that the file couldn't be overwriten. The Result of this
> action is, that you can download the whole svn again. There is no way to
> work further with this folder.
>
> Could you please fix it!

No, this is a windows problem. There's no way to overwrite files in
use by other programs: to that extent, there's no way to update your
working copy...

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org