[Issues] [mod_gnutls 0000164]: Cannot create DBM Cache - episode 2
Mantis Bug Tracker
issues at outoforder.cc
Sat Oct 1 04:33:39 EDT 2011
The following issue requires your FEEDBACK.
======================================================================
http://issues.outoforder.cc/view.php?id=164
======================================================================
Reported By: e-ndy
Assigned To: dashula
======================================================================
Project: mod_gnutls
Issue ID: 164
Category: Configuration Issue
Reproducibility: always
Severity: major
Priority: high
Status: feedback
Apache Version: httpd-2.2.19
======================================================================
Date Submitted: 2011-09-16 12:37 EET
Last Modified: 2011-10-01 10:33 EET
======================================================================
Summary: Cannot create DBM Cache - episode 2
Description:
gdbm, dbm options in GnuTLSCache directive doesn't work at all,
apr-util is compiled with berkeley db 4.8 and mod_gnutls also.
the only cache options working are memcache and none.
Steps to Reproduce:
1) install fedora 15
2) 'yum install mod_gnutls' (installs old version)
3) service httpd start
4) 'yum update
http://jkastner.fedorapeople.org/mod_gnutls/0.5.10/1.fc15/mod_gnutls-0.5.10-1.fc15.x86_64.rpm'
5) service httpd restart
6) check results
Additional Information:
# chown apache.apache /var/cache/mod_gnutls/
# chmod 0777 /var/cache/mod_gnutls/
# service httpd restart
Restarting httpd (via systemctl): Job failed. See system logs and 'systemctl
status' for details.
[FAILED]
# ls -lad /var/cache/mod_gnutls/
drwxrwxrwx. 2 apache apache 4096 Sep 16 10:57 /var/cache/mod_gnutls/
# strace `which httpd`
.....
stat("/var/cache/mod_gnutls", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open("/var/cache/mod_gnutls", O_RDWR) = -1 EISDIR (Is a directory)
write(2, "[Fri Sep 16 12:28:02 2011] [erro"..., 143) = 143
write(2, "(120021)APR does not understand "..., 108) = 108
exit_group(-1) = ?
http://jkastner.fedorapeople.org/mod_gnutls/0.5.10/1.fc15/build.log contains
build log for package used for update.
======================================================================
----------------------------------------------------------------------
(0000288) dashula (manager) - 2011-09-26 06:23
http://issues.outoforder.cc/view.php?id=164#c288
----------------------------------------------------------------------
Can u reproduce this with:
http://modgnutls.sourceforge.net/downloads/mod_gnutls-0.5.10.tar.gz
I didn't build that RPM, so try the tarball.
----------------------------------------------------------------------
(0000290) e-ndy (reporter) - 2011-09-29 10:11
http://issues.outoforder.cc/view.php?id=164#c290
----------------------------------------------------------------------
that file was used for building:
you can extract that form
http://jkastner.fedorapeople.org/mod_gnutls/0.5.10/1.fc15/mod_gnutls-0.5.10-1.fc15.src.rpm
----------------------------------------------------------------------
(0000291) dashula (manager) - 2011-10-01 10:24
http://issues.outoforder.cc/view.php?id=164#c291
----------------------------------------------------------------------
What is the exact error you are getting?
If you get:
[error] (120022)APR does not understand this error code: GnuTLS: Cannot create
DBM Cache at `/var/cache/gnutls/cache'
(120022)APR does not understand this error code: GnuTLS: Post Config for
GnuTLSCache Failed. Shutting Down.
Then you should delete the file cache file and restart Apache.
----------------------------------------------------------------------
(0000292) dashula (manager) - 2011-10-01 10:33
http://issues.outoforder.cc/view.php?id=164#c292
----------------------------------------------------------------------
All the cache options seem to work 100% for me, I built the so from the rpm and
used the same configuration that you have provided.
AFAIK, gdbm & dbm both depend on libdb.so, see below.
# ldd -v mod_gnutls.so
linux-gate.so.1 => (0x00fdd000)
libapr_memcache.so.0 => /usr/local/apache2/lib/libapr_memcache.so.0
(0x00475000)
libaprutil-1.so.0 => /usr/local/apache2/lib/libaprutil-1.so.0
(0x00611000)
libapr-1.so.0 => /usr/local/apache2/lib/libapr-1.so.0 (0x00323000)
libuuid.so.1 => /lib/libuuid.so.1 (0x00be5000)
librt.so.1 => /lib/librt.so.1 (0x0020f000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00bb2000)
libdb-4.8.so => /usr/lib/libdb-4.8.so (0x00cd0000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00ef7000)
libgnutls.so.25 => /usr/lib/libgnutls.so.25 (0x007ac000)
libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00551000)
libnettle.so.4 => /usr/lib/libnettle.so.4 (0x004db000)
libgmp.so.3 => /usr/lib/libgmp.so.3 (0x008f3000)
libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0x00652000)
libz.so.1 => /usr/lib/libz.so.1 (0x005ce000)
libdl.so.2 => /lib/libdl.so.2 (0x009bc000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00136000)
libc.so.6 => /lib/libc.so.6 (0x009c1000)
/lib/ld-linux.so.2 (0x002e0000)
libfreebl3.so => /usr/lib/libfreebl3.so (0x0018d000)
Version information:
./mod_gnutls.so:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libgnutls.so.25 (GNUTLS_2_8) => /usr/lib/libgnutls.so.25
libgnutls.so.25 (GNUTLS_2_12) => /usr/lib/libgnutls.so.25
libgnutls.so.25 (GNUTLS_1_4) => /usr/lib/libgnutls.so.25
/usr/local/apache2/lib/libapr_memcache.so.0:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/local/apache2/lib/libaprutil-1.so.0:
libcrypt.so.1 (GLIBC_2.0) => /lib/libcrypt.so.1
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/local/apache2/lib/libapr-1.so.0:
libuuid.so.1 (UUID_1.0) => /lib/libuuid.so.1
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.1.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.4) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.10) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.9) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libuuid.so.1:
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/librt.so.1:
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_PRIVATE) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libcrypt.so.1:
libfreebl3.so (NSSRAWHASH_3.12.3) => /usr/lib/libfreebl3.so
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libdb-4.8.so:
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libexpat.so.1:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libgnutls.so.25:
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libtasn1.so.3 (LIBTASN1_0_3) => /usr/lib/libtasn1.so.3
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libtasn1.so.3:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libnettle.so.4:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libgmp.so.3:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.7) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libhogweed.so.2:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libz.so.1:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libdl.so.2:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
/lib/libpthread.so.0:
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libc.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
/usr/lib/libfreebl3.so:
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.7) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
Can you confirm that you have linked mod_gnutls against libdb ?
Can you perhaps post the output of `ldd -v mod_gnuls.so` too?
Issue History
Date Modified Username Field Change
======================================================================
2011-09-16 12:37 e-ndy New Issue
2011-09-26 06:23 dashula Note Added: 0000288
2011-09-26 06:23 dashula Assigned To => dashula
2011-09-26 06:23 dashula Status new => feedback
2011-09-29 10:11 e-ndy Note Added: 0000290
2011-09-29 10:11 e-ndy Status feedback => assigned
2011-10-01 10:24 dashula Note Added: 0000291
2011-10-01 10:33 dashula Note Added: 0000292
2011-10-01 10:33 dashula Status assigned => feedback
======================================================================
More information about the Issues
mailing list