Can't delete from queue

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
phoenixisp
Forum User
Forum User
Posts: 76
Joined: Wed Feb 16, 2005 11:30 am

Can't delete from queue

Unread post 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
Sonny
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Can't delete from queue

Unread post by scott »

svc-stop smtpd
svc-stop qmail

then clear your queue

svc-start qmail
svc-start smtpd
phoenixisp
Forum User
Forum User
Posts: 76
Joined: Wed Feb 16, 2005 11:30 am

Re: Can't delete from queue

Unread post by phoenixisp »

Works like a charm!

Thanks Scott!
Sonny
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Can't delete from queue

Unread post by faris »

Also check out this post where prupert shares another way to resolve this issue

http://www.atomicorp.com/forum/viewtopi ... t=qmhandle
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
phoenixisp
Forum User
Forum User
Posts: 76
Joined: Wed Feb 16, 2005 11:30 am

Re: Can't delete from queue

Unread post 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.
Sonny
phoenixisp
Forum User
Forum User
Posts: 76
Joined: Wed Feb 16, 2005 11:30 am

Re: Can't delete from queue

Unread post 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?
Sonny
Post Reply