Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Moderator: crythias

Post Reply
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

Hi Guys,

I having this issue "Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...". My mail cannot be send out.

I did try to use the solution from viewtopic.php?t=41610, but it seem no working and make my application down.

I know this is the old question, but im not able to fix it.

Can anyone help me ?Appreciate it :(
Johannes
Moderator
Posts: 393
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by Johannes »

Hi,

have you tried to call:

bin/otrs.Console.pl Maint::Email::MailQueue --force
?

You communication log should also provide some more information, why the sending stopped in the fist place.
Regards
Johannes
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

Yes i did, but it will show Error: Message sending already in progress! Skipping....

I used --force --send

It keep running:
[Fri Jul 29 08:32:26 2022] otrs.Console.pl: Use of uninitialized value $partial in substr at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 357.
[Fri Jul 29 08:32:26 2022] otrs.Console.pl: Use of uninitialized value $partial in substr at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 357.
Last edited by kelvintan on 29 Jul 2022, 10:33, edited 2 times in total.
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

1 Kernel::System::Email Building message for delivery. 07/28/2022 16:27:13
2 Kernel::System::Email Queuing message for delivery. 07/28/2022 16:27:13
3 Kernel::System::MailQueue Serializing and saving message (ArticleID: , Sender: example@, Recipient: example, MessageID: ) 07/28/2022 16:27:13
4 Kernel::System::MailQueue Successfully stored message for sending. 07/28/2022 16:27:13
5 Kernel::System::Email Successfully queued message for delivery (To: 'example@', From: 'example', Subject: 'OTRS Scheduler Daemon Cron: MailQueueSend'). 07/28/2022 16:27:13
shawnbeasley
Znuny Employee
Posts: 132
Joined: 13 Sep 2021, 09:38
Znuny Version: Znuny 6.3.x
Real Name: Shawn Beasley
Company: Znuny

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by shawnbeasley »

What does

Code: Select all

$ bin/otrs.Console.pl Maint::Email::MailQueue --list
say?
Johannes
Moderator
Posts: 393
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by Johannes »

And this happend from one day to another?

It looks more like an error with the SMTP Config / Account.

If you add: --verbose what does the output look like?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by hkais »

kelvintan wrote: 29 Jul 2022, 10:29 1 Kernel::System::Email Building message for delivery. 07/28/2022 16:27:13
2 Kernel::System::Email Queuing message for delivery. 07/28/2022 16:27:13
3 Kernel::System::MailQueue Serializing and saving message (ArticleID: , Sender: example@, Recipient: example, MessageID: ) 07/28/2022 16:27:13
4 Kernel::System::MailQueue Successfully stored message for sending. 07/28/2022 16:27:13
5 Kernel::System::Email Successfully queued message for delivery (To: 'example@', From: 'example', Subject: 'OTRS Scheduler Daemon Cron: MailQueueSend'). 07/28/2022 16:27:13
Have you modified the TO and From (Sender and Recipient) fields in the shared logs?

From and To look wrong to me.
I would recommend you to enable the DNS checking on sending e-mails.
Reduces typos in the domain part of the e-mail
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

Yes I hide the email already
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

shawnbeasley wrote: 29 Jul 2022, 14:15 What does

Code: Select all

$ bin/otrs.Console.pl Maint::Email::MailQueue --list
say?

It giving me a list of queue and said "Mail queue contains 15092 message(s)"
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

Johannes wrote: 29 Jul 2022, 15:16 And this happend from one day to another?

It looks more like an error with the SMTP Config / Account.

If you add: --verbose what does the output look like?
Output:
Message: Object already has an open Log for this type.

Traceback (15334):
Module: Kernel::System::CommunicationLog::_LogError Line: 538
Module: Kernel::System::CommunicationLog::ObjectLogStart Line: 198
Module: Kernel::System::Email::SMTP::Check Line: 48
Module: Kernel::System::Email::SMTP::Send Line: 224
Module: Kernel::System::Email::SendExecute Line: 755
Module: Kernel::System::MailQueue::Send Line: 679
Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Send Line: 204
Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Run Line: 153
Module: (eval) Line: 460
Module: Kernel::System::Console::BaseCommand::Execute Line: 454
Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
Module: ./otrs.Console.pl Line: 36


[Tue Aug 2 04:42:40 2022] otrs.Console.pl: Use of uninitialized value $partial in substr at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 357.
[Tue Aug 2 04:42:40 2022] otrs.Console.pl: Use of uninitialized value $partial in substr at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 357.
[Tue Aug 2 04:42:40 2022] otrs.Console.pl: Use of uninitialized value $partial in substr at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 357.
[Tue Aug 2 04:42:40 2022] otrs.Console.pl: Use of uninitialized value $partial in substr at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 357.
shawnbeasley
Znuny Employee
Posts: 132
Joined: 13 Sep 2021, 09:38
Znuny Version: Znuny 6.3.x
Real Name: Shawn Beasley
Company: Znuny

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by shawnbeasley »

It giving me a list of queue and said "Mail queue contains 15092 message(s)"
That's a lot of mail.

I bet most of those messages are being sent to root@localhost because the sending is failing.

I would stop the daemon
ensure that the znuny/otrs user has no running daemon processes
Review and clean the communication log
Review and clean the mail queue of all messages from the daemon
Set up a correct mailing address for the daemon (Daemon::SchedulerTaskWorker::NotificationRecipientEmail)
Verify SMTP settings (SendmailModule::*)
Run bin/otrs.Console.pl Maint::Email::MailQueue --send --verbose
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

shawnbeasley wrote: 02 Aug 2022, 08:41
It giving me a list of queue and said "Mail queue contains 15092 message(s)"
That's a lot of mail.

I bet most of those messages are being sent to root@localhost because the sending is failing.

I would stop the daemon
ensure that the znuny/otrs user has no running daemon processes
Review and clean the communication log
Review and clean the mail queue of all messages from the daemon
Set up a correct mailing address for the daemon (Daemon::SchedulerTaskWorker::NotificationRecipientEmail)
Verify SMTP settings (SendmailModule::*)
Run bin/otrs.Console.pl Maint::Email::MailQueue --send --verbose
ok, i try to clean the communication log
Last edited by kelvintan on 02 Aug 2022, 09:28, edited 1 time in total.
kelvintan
Znuny newbie
Posts: 8
Joined: 13 Jul 2022, 08:54
Znuny Version: 6.0.30
Real Name: Kelvin Tan
Company: Provintell

Re: Kernel::System::Console::Command::Maint::Email::MailQueue: Error: Message sending already in progress! Skipping...

Post by kelvintan »

Im checking is there my SMTP authentication issue...
Post Reply