You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Marziou, Gael" <ga...@hp.com> on 2008/10/28 16:33:21 UTC

Zombie files prevent me from re-adding deleted file

Hello,

A user has deleted a file from our SVN repository and now it's
impossible for anybody to re-add this file again.

Each time we commit, we get this error below which seems to mean that
the file was not completely deleted and still exists as a kind of
zombie.


It happens for some other files that were also deleted by this
particular user.

Our repository is running on Windows 2003 using SVN 1.4.6 and fsfs.

I looked at the doc and the FAQ but did not find any admin command
that would help me to find and fix these zombies.

Thanks for any suggestions,

Gael


------------- error on commit --------

svn commit
Adding psg\PSG_Commercial_Compaq_t5xxxThinClient_Start_All_PUB_EN.spark
svn: Commit failed (details follow):
svn: File '/svn/authors/trunk/sparks/public/psg/PSG_Commercial_Compaq_t5xxxThinC
lient_Start_All_PUB_EN.spark' already exists
svn: Your commit message was left in a temporary file:
svn:    'C:/gts/trunk/sparks/public/svn-commit.tmp'


------------- access.log ------------

16.16.249.212 - - [28/Oct/2008:15:57:38 +0000] "PROPFIND /svn/authors/trunk/sparks/public/psg/PSG_Commercial_Compaq_t5xxxThinClient_Start_All_PUB_EN.spark HTTP/1.1" 207 899
16.16.249.212 - - [28/Oct/2008:15:57:42 +0000] "OPTIONS /svn/authors/trunk/sparks/public/psg HTTP/1.1" 200 191
16.16.249.212 - - [28/Oct/2008:15:57:42 +0000] "MKACTIVITY /svn/authors/!svn/act/82227b78-d191-bb47-ab28-9858e95de1d5 HTTP/1.1" 401 534
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "MKACTIVITY /svn/authors/!svn/act/82227b78-d191-bb47-ab28-9858e95de1d5 HTTP/1.1" 201 365
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "PROPFIND /svn/authors/trunk/sparks/public/psg HTTP/1.1" 207 462
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "PROPFIND /svn/authors/!svn/vcc/default HTTP/1.1" 207 407
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "CHECKOUT /svn/authors/!svn/bln/4954 HTTP/1.1" 201 382
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "PROPPATCH /svn/authors/!svn/wbl/82227b78-d191-bb47-ab28-9858e95de1d5/4954 HTTP/1.1" 207 359
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "PROPFIND /svn/authors/trunk/sparks/public/psg HTTP/1.1" 207 439
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:43 +0000] "CHECKOUT /svn/authors/!svn/ver/4878/trunk/sparks/public/psg HTTP/1.1" 201 401
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:44 +0000] "PROPFIND /svn/authors/trunk/sparks/public/psg/PSG_Commercial_Compaq_t5xxxThinClient_Start_All_PUB_EN.spark HTTP/1.1" 207 899
16.16.249.212 - emea\\marziou [28/Oct/2008:15:57:45 +0000] "DELETE /svn/authors/!svn/act/82227b78-d191-bb47-ab28-9858e95de1d5 HTTP/1.1" 204 -



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


RE: Zombie files prevent me from re-adding deleted file

Posted by "Marziou, Gael" <ga...@hp.com>.
I tested the script, the "all" option works well.
Unfortunately the "per version" option does not fully work: it removes the lock but this does not seem to be enough.

So, as a workaround, I run a remove all in the post-commit hook.

Gael

