Bug#280213: exim4: Thinks it's always out of spool space

Andreas Metzler Andreas Metzler <ametzler@debian.org>, 280213@bugs.debian.org
Mon, 8 Nov 2004 09:25:56 +0100


# matches "not completely unusable to everyone" (important) a lot
# better than grave, let's keep rc for the time being, though.
severity 280213 serious
tags 280213 unreproducible
thanks

On 2004-11-08 John Goerzen <jgoerzen@complete.org> wrote:
[...]
> 2004-11-07 22:30:33 spool directory space check failed: space=0
> inodes=4096

> Yet:

> erwin:/etc/exim4# df -h /var/spool/exim4
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hdc5             1.2G  905M  240M  80% /var
> erwin:/etc/exim4# df -i /var/spool/exim4
> Filesystem            Inodes   IUsed   IFree IUse% Mounted on
> /dev/hdc5                  0       0       0    -  /var

> This is a reiser FS.
[...]
> 22:42:43 19164 spool directory /var/spool/exim4 space = 0 blocks; inodes
> = 4096; check_space = 0K (0 blocks); inodes = 0; msg_size = 6667 (1
> blocks)
> 22:42:43 19164 LOG: MAIN
> 22:42:43 19164   spool directory space check failed: space=0 inodes=4096
> 22:42:43 19164 SMTP>> 452 Space shortage, please try later

> So you can see there is an issue.
[...]
> Architecture: alpha
> Kernel: Linux 2.6.4-rc2
[...]

I cannot reproduce this here (2.6.7, ix86, spool on Reiser for
testing) and this just looks extremely strange, your df (and stat) and
exim debuglog do not match. - exim ran statfs (actually statfs64) on
/var/spool/exim4 and came up with
f_bavail=0
f_ffree=4096
which does not match your df and stat-info.

Please stop exim, and run
strace -o /tmp/straceout -vf -s 132 exim4 -d -bd 2>&1 |\
   tee /tmp/exim.debug

as root, connect as user:

{ sleep 1 ; echo EHLO localhost ; sleep 1 ; \
  echo 'MAIL FROM:<ametzler@downhill.univie.ac.at> SIZE=10000000' ; \
  sleep 1 ; echo quit ; } |\
 telnet localhost smtp

kill the exim running as root with <Ctrl>-C and send this info:
1) The output of 
   grep -2 -E 'stat.*/var/spool/exim4' /tmp/straceout
2) The corresponding "spool directory /var/spool/exim4 space..."-line
in /tmp/exim.debug

3) The output of "stat -f /var/spool/exim4".
        thanks, cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"