[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4213
  • Last Modified:

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

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
krisdigitx
Asked:
krisdigitx
  • 2
1 Solution
 
MysidiaCommented:
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
 
krisdigitxAuthor Commented:
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
 
krisdigitxAuthor Commented:
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now