> -----Original Message-----
> From: Marziou, Gael
> Sent: Tuesday, October 28, 2008 7:49 PM
> To: users@subversion.tigris.org
> Subject: RE: Zombie files prevent me from re-adding deleted file
>
> Thanks a lot Kevin, I checked with the repo browser and you
> were right there is still a lock on this file.
>
> Tomorrow, I'll give a try at the Python script to delete the
> zombie locks and also use it in post commit hook.
>
> Thanks & regards,
>
> Gael
>
>
> ________________________________
>
>         From: kmradke@rockwellcollins.com
> [mailto:kmradke@rockwellcollins.com]
>         Sent: Tuesday, October 28, 2008 6:58 PM
>         To: Marziou, Gael
>         Cc: users@subversion.tigris.org
>         Subject: Re: Zombie files prevent me from re-adding
> deleted file
>
>
>
>         "Marziou, Gael" <ga...@hp.com> wrote on
> 10/28/2008 11:33:21 AM:
>         >
>         > A user has deleted a file from our SVN repository
> and now it's
>         > impossible for anybody to re-add this file again.
>         >
>         > Each time we commit, we get this error below which
> seems to mean that
>         > the file was not completely deleted and still
> exists as a kind of
>         > zombie.
>         >
>         >
>         > It happens for some other files that were also
> deleted by this
>         > particular user.
>         >
>         > Our repository is running on Windows 2003 using SVN
> 1.4.6 and fsfs.
>         >
>         > I looked at the doc and the FAQ but did not find
> any admin command
>         > that would help me to find and fix these zombies.
>
>         There is a contrib python script that can help:
>
>
> http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/rem
> ove-zombie-locks.py
>
>         Or, if you are using tortoiseSVN, use the
> repo-browser, set the
>         revision to the one prior to where the file was
> deleted and select
>         the file and select "break lock".
>
>         Zombie locks occur when a file that has been "locked"
> is deleted.
>         (And svn does not unlock it when it is committed.)
>
>         Kevin R.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

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


RE: Zombie files prevent me from re-adding deleted file

Posted by "Marziou, Gael" <ga...@hp.com>.
Thanks a lot Kevin, I checked with the repo browser and you were right there is still a lock on this file.

Tomorrow, I'll give a try at the Python script to delete the zombie locks and also use it in post commit hook.

Thanks & regards,

Gael


________________________________

        From: kmradke@rockwellcollins.com [mailto:kmradke@rockwellcollins.com]
        Sent: Tuesday, October 28, 2008 6:58 PM
        To: Marziou, Gael
        Cc: users@subversion.tigris.org
        Subject: Re: Zombie files prevent me from re-adding deleted file



        "Marziou, Gael" <ga...@hp.com> wrote on 10/28/2008 11:33:21 AM:
        >
        > A user has deleted a file from our SVN repository and now it's
        > impossible for anybody to re-add this file again.
        >
        > Each time we commit, we get this error below which seems to mean that
        > the file was not completely deleted and still exists as a kind of
        > zombie.
        >
        >
        > It happens for some other files that were also deleted by this
        > particular user.
        >
        > Our repository is running on Windows 2003 using SVN 1.4.6 and fsfs.
        >
        > I looked at the doc and the FAQ but did not find any admin command
        > that would help me to find and fix these zombies.

        There is a contrib python script that can help:

        http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/remove-zombie-locks.py

        Or, if you are using tortoiseSVN, use the repo-browser, set the
        revision to the one prior to where the file was deleted and select
        the file and select "break lock".

        Zombie locks occur when a file that has been "locked" is deleted.
        (And svn does not unlock it when it is committed.)

        Kevin R.


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


Re: Zombie files prevent me from re-adding deleted file

Posted by km...@rockwellcollins.com.
"Marziou, Gael" <ga...@hp.com> wrote on 10/28/2008 11:33:21 AM:
> 
> A user has deleted a file from our SVN repository and now it's
> impossible for anybody to re-add this file again.
> 
> Each time we commit, we get this error below which seems to mean that
> the file was not completely deleted and still exists as a kind of
> zombie.
> 
> 
> It happens for some other files that were also deleted by this
> particular user.
> 
> Our repository is running on Windows 2003 using SVN 1.4.6 and fsfs.
> 
> I looked at the doc and the FAQ but did not find any admin command
> that would help me to find and fix these zombies.

There is a contrib python script that can help:

http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/remove-zombie-locks.py

Or, if you are using tortoiseSVN, use the repo-browser, set the
revision to the one prior to where the file was deleted and select
the file and select "break lock".

Zombie locks occur when a file that has been "locked" is deleted.
(And svn does not unlock it when it is committed.)

Kevin R.