Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-05-07
3
Medium Priority
?
4,146 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

Give Your Engineering Team a Productivity Boost

Learn why container technology is so powerful and how it can provide your team with productivity gains and other benefits.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

730 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