Solved

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

Posted on 2009-05-07
3
4,100 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

634 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