[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

exim trouble with DB file...



since late december, exim has had trouble with "retry" and
"wait-remote_smtp" files in /var/spool/exim/db.

i get this daily in my cron reports--and i'm not sure where to
fix it (or if it needs fixing):

	/etc/cron.daily/exim:
	failed to open DB file /var/spool/exim/db/retry: Invalid argument
	failed to open DB file /var/spool/exim/db/wait-remote_smtp: Invalid argument
	run-parts: /etc/cron.daily/exim exited with return code 1

where do i figure out where the invalid argument is coming from?

the permissions seem okay for the mail user:

	# /bin/ls -l /var/spool/exim/db
	total 40
	-rw-r-----    1 mail     mail        20480 Feb  3 17:53 retry
	-rw-r-----    1 mail     mail            0 Dec 31 09:03 retry.lockfile
	-rw-r-----    1 mail     mail        20480 Feb  3 17:49 wait-remote_smtp
	-rw-r-----    1 mail     mail            0 Dec 31 09:13 wait-remote_smtp.lockfile

the manpage for exim_tidydb (which is what is generating the
messages via /etc/cron.daily/exim) says it just needs two args
(exim's spool directory and the DBM database to spiff up); and
these are the two args which it gets.

the files don't seem chronically open:

	# lsof | grep exim
	exim      13362     root  cwd    DIR        3,7     4096      62741 /var/spool/exim
	exim      13362     root  rtd    DIR        3,2     1024          2 /
	exim      13362     root  txt    REG        3,6   471048      32972 /usr/sbin/exim
	exim      13362     root  mem    REG        3,2    90210      16154 /lib/ld-2.2.5.so
	exim      13362     root  mem    REG        3,6     9188     163912 /usr/lib/libident.so.0.22
	exim      13362     root  mem    REG        3,6    34380     164067 /usr/lib/libpcre.so.3.03
	exim      13362     root  mem    REG        3,2    69472      16228 /lib/libnsl-2.2.5.so
	exim      13362     root  mem    REG        3,2    19136      16212 /lib/libcrypt-2.2.5.so
	exim      13362     root  mem    REG        3,2    29420      16137 /lib/libpam.so.0.72
	exim      13362     root  mem    REG        3,2   262812      16139 /lib/libdb2.so.2.7.7
	exim      13362     root  mem    REG        3,2    56480      16260 /lib/libresolv-2.2.5.so
	exim      13362     root  mem    REG        3,6   151252     165924 /usr/lib/libldap.so.2.0.15
	exim      13362     root  mem    REG        3,6    36736     165923 /usr/lib/liblber.so.2.0.15
	exim      13362     root  mem    REG        3,2  1153784      16189 /lib/libc-2.2.5.so
	exim      13362     root  mem    REG        3,2     8008      16224 /lib/libdl-2.2.5.so
	exim      13362     root  mem    REG        3,6    40612     162882 /usr/lib/libsasl.so.7.1.10
	exim      13362     root  mem    REG        3,2    40152      16229 /lib/libnss_compat-2.2.5.so
	exim      13362     root  mem    REG        3,2    32668      16243 /lib/libnss_files-2.2.5.so
	exim      13362     root  mem    REG        3,2    12176      16231 /lib/libnss_dns-2.2.5.so
	exim      13362     root    0u  IPv6      43173                 TCP *:smtp (LISTEN)
	exim      27942     root  cwd    DIR        3,7     4096      62741 /var/spool/exim
	exim      27942     root  rtd    DIR        3,2     1024          2 /
	exim      27942     root  txt    REG        3,6   471048      32972 /usr/sbin/exim
	exim      27942     root  mem    REG        3,2    90210      16154 /lib/ld-2.2.5.so
	exim      27942     root  mem    REG        3,6     9188     163912 /usr/lib/libident.so.0.22
	exim      27942     root  mem    REG        3,6    34380     164067 /usr/lib/libpcre.so.3.03
	exim      27942     root  mem    REG        3,2    69472      16228 /lib/libnsl-2.2.5.so
	exim      27942     root  mem    REG        3,2    19136      16212 /lib/libcrypt-2.2.5.so
	exim      27942     root  mem    REG        3,2    29420      16137 /lib/libpam.so.0.72
	exim      27942     root  mem    REG        3,2   262812      16139 /lib/libdb2.so.2.7.7
	exim      27942     root  mem    REG        3,2    56480      16260 /lib/libresolv-2.2.5.so
	exim      27942     root  mem    REG        3,6   151252     165924 /usr/lib/libldap.so.2.0.15
	exim      27942     root  mem    REG        3,6    36736     165923 /usr/lib/liblber.so.2.0.15
	exim      27942     root  mem    REG        3,2  1153784      16189 /lib/libc-2.2.5.so
	exim      27942     root  mem    REG        3,2     8008      16224 /lib/libdl-2.2.5.so
	exim      27942     root  mem    REG        3,6    40612     162882 /usr/lib/libsasl.so.7.1.10
	exim      27942     root  mem    REG        3,2    40152      16229 /lib/libnss_compat-2.2.5.so
	exim      27942     root  mem    REG        3,2    32668      16243 /lib/libnss_files-2.2.5.so
	exim      27942     root  mem    REG        3,2    12176      16231 /lib/libnss_dns-2.2.5.so
	exim      27942     root    0r  FIFO        0,5              115754 pipe
	exim      27942     root    1w  FIFO        0,5              115755 pipe
	exim      27942     root    2w  FIFO        0,5              115755 pipe
	exim      27942     root    3r   DIR        0,0        0          1 /
	exim      27942     root    4r   DIR        0,0        0          1 /
	exim      27942     root    5w   REG        3,7   191436         18 /var/log/exim/mainlog
	exim      27942     root    6r   REG        3,2      869         72 /etc/exim/DOMAINS
	exim      27942     root    7r  FIFO        0,5              115777 pipe
	exim      27945     root  cwd    DIR        3,7     4096      62741 /var/spool/exim
	exim      27945     root  rtd    DIR        3,2     1024          2 /
	exim      27945     root  txt    REG        3,6   471048      32972 /usr/sbin/exim
	exim      27945     root  mem    REG        3,2    90210      16154 /lib/ld-2.2.5.so
	exim      27945     root  mem    REG        3,6     9188     163912 /usr/lib/libident.so.0.22
	exim      27945     root  mem    REG        3,6    34380     164067 /usr/lib/libpcre.so.3.03
	exim      27945     root  mem    REG        3,2    69472      16228 /lib/libnsl-2.2.5.so
	exim      27945     root  mem    REG        3,2    19136      16212 /lib/libcrypt-2.2.5.so
	exim      27945     root  mem    REG        3,2    29420      16137 /lib/libpam.so.0.72
	exim      27945     root  mem    REG        3,2   262812      16139 /lib/libdb2.so.2.7.7
	exim      27945     root  mem    REG        3,2    56480      16260 /lib/libresolv-2.2.5.so
	exim      27945     root  mem    REG        3,6   151252     165924 /usr/lib/libldap.so.2.0.15
	exim      27945     root  mem    REG        3,6    36736     165923 /usr/lib/liblber.so.2.0.15
	exim      27945     root  mem    REG        3,2  1153784      16189 /lib/libc-2.2.5.so
	exim      27945     root  mem    REG        3,2     8008      16224 /lib/libdl-2.2.5.so
	exim      27945     root  mem    REG        3,6    40612     162882 /usr/lib/libsasl.so.7.1.10
	exim      27945     root  mem    REG        3,2    40152      16229 /lib/libnss_compat-2.2.5.so
	exim      27945     root  mem    REG        3,2    32668      16243 /lib/libnss_files-2.2.5.so
	exim      27945     root  mem    REG        3,2    12176      16231 /lib/libnss_dns-2.2.5.so
	exim      27945     root    0r  FIFO        0,5              115754 pipe
	exim      27945     root    1w  FIFO        0,5              115755 pipe
	exim      27945     root    2w  FIFO        0,5              115755 pipe
	exim      27945     root    3r   DIR        0,0        0          1 /
	exim      27945     root    4r   DIR        0,0        0          1 /
	exim      27945     root    5w   REG        3,7   191436         18 /var/log/exim/mainlog
	exim      27945     root    6w   REG        3,7        0     156923 /var/spool/exim/input/18ghnf-0002ji-00-J
	exim      27945     root    7r  FIFO        0,5              115777 pipe
	exim      27945     root    8w  FIFO        0,5              115777 pipe
	exim      27945     root    9u   REG        3,7    10142     157186 /var/spool/exim/input/18ghnf-0002ji-00-D
	exim      27945     root   10w   REG        3,7   232512     157168 /var/spool/exim/msglog/18ghnf-0002ji-00
	exim      27945     root   11u  IPv4     115781                 TCP server:1197->208.254.79.196:smtp (SYN_SENT)

in case something besides an exim-named process has it open, i
also tried this:

	# lsof | egrep 'wait|retry'
	<nothing>

i did the brute-force "rm *lockfile" in the spool directory and
still no luck.

any pointers appreciated.

-- 
I use Debian/GNU Linux version 3.0;
Linux server 2.4.20-k6 #1 Mon Jan 13 23:49:14 EST 2003 i586 unknown
 
DEBIAN NEWBIE TIP #68 from Will Trillich <will@serensoft.com>
:
So you've installed Debian/GNU Linux -- NOW WHAT?  For some
pointers, FAQ and unix/linux lists, visit Unix Guru's Universe
site at
	http://www.ugu.com/sui/ugu/show?I=help.beginners
There's a lot of handy links there to keep you off the streets
for quite some time. (I found this page from a link on
http://arizona.speedchoice.com/~lufthans/unix/ -- thanks,
der.hans!)

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: