Bug#519707: Upgrade to new version of postgrey fails to start with FATAL: ERROR: ...

2009-09-11 Thread James Bottomley
On Sun, 2009-09-06 at 12:06 +0100, Antonio Radici wrote:
> thanks for your report, I wrote a preinst script which is running a
> db4.7_upgrade if we are upgrading from a version less than 1.31-1.

That sounds like a good fix, thanks.

> This is fixed in the git repo in collab-maint and it will be included in the
> next release.

Unfortunately, since I've already done this on my box, I don't really
have any way to test.

James





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#519707: Upgrade to new version of postgrey fails to start with FATAL: ERROR: ...

2009-09-06 Thread Antonio Radici
tag 519707 +confirmed pending
thanks

Hi James,
thanks for your report, I wrote a preinst script which is running a
db4.7_upgrade if we are upgrading from a version less than 1.31-1.

This is fixed in the git repo in collab-maint and it will be included in the
next release.

Cheers
Antonio



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#519707: Upgrade to new version of postgrey fails to start with FATAL: ERROR: ...

2009-03-14 Thread Adrian von Bidder
Heyho!

On Saturday 14 March 2009 16:18:23 James Bottomley wrote:
> postgrey: FATAL: ERROR: can't create DB environment: No such file or 
> directory (dbdir: /var/lib/postgrey uid/gid: 121,121)  

Arrgh.

I'll probably not get around to handle this for at least a week as I'm semi-
VAC next week, but since in postgrey the database doesn't contain really 
important data I see no reason not to just delete the database if this 
happens.

So if somebody feels like it: feel free to NMU.  I guess the proper thing to 
do is to force a new DB version by tightening the dependencies and then to 
warn the user and delete the postgrey database on upgrade.

cheers
-- vbi



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#519707: Upgrade to new version of postgrey fails to start with FATAL: ERROR: ...

2009-03-14 Thread James Bottomley
Package: postgrey
Version: 1.32-3
Severity: serious
Justification: Policy 2.2.1 "makes package to buggy to release"


This looks to be an incidental fault affecting postgrey, but the serious
consequence is that postgrey refuses to start.

What seems to have happened is that on the recent system upgrade
libberkeleydb-perl (a package upon which postgrey relies) was upgraded
to version 0.38-1.  This version moved from db4.6 to db4.7, which seem
to be mutually incompatible formats causing postgrey to fail instantly with

postgrey: FATAL: ERROR: can't create DB environment: No such file or directory 
(dbdir: /var/lib/postgrey uid/gid: 121,121)  

because it can no longer read the database files in /var/lib/postgrey

The only solution to this appears to be to dump the postgrey databases before
the upgrade and to reform them after (or simply to remove all the old files
losing the accumulated data).

I'm open to this being a severe bug in libberkeleydb-perl either since it
is the root cause, but I think posgrey will still have to acquire the
dump and restore package scripts to fix it.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (650, 'testing'), (500, 'stable')
Architecture: hppa (parisc)

Kernel: Linux 2.6.26-1-parisc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages postgrey depends on:
ii  adduser   3.110  add and remove users and groups
ii  debconf   1.5.25 Debian configuration management sy
ii  libberkeleydb-perl0.38-1 use Berkeley DB 4 databases from P
ii  libnet-dns-perl   0.65-1 Perform DNS queries from a Perl sc
ii  libnet-server-perl0.97-1 An extensible, general perl server
ii  perl  5.10.0-19  Larry Wall's Practical Extraction 
ii  ucf   3.0016 Update Configuration File: preserv

Versions of packages postgrey recommends:
ii  libdigest-sha1-perl   2.11-2+b1  NIST SHA-1 message digest algorith
ii  libnet-rblclient-perl 0.5-2  Queries multiple Realtime Blackhol
ii  libparse-syslog-perl  1.10-1 Perl module for parsing syslog ent
ii  postfix   2.5.5-1.1  High-performance mail transport ag

postgrey suggests no packages.

-- debconf information:
  postgrey/1.32-3_changeport:



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org