Link to home
Start Free TrialLog in
Avatar of krisdigitx
krisdigitx

asked on

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?




Avatar of Mysidia
Mysidia
Flag of United States of America image

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 .
Avatar of krisdigitx
krisdigitx

ASKER

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]

ASKER CERTIFIED SOLUTION
Avatar of krisdigitx
krisdigitx

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial