Qmail Support Forum Forum Index Qmail Support Forum
Qmail Email Server Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Qmail Queue locking up. Rehashing of an old problem.

 
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Support
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:35 pm    Post subject: Qmail Queue locking up. Rehashing of an old problem. Reply with quote

A while back I posted that qmail queue was locking up. I fiddled with some
things and the problem went away. I was never convinced that I actually
fixed the underlying problem, but I haven't had trouble for a few months.
The problem is back again.

qmailctl stat
/service/qmail-send: up (pid 947) 1136 seconds
/service/qmail-send/log: up (pid 948) 1136 seconds
/service/qmail-smtpd: up (pid 1715) 689 seconds
/service/qmail-smtpd/log: up (pid 1722) 689 seconds
/service/qmail-pop3d: up (pid 1721) 689 seconds
/service/qmail-pop3d/log: up (pid 1723) 689 seconds
messages in queue: 835
messages in queue but not yet preprocessed: 563

Everything is up. But the queue won't deliver messages to their inboxes. The
main qmail log stops at the point the queue locks up. The qmail-smptd and
qmail-pop3d logs are logging fine and show no errors. Restarting qmail, and
even rebooting the server does not resolve the trouble. The queue will not
clear. Obviously this is a significant problem since no one can receive
email. I'm at a loss. Any help greatly appreciated.

Thanks,
Roger
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:36 pm    Post subject: Reply with quote

Can you do an strace on individual qmail-send processes and try and
determine what's going on? Paste output here if necessary...

Ray
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:37 pm    Post subject: Reply with quote

A little more info. This is in my processlist...
readproctitle service errors: ...unable to link to
/var/log/qmail/@4000000044c8f4a812ae7e5c.u, pausing:

Something wrong with the logs? How do I fix? If I create this file then it
just repeats the message with a different filename.

And, two messages were just delivered, then locked up again.

Roger
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:37 pm    Post subject: Reply with quote

What do 'df -ik' and 'ls -al /var/log/qmail' say?
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:39 pm    Post subject: Reply with quote

BTW, this comes from multilog.c of daemontools:
==========
if (link(file,fn) == 0) break;
pause5("unable to link to ",d->dir,"/",fn,", pausing: ");
==========
and means that the link() function failed. 'man 2 link' indicates that
there are a number of reasons for such a failure, including exceeding
LINK_MAX, permission problems, exceeding filesystem space or user's
quota etc

- --
Best regards,
Thanos Massias
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:43 pm    Post subject: Reply with quote

Yes. It looks like some problem with your filesystem. When the logger
runs out of space or inodes (for example), then it cannot write into
the log files anymore. When it can’t write into the log files: the OS
prevents it from doing so, and so the process stops (in other words,
the process “blocks” while waiting for it’s write command to succeed).
When the logging process stops, it stops reading more log entries out
of the pipe from qmail. When that happens, the pipe buffer fills up,
and qmail can’t write anything more into the pipe:the OS prevents it
from doing so by stopping the process (qmail is “blocked” from
continuing).

It sounds like you need to examine the filesystem where you store your
logs. Maybe you ran out of space/inodes/directory-entries, or
something else along those lines.

~Kyle
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 7:44 pm    Post subject: Reply with quote

Hmm... SELinux? Smile Although you'd think it would have been causing problems
all along...

Ray
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Thu Jul 27, 2006 8:12 pm    Post subject: Reply with quote

If you’re using SELinux, I bet that there’s some restriction
that’s preventing maillog from doing what it normally does: are you
allowing hard links? I know SELinux (and grsec and owl) all allow you
to disallow hard links (because it makes permissions-checking more
interesting).

~Kyle
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!