SVN/Subversion stalled

From Site5Wiki

Jump to: navigation, search

Are you trying to perform tasks on a Subversion repository only to find that the process appears to be hung or has stalled on you ? This is likely a result of a corruption with the Berkley DB. The following is a suggested fix for this issue. Please back up important data required prior to making this change in case something goes wrong.


Backup your repository ( in the example below, the repository data folder is named repo )

cp -raf repos repos.orig

Use the db_recover utility from the DB Tools package to hopefully recover the database:

db_recover -h repos/db/

Verify the recovered DB:

svnadmin verify ./repos/


You should find the issue is resolved. If you bump into this issue regularly, you may want to consider switching to fsfs ( http://svn.collab.net/repos/svn/trunk/notes/fsfs ) as a database backend for your repository. For details on converting an existing database see the following documentation: http://subversion.tigris.org/faq.html#bdb-fsfs-convert


Sources for this document include: http://www.adamgreenfield.com/2007/1/19/subversion-hanging

Image:Tag_red.png Related wiki pages: Capistrano, Switchtower, Subversive, TortoiseSVN

Personal tools