Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I tried to access svn repo from the browser I'm getting the below error in the syslog. Can I know how do i repair it using any svn tools.

  Error string not specified yet: Berkeley DB error while opening environment for filesystem / var/svn/1761/db:\nDB_RUNRECOVERY: Fatal error, run database recovery

Thanks & Regards Caterpillar

share|improve this question

1 Answer 1

Use "svn-admin recover" on the repository, as the svn user. First get sure that there isn't any other system error like a disk drive error, filesystem corruption, filesystem full.

share|improve this answer
    
Thanks for the reply. I checked whatever you said, I have a weekly backup for all the svn repos. I checked this repo's log file. it is as below error. svn: Berkeley DB error while opening environment for filesystem /var/svn2/1761/db: DB_RUNRECOVERY: Fatal error, run database recovery svn: bdb: PANIC: fatal region error detected; run recovery svn: Berkeley DB error while opening environment for filesystem /var/svn2/1761/db: DB_RUNRECOVERY: Fatal error, run database recovery svn: bdb: PANIC: fatal region error detected; run recovery –  Caterpillar Mar 2 '12 at 7:03
    
Did you try to run the "svn-admin recovery /path/to/repo" ? –  wazoox Mar 2 '12 at 21:14
    
I tried it, It showed as below. Repository lock acquired. Please wait; recovering the repository may take some time... Recovery completed. The latest repos revision is 684. Even after that the issues did not resolve. Anyhow I have restored from backup, But everytime restoration is not the solution. I have faced the same issue twice in a week with another repo. :( –  Caterpillar Mar 3 '12 at 18:06
    
Well, hard to know what's wrong. What's the software and hardware configuration? (linux distro, memory, hard disk drive). I'd look for a software update first, than for some hardware error. Run memtest86+ and check your disk drives for defects (run badblocks). –  wazoox Mar 4 '12 at 20:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.