Page 1 of 1

Can't delete from queue

Posted: Tue Oct 14, 2014 1:48 pm
by phoenixisp
I have a server dedicated to project gamera and am having a hard time deleting from the queue. I am using qmHandle and when I run qmhandle Sfailure I get:

Calling system script to terminate qmail...
Stopping qmail: .........s.to p. q.mai.l se.rvsvc-stop: Fatal error: Failed to stop 'qmail'.
Uncaught exception from user code:
Could not stop qmail: Bad file descriptor at /usr/bin/qmhandle.pl line 165

I have tried to stop qmail manually by using the commands:
# qmailctl stop
# svc -t /usr/bin/qmail-send /usr/bin/qmail-send/log
# /etc/rc.d/qmail stop

I can't get it to stop. I have thousand of messages stuck in the queue and a couple of hundred in preprocess.

Any help guys? Thanks,

Sonny

Re: Can't delete from queue

Posted: Tue Oct 14, 2014 5:12 pm
by scott
svc-stop smtpd
svc-stop qmail

then clear your queue

svc-start qmail
svc-start smtpd

Re: Can't delete from queue

Posted: Tue Oct 14, 2014 5:39 pm
by phoenixisp
Works like a charm!

Thanks Scott!

Re: Can't delete from queue

Posted: Tue Oct 14, 2014 6:03 pm
by faris
Also check out this post where prupert shares another way to resolve this issue

http://www.atomicorp.com/forum/viewtopi ... t=qmhandle

Re: Can't delete from queue

Posted: Tue Oct 14, 2014 6:18 pm
by phoenixisp
Thanks faris. I saw that but my error said it was line 165 and that thread has it as line 192 so I didn't want to mess with it - my php is limited.

Re: Can't delete from queue

Posted: Wed Oct 15, 2014 10:58 am
by phoenixisp
Well, it has reared it's ugly head again. It seems once it hits about 1300 items in the queue it stops processing. And when I try to stop qmail using

# svc-stop qmail

I get the error:

Stopping qmail: .......svc-stop Fatal error: Failed to stop 'qmail'.

Any ideas?