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.
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
MailQueueSend stuck on Handled Worker Tasks
Moderator: crythias
-
- 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
You do not have the required permissions to view the files attached to this post.
-
- 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
When you stopped the daemon, did you make sure there were no other processes running? You may have had processes still running.
You can check the process_id table for entries.Then check your summary again. Also, look at your mail queue
And try to force it
(don't forget to restart your services when done with bin/Cron.sh start)
Let me know how it works out.
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
Code: Select all
bin/otrs.Console.pl Maint::Email::MailQueue
Code: Select all
bin/otrs.Console.pl Maint::Email::MailQueue --send --force --verbose
Let me know how it works out.
-
- 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
Hi,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
You can check the process_id table for entries.Then check your summary again. Also, look at your mail queueCode: Select all
bin/otrs.Console.pl Maint::Cache::Delete
And try to force itCode: Select all
bin/otrs.Console.pl Maint::Email::MailQueue
(don't forget to restart your services when done with bin/Cron.sh start)Code: Select all
bin/otrs.Console.pl Maint::Email::MailQueue --send --force --verbose
Let me know how it works out.
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
-
- 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
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..
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..