Le Thu  6/09/2007, Adrian von Bidder disait
> 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?

the 4.4.20-9 package of libdb4.4
 
> Can you try wiping the postgrey database (or moving it away) and start with 
> an empty database?

Ok I'll do this.

> (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?  

No no NFS, no Xen standard setup on an AMD Duron 850.
 
> --- 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();
> 
> 
> 

I'll first try to wipe the db. If it does not work I'll try the patch. And
I'll give you the results.

-- 
Erwan


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

Reply via email to