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

Repository broken, recover fails

From: Chris Wilson <chris_at_netservers.co.uk>
Date: 2003-06-09 11:49:18 CEST

Hi all,

I came into work this morning to find a weird problem. I cannot check
anything into the repository:

  [root@chris arp_antidote]# svn ci -F ../svn-commit.tmp .
  Adding arp_antidote/antidote2.diff
  Deleting arp_antidote/antidote2.diff.gz
  svn: Berkeley DB error
  svn: Commit failed (details follow):
  svn: Berkeley DB error while appending string for filesystem
    /home/svn/root/db:
  DB_RUNRECOVERY: Fatal error, run database recovery

So I ran recover:

  [root@chris arp_antidote]# svnadmin recover /home/svn/root
  Acquiring exclusive lock on repository db.
  Recovery is running, please stand by...svn: Berkeley DB error
  svn: DB_INCOMPLETE: Cache flush was unable to complete

I ran it under strace and observed:

open("/home/svn/root/db/log.0000010786", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 300064, [300064], SEEK_SET) = 0
read(4, "\350\223\4\0003\204Gv@\0\0\0001\0\0\0\324*\4\200\"*\0\0"..., 64)
= 64
time([1055151215]) = 1055151215
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {2, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {4, 0}) = 0 (Timeout)
close(4) = 0
...
write(2, "svn: Berkeley DB error\n", 23svn: Berkeley DB error
) = 23

This seems very weird, I can't imagine why it sleeps for a few seconds
before printing the error.

I ran recover several times, and at one point it claimed to have worked:

  [root@chris arp_antidote]# svnadmin recover /home/svn/root
  Acquiring exclusive lock on repository db.
  Recovery is running, please stand by...
  Recovery completed.
  The latest repos revision is 1231.

Then I can at least check stuff out. But I tried the same checkin, and it
broke the repository again.

I hope someone can help me with this problem, since it's blocking an
important task. Also, I'm afraid to do other checkins in case they break
it too.

Cheers, Chris.

-- 
   ___ __     _
 / __// / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 9 11:50:16 2003

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

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