[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: My repository is broken

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-05-13 08:42:02 CEST

On Thursday 12 May 2005 21:50, Samphan Raruenrom wrote:
> I really like Subversion. I have a little repository for my HTML CD
> Browser project. My repository is currently broken and I can't fix it
> myself.
> I did this :-
> >svn ci -m "add Images"
> Adding include\images
> Adding (bin) include\images\desc.gif
> .....
> Adding (bin) include\images\vertical_right.gif
> Transmitting file data ......................
> svn: Commit failed (details follow):
> svn: Can't remove '/home/svnroot/db/transactions/88-1.txn':
> The process cannot access the file because it is being used
> by another process.
> ------

I believe that error is misleading. Looking at the errors below, the
commit actually succeeded, but there was a failure post-commit (it wasn't
able to clean up the transaction file) so it errored out.

> After that :-
> >svn status
> ! .
> ! include
> A include\images
> ....
> A include\images\oss_07.gif
> >svn ci -m "add Images"
> Adding include\images
> svn: Commit failed (details follow):
> svn: File already exists: filesystem '/home/svnroot/db',
> transaction '89-1', path '/chantra/src/include/images'

This here means that it already believes the paths exist in the
repository. Transaction '89-1' is the one representing the current
commit attempt, not the location of the duplicate in the repository...

> >svn update
> svn: Failed to add directory 'include/images': object of
> the same name already exists
> -----
> I no longer be able to use the repository.
> I try (guess) 'svnadmin rmtxns /home/svnroot 89-1'.
> But it says 'svn: No such transaction'

Which is important to know right here.

> What should I do?

Check out a separate working copy somewhere else and make sure it contains
every thing that you expect it to. Then trash your other working copy.
If you really want to keep it, you'll need to remove the paths that are
conflicting and run 'svn up'.

As to why this occurred, I've found that it generally means some other
tool on the system is holding the file open (Anti-virus, indexing tools,
etc). I suggest taking a look there first, and filter out your
repository from those tools, if at all possible.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 13 08:49:08 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.