On 09/22/2010 09:11 AM, Hardy Griech wrote:
> On 22.09.2010 08:56, Nikos Mavrogiannopoulos wrote:
> :
>>> GnuTLSCache is pointing to a file in a writable directory
>>> (/tmp-ram/gnutls), but: there are only gnutls.dir and gnutls.pag
>>> contained in that directory, no gnutls without extension.
>>
>> This sounds normal. The db backend does use those files. Could you try
>> deleting them and restarting? Do you get the same error? Which version
>> of mod_gnutls do you use?
[...]
> [Wed Sep 22 09:08:12 2010] [debug] gnutls_cache.c(355): [gnutls_cache] 
> Cleaned up cache '/tmp-ram/gnutls'. Deleted 0 and left 0
> [Wed Sep 22 09:08:12 2010] [debug] gnutls_cache.c(461): (22)Invalid 
> argument: [gnutls_cache] error storing in cache '/tmp-ram/gnutls'

That's strange. What is the output with the patch (prints the DB
internal error as well)?


regards,
Nikos



diff --git a/configure.ac b/configure.ac
index 90f4ab6..6b81ded 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
 dnl 
-AC_INIT(mod_gnutls, 0.5.8)
+AC_INIT(mod_gnutls, 0.5.9)
 OOO_CONFIG_NICE(config.nice)
 MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION
 AC_PREREQ(2.53)
diff --git a/src/gnutls_cache.c b/src/gnutls_cache.c
index 3ca8cb5..2653b4e 100644
--- a/src/gnutls_cache.c
+++ b/src/gnutls_cache.c
@@ -456,12 +456,15 @@ static int dbm_cache_store(void* baton, gnutls_datum_t 
key,
     }
 
     rv = apr_dbm_store(dbm, dbmkey, dbmval);
-    
     if (rv != APR_SUCCESS) {
+        char err[128], *p;
+        
+        p = apr_dbm_geterror(dbm, NULL, err, sizeof(err));
+        
         ap_log_error(APLOG_MARK, APLOG_DEBUG, rv,
                      ctxt->c->base_server,
-                     "[gnutls_cache] error storing in cache '%s'",
-                     ctxt->sc->cache_config);
+                     "[gnutls_cache] error storing in cache '%s': %s",
+                     ctxt->sc->cache_config, p!=NULL?p:"unknown error");
         apr_dbm_close(dbm);
         apr_pool_destroy(spool);
         return -1;
_______________________________________________
Modules mailing list
Modules@lists.outoforder.cc
http://lists.outoforder.cc/mailman/listinfo/modules

Reply via email to