You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cory Wright <cw...@standblue.net> on 2004/12/18 23:29:12 UTC

"Unknown FS type 'bdb'" when accessed via apache

Hi,

I've installed Subversion + Apache 2.0.52 on a Red Hat 7.3 box and I 
have run into a problem.

Here's what is installed:

  Subversion 1.1.1
  BerkeleyDB 4.2.52
  Apache 2.0.52
  neon 0.24.7

Subversion was configured with the following options:

  --enable-dso
  --with-apr=/usr/local/apache2/bin/apr-config
  --with-apr-util=/usr/local/apache2/bin/apu-config
  --with-apxs=/usr/local/apache2/bin/apxs
  --with-berkeley-db=/usr/local/BerkeleyDB.4.2
  --with-editor=vi
  --with-zlib
  --with-python=/usr/local/bin/python2.3
  --with-ssl

The problem is that when I try to access the repositories via Apache,
I get an error:

  "Could not open the requested SVN filesystem"

and the Apache error_log reports this:

  [Sat Dec 18 16:18:02 2004] [error] [client x.x.x.x] (20014)Error string not specified yet: Unknown FS type 'bdb'
  [Sat Dec 18 16:18:02 2004] [error] [client x.x.x.x] Could not fetch resource information.  [500, #0]
  [Sat Dec 18 16:18:02 2004] [error] [client x.x.x.x] Could not open the requested SVN filesystem  [500, #160033]
  [Sat Dec 18 16:18:02 2004] [error] [client x.x.x.x] Could not open the requested SVN filesystem  [500, #160033]

The repositories have the correct filesystem permission, the directory
and all files/subdirectories are owned by nobody:nobody (the uid that
Apache runs as):

  # ls -la /var/svn/testing/ /var/svn/testing/db/
  /var/svn/testing/:
  total 36
  drwxrwsr-x    7 nobody   nobody       4096 Dec 17 17:24 .
  drwxrwsr-x    3 nobody   nobody       4096 Dec 17 17:04 .. 
  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:25 conf
  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:04 dav
  drwxrwxr-x    2 nobody   nobody       4096 Dec 17 17:24 db
  -r--r--r--    1 nobody   nobody          2 Dec 17 17:04 format
  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:04 hooks
  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:04 locks
  -rw-rw-r--    1 nobody   nobody        379 Dec 17 17:04 README.txt

  /var/svn/testing/db/:
  total 948
  drwxrwxr-x    2 nobody   nobody       4096 Dec 17 17:24 .
  drwxrwsr-x    7 nobody   nobody       4096 Dec 17 17:24 ..
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 changes
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 copies
  -rw-rw-r--    1 nobody   nobody       8192 Dec 17 17:04 __db.001
  -rw-rw-r--    1 nobody   nobody     270336 Dec 17 17:04 __db.002
  -rw-rw-r--    1 nobody   nobody     327680 Dec 17 17:04 __db.003
  -rw-rw-r--    1 nobody   nobody     737280 Dec 17 17:04 __db.004
  -rw-rw-r--    1 nobody   nobody      16384 Dec 17 17:04 __db.005
  -rw-rw-r--    1 nobody   nobody       1738 Dec 17 17:04 DB_CONFIG
  -rw-rw-r--    1 nobody   nobody          4 Dec 17 17:04 fs-type
  -rw-rw-r--    1 nobody   nobody     127347 Dec 18 18:02 log.0000000001
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 nodes
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 representations
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 revisions
  -rw-rw-r--    1 nobody   nobody      49152 Dec 18 18:02 strings
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 transactions
  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 uuids

Through the shell and `svn` I am able to check out the repository 
without incident:

  # setuidgid nobody id
  uid=99(nobody) gid=99(nobody) groups=99(nobody)
  # setuidgid nobody svn co file:///var/svn/testing /tmp/testing
  A  /tmp/testing/php.ini
  Checked out revision 1.

The fs format is bdb (created using `svnadmin` defaults):

  # cat /var/svn/testing/db/fs-type 
  bdb

My suspicion is that somehow the Apache module isn't supporting the
bdb fs backend for some reason, despite the following:

  # strings mod_dav_svn.so |grep db
  apr_dbm_open
  apr_dbm_exists
  apr_dbm_fetch
  apr_dbm_close
  apr_dbm_freedatum
  apr_dbm_delete
  apr_dbm_store
  dav_svn_hooks_propdb
  svn_stringbuf_appendbytes
  Can't open activity db
  could not open dbm files.
  Can't close activity db
  could not close dbm files.

I've seem messages in the archives where other's have gotten the
"Unknown FS type 'bdb'" error message when using the command line
tools, but I have not found anything about this happening when using
Apache to access the repository.

I'm out of ideas on this, so if there are any suggestions I would love
to hear them.  Please let me know if there is any other information is
needed.

Thanks in advance,

Cory Wright



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: "Unknown FS type 'bdb'" when accessed via apache

Posted by Max Bowsher <ma...@ukf.net>.
Cory Wright wrote:
> "Max Bowsher" <ma...@ukf.net> writes:
>
>>> I've seem messages in the archives where other's have gotten the
>>> "Unknown FS type 'bdb'" error message when using the command line
>>> tools, but I have not found anything about this happening when using
>>> Apache to access the repository.
>>>
>>> I'm out of ideas on this, so if there are any suggestions I would love
>>> to hear them.  Please let me know if there is any other information is
>>> needed.
>>
>> It sounds like libsvn_fs is failing to load libsvn_fs_base.
>>
>> Is /usr/local/BerkeleyDB4.2/lib in ld.so.conf?
>> Has ldconfig been run?
>>
>> You might want to try without --enable-dso - it's a less used option,
>> and there's really not much benefit to it unless you are trying to
>> make a subversion package with the BDB dependency optional.
>
> Hi Max, thanks for your suggestions.
>
> The /usr/local/BerkeleyDB4.2/lib path was already listed in ld.so.conf,
> however you were right about --enable-dso.  I removed the option and
> everything appears to be working now.  Do we know why that option would
> be causing a problem?

Not really. You could try looking at the code it enables (see 
libsvn_fs/fs-loader.c), and maybe add some debugging prints, or run it under 
gdb.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: "Unknown FS type 'bdb'" when accessed via apache

Posted by Cory Wright <cw...@standblue.net>.
"Max Bowsher" <ma...@ukf.net> writes:

>> I've seem messages in the archives where other's have gotten the
>> "Unknown FS type 'bdb'" error message when using the command line
>> tools, but I have not found anything about this happening when using
>> Apache to access the repository.
>>
>> I'm out of ideas on this, so if there are any suggestions I would love
>> to hear them.  Please let me know if there is any other information is
>> needed.
>
> It sounds like libsvn_fs is failing to load libsvn_fs_base.
>
> Is /usr/local/BerkeleyDB4.2/lib in ld.so.conf?
> Has ldconfig been run?
>
> You might want to try without --enable-dso - it's a less used option,
> and there's really not much benefit to it unless you are trying to
> make a subversion package with the BDB dependency optional.

Hi Max, thanks for your suggestions.  

The /usr/local/BerkeleyDB4.2/lib path was already listed in ld.so.conf,
however you were right about --enable-dso.  I removed the option and
everything appears to be working now.  Do we know why that option would
be causing a problem?

Thanks again for your help,

Cory Wright



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: "Unknown FS type 'bdb'" when accessed via apache

Posted by Max Bowsher <ma...@ukf.net>.
Cory Wright wrote:
> Hi,
>
> I've installed Subversion + Apache 2.0.52 on a Red Hat 7.3 box and I
> have run into a problem.
>
> Here's what is installed:
>
>  Subversion 1.1.1
>  BerkeleyDB 4.2.52
>  Apache 2.0.52
>  neon 0.24.7
>
> Subversion was configured with the following options:
>
>  --enable-dso
>  --with-apr=/usr/local/apache2/bin/apr-config
>  --with-apr-util=/usr/local/apache2/bin/apu-config
>  --with-apxs=/usr/local/apache2/bin/apxs
>  --with-berkeley-db=/usr/local/BerkeleyDB.4.2
>  --with-editor=vi
>  --with-zlib
>  --with-python=/usr/local/bin/python2.3
>  --with-ssl
>
> The problem is that when I try to access the repositories via Apache,
> I get an error:
>
>  "Could not open the requested SVN filesystem"
>
> and the Apache error_log reports this:
>
>  [Sat Dec 18 16:18:02 2004] [error] [client x.x.x.x] (20014)Error string 
> not
>  specified yet: Unknown FS type 'bdb' [Sat Dec 18 16:18:02 2004] [error]
>  [client x.x.x.x] Could not fetch resource information.  [500, #0] [Sat 
> Dec
>  18 16:18:02 2004] [error] [client x.x.x.x] Could not open the requested 
> SVN
> filesystem  [500, #160033] [Sat Dec 18 16:18:02 2004] [error] [client
> x.x.x.x] Could not open the requested SVN filesystem  [500, #160033]
>
> The repositories have the correct filesystem permission, the directory
> and all files/subdirectories are owned by nobody:nobody (the uid that
> Apache runs as):
>
>  # ls -la /var/svn/testing/ /var/svn/testing/db/
>  /var/svn/testing/:
>  total 36
>  drwxrwsr-x    7 nobody   nobody       4096 Dec 17 17:24 .
>  drwxrwsr-x    3 nobody   nobody       4096 Dec 17 17:04 ..
>  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:25 conf
>  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:04 dav
>  drwxrwxr-x    2 nobody   nobody       4096 Dec 17 17:24 db
>  -r--r--r--    1 nobody   nobody          2 Dec 17 17:04 format
>  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:04 hooks
>  drwxrwsr-x    2 nobody   nobody       4096 Dec 17 17:04 locks
>  -rw-rw-r--    1 nobody   nobody        379 Dec 17 17:04 README.txt
>
>  /var/svn/testing/db/:
>  total 948
>  drwxrwxr-x    2 nobody   nobody       4096 Dec 17 17:24 .
>  drwxrwsr-x    7 nobody   nobody       4096 Dec 17 17:24 ..
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 changes
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 copies
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 17 17:04 __db.001
>  -rw-rw-r--    1 nobody   nobody     270336 Dec 17 17:04 __db.002
>  -rw-rw-r--    1 nobody   nobody     327680 Dec 17 17:04 __db.003
>  -rw-rw-r--    1 nobody   nobody     737280 Dec 17 17:04 __db.004
>  -rw-rw-r--    1 nobody   nobody      16384 Dec 17 17:04 __db.005
>  -rw-rw-r--    1 nobody   nobody       1738 Dec 17 17:04 DB_CONFIG
>  -rw-rw-r--    1 nobody   nobody          4 Dec 17 17:04 fs-type
>  -rw-rw-r--    1 nobody   nobody     127347 Dec 18 18:02 log.0000000001
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 nodes
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 representations
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 revisions
>  -rw-rw-r--    1 nobody   nobody      49152 Dec 18 18:02 strings
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 transactions
>  -rw-rw-r--    1 nobody   nobody       8192 Dec 18 18:02 uuids
>
> Through the shell and `svn` I am able to check out the repository
> without incident:
>
>  # setuidgid nobody id
>  uid=99(nobody) gid=99(nobody) groups=99(nobody)
>  # setuidgid nobody svn co file:///var/svn/testing /tmp/testing
>  A  /tmp/testing/php.ini
>  Checked out revision 1.
>
> The fs format is bdb (created using `svnadmin` defaults):
>
>  # cat /var/svn/testing/db/fs-type
>  bdb
>
> My suspicion is that somehow the Apache module isn't supporting the
> bdb fs backend for some reason, despite the following:
>
>  # strings mod_dav_svn.so |grep db
>  apr_dbm_open
>  apr_dbm_exists
>  apr_dbm_fetch
>  apr_dbm_close
>  apr_dbm_freedatum
>  apr_dbm_delete
>  apr_dbm_store
>  dav_svn_hooks_propdb
>  svn_stringbuf_appendbytes
>  Can't open activity db
>  could not open dbm files.
>  Can't close activity db
>  could not close dbm files.
>
> I've seem messages in the archives where other's have gotten the
> "Unknown FS type 'bdb'" error message when using the command line
> tools, but I have not found anything about this happening when using
> Apache to access the repository.
>
> I'm out of ideas on this, so if there are any suggestions I would love
> to hear them.  Please let me know if there is any other information is
> needed.

It sounds like libsvn_fs is failing to load libsvn_fs_base.

Is /usr/local/BerkeleyDB4.2/lib in ld.so.conf?
Has ldconfig been run?

You might want to try without --enable-dso - it's a less used option, and 
there's really not much benefit to it unless you are trying to make a 
subversion package with the BDB dependency optional.

Max. 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org