Solved

svn error: Internal error: Berkeley DB error for filesystem while opening environment

Posted on 2009-05-07
3
3,970 Views
Last Modified: 2013-11-25
hi,

i am getting this error in apache logs

[Thu May 07 13:41:34 2009] [error] [client xxx.xxx.xxx.xxx] (20014)Internal error: Berkeley DB error for filesystem '/svn/lmd/db' while opening environment:\n
[Thu May 07 13:41:34 2009] [error] [client xxx.xxx.xxx.xxx] Could not fetch resource information.  [500, #0]
[Thu May 07 13:41:34 2009] [error] [client xxx.xxx.xxx.xxx] Could not open the requested SVN filesystem  [500, #160029]

I tried

root@server:~# svnadmin recover /svn/lmd/db
svnadmin: Expected repository format '3' or '5'; found format '1'

root@server:~# svnadmin --version
svnadmin, version 1.5.1 (r32289)
   compiled Jul 24 2008, 20:53:51

Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository back-end (FS) modules are available:

* fs_base : Module for working with a Berkeley DB repository.
* fs_fs : Module for working with a plain file (FSFS) repository.

Any ideas how to recover this?




0
Comment
Question by:krisdigitx
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Mysidia
ID: 24332910
You normally use
 svnadmin recover /path/to/repository

not   /path/to/some/db/file/in/repository

Attempt subversion recovery first.
If not successful, you may need to attempt to recover DB using the tools in BDB

cd /svn/lmd/db
db_recover -h .
0
 

Author Comment

by:krisdigitx
ID: 24334051
hi,

i did

root@server# svnadmin recover /svn/lmd/
Repository lock acquired.
Please wait; recovering the repository may take some time...

Recovery completed.
The latest repos revision is 14226.
root@server#

does this mean it has recovered? then why is the error showing in apache log when i browse the url

[Fri May 08 09:34:40 2009] [error] [client xxx.xxx.xxx.xxx] (20014)Internal error: Berkeley DB error for filesystem '/svn/lmd/db' while opening environment:\n
[Fri May 08 09:34:40 2009] [error] [client xxx.xxx.xxx.xxx] Could not fetch resource information.  [500, #0]
[Fri May 08 09:34:40 2009] [error] [client xxx.xxx.xxx.xxx] Could not open the requested SVN filesystem  [500, #160029]
[Fri May 08 09:34:40 2009] [error] [client xxx.xxx.xxx.xxx] Could not open the requested SVN filesystem  [500, #160029]

0
 

Accepted Solution

by:
krisdigitx earned 0 total points
ID: 24361844
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now