You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ro...@att.net on 2004/09/02 16:11:43 UTC

Recovery problem - help!

I seem to have screwed up something, and now I don't know how to fix it. We recently started using svn for a big project. We're not using Apache to get to the repository, so I assume we're using svnserve - I was out of the office when the initial installation was done, so I wasn't privy to some of the finer points. Anyhow, I am working from an svn repository on a server which I had to reboot this morning. Now I can't get access to the repository.

After the reboot, I tried to check out the latest version of code. I got a message that I was refused access. So I went to the documentation, which indicated that by rebooting I may have left some lockfiles lying around and needed to 'rewind' the database. So I ran svnadmin recover. That has apparently made things worse. I did not run the command as root, but as a user, although not the user who installed and manages the database.

Now, no matter what I do, I get this message:
         svn: DB_RUNRECOVERY: Fatal error, run database recovery

I have tried running svnadmin recover again, this time as the user who (I believe) is the database manager, but I still get the same message. My boss is going to be extremely displeased if I've really lost access to the database, although we have backups and won't have lost everything. Help!

Robin

Re: Recovery problem - help!

Posted by Jacob Atzen <ja...@aub.dk>.
On Thu, Sep 02, 2004 at 04:11:43PM +0000, robin.cocking@att.net wrote:
> Now, no matter what I do, I get this message:
>          svn: DB_RUNRECOVERY: Fatal error, run database recovery
> 
> I have tried running svnadmin recover again, this time as the user who
> (I believe) is the database manager, but I still get the same message.
> My boss is going to be extremely displeased if I've really lost access
> to the database, although we have backups and won't have lost
> everything. Help!

Check the permissions on the files in /path/to/repository/db, that is
the db directory in your repository. These should all be read+write for
anyone who uses the repository. If the permissions are wrong, correct
them and recover again.

You may read further on the topic of permissions in the book:

<http://svnbook.red-bean.com/svnbook/ch06s05.html>

-- 
Cheers,
- Jacob Atzen


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