Hi Erwan,

On Thursday 06 September 2007 15.41:39 Erwan David wrote:

> Each time postgrey logs a "cleaning up main database" I get the
> following errors, then postgrey crashes, leaving the mail server
> blocked.
>
> nez-casse postgrey[2334]: FATAL: Can't call method "txn_commit" on an
> undefined value at /usr/sbin/postgrey line 257.

What version of libdb4.4 do you have installed?

Can you try wiping the postgrey database (or moving it away) and start with 
an empty database?

(Needless to say, I don't have this problem, and I did not wipe the database 
on upgrade.  I also haven't heard of this problem elsewhere.)

Is there anything special about your setup?` (Xen setup?  Database on 
NFS?)  Does the patch below at least give anything useful?  

--- postgrey.orig       2007-09-06 16:14:46.649282394 +0200
+++ postgrey    2007-09-06 16:15:50.152866998 +0200
@@ -251,7 +251,7 @@
                 }
             }
             my $db_cawl_obj = $self->{postgrey}{db_cawl_obj};
-            $txn = $db_env->txn_begin();
+            $txn = $db_env->txn_begin() or $self->mylog(1, "txn_begin: $!");
             $db_cawl_obj->Txn($txn);
             for my $key (@old_keys_cawl) { delete $cawl_db->{$key}; }
             $txn->txn_commit();



cheers
-- vbi

>
>
> -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
> 'experimental') Architecture: i386 (i686)
>
> Kernel: Linux 2.6.22-2-k7 (SMP w/1 CPU core)
> Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages postgrey depends on:
> ii  adduser                       3.105      add and remove users and
> groups ii  libberkeleydb-perl            0.31-1     use Berkeley DB 4
> databases from P ii  libnet-dns-perl               0.60-1     Perform DNS
> queries from a Perl sc ii  libnet-server-perl            0.94-1     An
> extensible, general perl server ii  perl                          5.8.8-7
>    Larry Wall's Practical Extraction ii  ucf                          
> 3.001      Update Configuration File: preserv
>
> Versions of packages postgrey recommends:
> ii  libdigest-sha1-perl           2.11-2     NIST SHA-1 message digest
> algorith ii  libnet-rblclient-perl         0.5-1      Queries multiple
> Realtime Blackhol pn  libparse-syslog-perl          <none>     (no
> description available) ii  postfix                       2.4.5-3   
> High-performance mail transport ag
>
> -- debconf information:
>   postgrey/1.13-5_move-db:
>   postgrey/1.13-5_old-config:
>   postgrey/1.14-1_lookup-by-subnet:



-- 
get my gpg key here: http://fortytwo.ch/gpg/92082481


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to