Package: postgrey
Version: 1.21-1volatile4
Severity: normal

The subject is a little terse.  The actual syslog message reads as
follows:

postgrey[29999]: fatal: ERROR: can't create DB environment: No such
file or directory

It would help a lot if it would tell me *which* file/directory etc.
I've included a patch.

Now I know this:
postgrey[31049]: fatal: ERROR: can't create DB environment: No such
file or directory (dbdir: /var/lib/postgrey uid/gid: 111,111)

# ls -la /var/lib/postgrey/
total 5424
drwx------   2 postgrey root        4096 Feb 15 15:54 .
drwxr-xr-x  33 root     root        4096 Jan 25 22:32 ..
-rw-------  1 postgrey nogroup 10485760 Feb 13 02:37 log.0000000011
-rw-------  1 postgrey nogroup  2519040 Feb 15 15:30 postgrey.db
-rw-------  1 postgrey nogroup        0 Jul 15  2006 postgrey.lock
-rw-------  1 postgrey nogroup   143360 Feb 13 02:40 postgrey_clients.db

So what gives?

Thanks,

Scott Edwards <[EMAIL PROTECTED]> http://www.daxal.com/

--- /usr/sbin/postgrey.orig     2006-07-17 15:07:09.000000000 -0500
+++ /usr/sbin/postgrey  2007-02-15 15:54:24.000000000 -0600
@@ -519,7 +519,8 @@
         -Home     => $self->{server}{dbdir},
         -Flags    => 
DB_CREATE|DB_RECOVER|DB_INIT_TXN|DB_INIT_MPOOL|DB_INIT_LOG,
         -SetFlags => $setflags,
-    ) or die "ERROR: can't create DB environment: $!\n";
+    ) or die "ERROR: can't create DB environment: $! ("
+        ."dbdir: ".$self->{server}{dbdir}." uid/gid: $<,$>)\n";
 
     tie(%{$self->{postgrey}{db}}, 'BerkeleyDB::Btree',
         -Filename => 'postgrey.db',

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.33
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages postgrey depends on:
ii  adduser                    3.63          Add and remove users and groups
ii  debconf                    1.4.30.13     Debian configuration management sy
ii  libberkeleydb-perl         0.26-3        use Berkeley DB 4 databases from P
ii  libnet-dns-perl            0.48-1        Perform DNS queries from a Perl sc
ii  libnet-server-perl         0.87-3sarge1  An extensible, general perl server
ii  perl                       5.8.4-8sarge5 Larry Wall's Practical Extraction 
ii  ucf                        1.17          Update Configuration File: preserv

-- debconf information:
  postgrey/1.13-5_move-db:
  postgrey/1.14-1_lookup-by-subnet:
  postgrey/1.13-5_old-config:



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

Reply via email to