MailQueueSend stuck on Handled Worker Tasks

Moderator: crythias

Post Reply
chrotha
Znuny newbie
Posts: 93
Joined: 29 Jun 2018, 13:44
Znuny Version: 6.x.x/7.0.x
Real Name: Ruben Sardinha

MailQueueSend stuck on Handled Worker Tasks

Post by chrotha »

Hello everyone,

I'm having an issue with MailQueueSend being stuck on Handled Worker Tasks and I'm not being able to remove it from there.
Is there anyway to remove it? I've already tried stopping the Daemon, clear the OTRS cache and start the daemon again, but with no luck.
Screenshot_4.png
I already tried the kill command for the PID but it's not registered
Any help would be appreciated.

I'm using otrs 6.0.40 with Rocky Linux.

Thanks in advance
You do not have the required permissions to view the files attached to this post.
shawnbeasley
Znuny Employee
Posts: 132
Joined: 13 Sep 2021, 09:38
Znuny Version: Znuny 6.3.x
Real Name: Shawn Beasley
Company: Znuny

Re: MailQueueSend stuck on Handled Worker Tasks

Post by shawnbeasley »

When you stopped the daemon, did you make sure there were no other processes running? You may have had processes still running.

Code: Select all

bin/Cron.sh stop &&
bin/otrs.Daemon.pl stop &&
top -u otrs

Code: Select all

bin/otrs.Console.pl Maint::Cache::Delete
You can check the process_id table for entries.Then check your summary again. Also, look at your mail queue

Code: Select all

bin/otrs.Console.pl Maint::Email::MailQueue
And try to force it

Code: Select all

bin/otrs.Console.pl Maint::Email::MailQueue --send --force --verbose
(don't forget to restart your services when done with bin/Cron.sh start)

Let me know how it works out.
chrotha
Znuny newbie
Posts: 93
Joined: 29 Jun 2018, 13:44
Znuny Version: 6.x.x/7.0.x
Real Name: Ruben Sardinha

Re: MailQueueSend stuck on Handled Worker Tasks

Post by chrotha »

shawnbeasley wrote: 02 Aug 2022, 12:28 When you stopped the daemon, did you make sure there were no other processes running? You may have had processes still running.

Code: Select all

bin/Cron.sh stop &&
bin/otrs.Daemon.pl stop &&
top -u otrs

Code: Select all

bin/otrs.Console.pl Maint::Cache::Delete
You can check the process_id table for entries.Then check your summary again. Also, look at your mail queue

Code: Select all

bin/otrs.Console.pl Maint::Email::MailQueue
And try to force it

Code: Select all

bin/otrs.Console.pl Maint::Email::MailQueue --send --force --verbose
(don't forget to restart your services when done with bin/Cron.sh start)

Let me know how it works out.
Hi,

Thank you for your reply.
We tried using that method, to no avail. We had to restart the server to clear the job. We got the same error again just this afternoon.
I'm wondering, is there any way to clear the Handled Worker Tasks without just restarting the server?

Thanks
DatagroupUlm
Znuny newbie
Posts: 1
Joined: 03 Jan 2023, 16:31
Znuny Version: 6.4
Real Name: Heiko Baumgärtner
Company: Datagroup Ulm

Re: MailQueueSend stuck on Handled Worker Tasks

Post by DatagroupUlm »

Same problem here. From time to time the job for MailQueueSend stucks.
You can see this in /opt/otrs/bin/otrs.Console.pl Maint::Daemon::Summary -> Handled Worker Tasks (Duration 8h)

I kill the task with the given process id (kill -9 id) . After killing it and quite some waiting time the summary is fine again and
the process executes how it should.

But i don't know where's the problem, that the job keeps hanging..
Post Reply