[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scheduler: unlink(../queue/G/): No such file or directory



Today, after "No MX, no address" problem was apparently fixed,
I dared to put the CVS version in production.  It seems to work
reasonably well, but there are still some questions.

First:
(this is an old problem also present in 2.99.53-pre2cvs) -
notacable number of messages are not delivered, sender gets a
notification about missing message file, and there are such
records in the scheduler log:

scheduler: unlink(../queue/G/): No such file or directory
20000802160225 DBGdiag: # smtpclient:2297: Cannot open message file
"../queue/G/90252-26340"! (errno=2)
scheduler: unlink(../queue/G/89940-26343): No such file or directory
scheduler: unlink(../queue/G/90148-26340): No such file or directory
scheduler: unlink(../queue/G/): No such file or directory
20000802160247 DBGdiag: # smtpclient:27696: Cannot open message file
"../queue/G/89316-26344"! (errno=2)
Could not open message body file: '../queue/X/89333-26342'
scheduler: unlink(../queue/X/89333-26342): No such file or directory
20000802160247 DBGdiag: # smtpclient:27696: Cannot open message file
"../queue/X/89333-26342"! (errno=2)
scheduler: unlink(../queue/Z/89179-26339): No such file or directory
20000802160247 DBGdiag: # smtpclient:27696: Cannot open message file
"../queue/Z/89179-26339"! (errno=2)
scheduler: unlink(../queue/U/89694-26344): No such file or directory
20000802160247 DBGdiag: # smtpclient:27696: Cannot open message file
"../queue/U/89694-26344"! (errno=2)
scheduler: unlink(../queue/G/): No such file or directory
20000802160336 DBGdiag: # smtpclient:13230: Cannot open message file
"../queue/G/89758-26344"! (errno=2)

Note that unlink sometimes reports about the attempt to delete
directory!  Also note that as most of the time unlink failure
message shortly precedes "Cannot open message file" message.
This bothers me a lot because lost mail is a very bad thing even
if the sender is advices about the problem.

Second thing that apparently appeared only recently:  I am getting
batches of files in the "deferred" directory with the suffix
".ctrlfile".  When I do a resubmit, they instantly get back with
the same diagnostic.  There are also messages in the router log
like this:

[26341] router: rename(89242-26341,../queue/K/89242-26341): No such file or
directory

[26339] router: link(89235-26339, ../postman/89235._badheader): File exists
[26339] squirrel: 89235._badheader saved for inspection: message header syntax
error!
[26339] *** message header syntax error!

(badheader is OK but why did the file exist?!)
and like this:

[26341] router: rename(89242-26341,../queue/K/89242-26341): No such file or
directory
[26342] router: rename(89248-26342,../queue/Q/89248-26342): No such file or
directory

The latter seems to be related with SCHEDULERDIRHASH=1, it does *not*
happen if this option is not specified.

The symptoms of the two problems look suspiciously similar...

Any thoughts about that?

Eugene