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

aborted dead transaction cleanup

From: D S <dougcodes_at_gmail.com>
Date: 2005-07-25 17:57:29 CEST

I had a couple of large commits fail on me in the past few days due to
some sort of network error on the client machine. I started the
commits again on a smaller scale and then appeared to have run out of
disk space on my repository partition on the server. When I checked, I
discovered that the two aborted commit transactions had not been
cleaned up. I read up on how to do this in the SVN book except I
forgot to login as the repository owner when I ran svnadmin rmtxns. I
realized this when I got the following error:

[doug@eagle repositories]$ svnlook info atb-test --transaction 21-1
doug
2005-07-25 08:12:35 -0400 (Mon, 25 Jul 2005)
22
checking in Scenario 3
[doug@eagle repositories]$ svnadmin rmtxns atb-test 21-1
svn: Transaction cleanup failed
svn: Can't remove 'atb-test/db/transactions/21-1.txn': Permission denied

So I went and logged in as svnowner and tried on the other dead
transaction and it worked. I tried on the first one again and got:

-bash-2.05b$ svnadmin rmtxns atb-test 21-1
svn: Reference to non-existent node '0.0.t21-1' in filesystem 'atb-test/db'
-bash-2.05b$ svnadmin lstxns atb-test
21-1

I can check the transactions dir and see there is something still
there. It appears to be some sort of props file (but it looks empty)
and the whole dir is only 932K vs the 2GB that was there before.

-bash-2.05b$ du -h atb-test/db/transactions/21-1.txn/
932K atb-test/db/transactions/21-1.txn

-bash-2.05b$ ls -al atb-test/db/transactions/21-1.txn/
total 936
drwxrwxr-x 2 svnowner svnowner 950272 Jul 25 10:55 .
drwxr-xr-x 4 svnowner svnowner 4096 Jul 25 11:14 ..
-rw-rw-r-- 1 svnowner svnowner 0 Jul 25 10:55 props

-bash-2.05b$ ls -al atb-test/db/transactions/21-1.txn/props
-rw-rw-r-- 1 svnowner svnowner 0 Jul 25 10:55
atb-test/db/transactions/21-1.txn/props

-bash-2.05b$ cat atb-test/db/transactions/21-1.txn/props
-bash-2.05b$

It appears that the first attempt at removal under my regular username
actually mostly worked (and accomplished my goal of freeing disk
space), but I still have some junk left lying around. So I have two
questions:

1. Is there a way for me to clean up the rest of this junk?
2. Do I need to?

Thanks

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 25 18:09:25 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.