Bug 27084 - Cron Daemon Email
Summary: Cron Daemon Email
Status: RESOLVED DUPLICATE of bug 24826
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: 19.05
Hardware: All Linux
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-24 10:22 UTC by Faiz Ahmed
Modified: 2020-12-11 00:23 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Faiz Ahmed 2020-11-24 10:22:33 UTC
Hello,
I'm using Koha 19.05.05.000
I Configured Postfix to send the email notices but due to some strange & unknown reason, I'm constantly receiving the below email at my given email address.

From: Cron Daemon <root@catalog.localdomain>
Sent: Wednesday, November 4, 2020 1:00 PM
To: root@catalog.localdomain <root@catalog.localdomain>
Subject: Cron <root@catalog> cd /tmp && koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl

Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 544, <S> chunk 13.
Use of uninitialized value $mail{"Cc"} in concatenation (.) or string at /usr/share/perl5/Mail/Sendmail.pm line 545, <S> chunk 13.
Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 544, <S> chunk 13.
Use of uninitialized value $mail{"Cc"} in concatenation (.) or string at /usr/share/perl5/Mail/Sendmail.pm line 545, <S> chunk 13.

I tried various things but none of them worked.

Any suggestions are welcomed.

Thank you
Faiz Ahmed.
Assistant Manager, Digital Learning Services,
Library and Information Commons.

Habib University.
Plot # 295 | Block 18 | University Avenue | Gulistan-e-Jauhar | Karachi, Pakistan.
www.habib.edu.pk
Contact: 021-38797082 ext: 5524
Cell: +92 343 2257315,
E-mail:  faiz.ahmed@habib.edu.pk
Comment 1 Jonathan Druart 2020-11-24 10:54:58 UTC
This is not a critical problem, they are just warnings you could ignore. I am expecting the notices to have been processed and sent.

What's the return value of this SQL command?

 > select value from systempreferences where variable="NoticeBcc";
Comment 2 David Cook 2020-11-25 00:53:37 UTC
I think that I've noticed this issue before too. I think there are places where Bcc and Cc are set even they're empty..
Comment 3 Faiz Ahmed 2020-11-25 10:22:29 UTC
Hey Jonathan,
Thank you for your response,

Yeah you're right notices are processed & sent perfectly. But I'm still constantly receiving the above email at my given email address. I don't know why.. 

It's soo annoying.

I checked the "NoticeBcc" at Global system preferences in koha administration & the email adddress given there is working absolutely fine. 
I'm receiving the Bcc email perfectly, but still the issue remains same.

Any more responses are warmly welcomed

(In reply to Jonathan Druart from comment #1)
> This is not a critical problem, they are just warnings you could ignore. I
> am expecting the notices to have been processed and sent.
> 
> What's the return value of this SQL command?
> 
>  > select value from systempreferences where variable="NoticeBcc";
Comment 4 Faiz Ahmed 2020-11-25 10:24:11 UTC
Hey David,
Thank you for the response, 

I would be very thankful if you could share where/how can I fix this issue.
Totally stuck here.

(In reply to David Cook from comment #2)
> I think that I've noticed this issue before too. I think there are places
> where Bcc and Cc are set even they're empty..
Comment 5 Jonathan Druart 2020-11-25 10:44:04 UTC
I understand that it's annoying, but it's not critical for the project, especially when it's not confirmed yet. Please leave the severity status as it.


You are using 19.05.05, the latest is 19.11.12. You should first consider an upgrade of Koha.

What's your version of the OS and Mail::Sendmail?
Comment 6 Jonathan Druart 2020-11-25 10:44:51 UTC
(In reply to Jonathan Druart from comment #5)
> You are using 19.05.05, the latest is 19.11.12. You should first consider an
> upgrade of Koha.

The latest of the 19.05.x series is 19.05.17
Comment 7 Jonathan Druart 2020-11-25 10:50:29 UTC
And it's fixed, see bug 24826.

*** This bug has been marked as a duplicate of bug 24826 ***
Comment 8 Faiz Ahmed 2020-11-25 12:10:07 UTC
(In reply to Jonathan Druart from comment #7)
> And it's fixed, see bug 24826.
> 
> *** This bug has been marked as a duplicate of bug 24826 ***

Hello, I checked the bug 24826, 

Still issue remains unsolved,
My OS is 18.04.1 & any Koha version above 19.05.05.000  can not be installed in this OS.

Issue still remains, Tried that patch, but it didn't fixed my issue,

Still receiving the cron daemon email
Comment 9 Jonathan Druart 2020-11-25 13:00:54 UTC
Koha 19.05.x is known to work correctly under Ubuntu 18.04

https://jenkins.koha-community.org/job/Koha_19.05_U18/
Comment 10 David Cook 2020-11-26 00:00:49 UTC
The patch on Bug 24826 looks good.

(In reply to Faiz Ahmed from comment #8)
> Hello, I checked the bug 24826, 
> 
> Still issue remains unsolved,
> My OS is 18.04.1 & any Koha version above 19.05.05.000  can not be installed
> in this OS.
> 

That appears to be inaccurate.

I use 18.04.4 and I can run Koha's master branch. I would suggest you install the latest 19.05.x package in order to pick up the fix.
Comment 11 Faiz Ahmed 2020-12-07 04:59:48 UTC
Hello,
I upgraded my Koha to the next stable version i.e. 20.05
But still facing the same issue.

It's extremely annoying to receive this cron email in every 15 minutes or so.. Any help would be highly appreciated.

Thanks
Comment 12 David Cook 2020-12-07 05:05:58 UTC
(In reply to Faiz Ahmed from comment #11)
> Hello,
> I upgraded my Koha to the next stable version i.e. 20.05
> But still facing the same issue.
> 
> It's extremely annoying to receive this cron email in every 15 minutes or
> so.. Any help would be highly appreciated.
> 
> Thanks

It seems unlikely that this issue would be persisting based on the current information. 

What emails are being processed every 15 minutes or so? Tracing back the specific emails may yield some clues.
Comment 13 Faiz Ahmed 2020-12-10 05:34:59 UTC
Hello David,

I'm constantly receiving the below email at my email address.

From: Cron Daemon <root@catalog.localdomain>
Sent: Wednesday, November 4, 2020 1:00 PM
To: root@catalog.localdomain <root@catalog.localdomain>
Subject: Cron <root@catalog> cd /tmp && koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl

Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 544, <S> chunk 13.
Use of uninitialized value $mail{"Cc"} in concatenation (.) or string at /usr/share/perl5/Mail/Sendmail.pm line 545, <S> chunk 13.
Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Bcc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 253.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 254.
Use of uninitialized value $mail{"Cc"} in substitution (s///) at /usr/share/perl5/Mail/Sendmail.pm line 544, <S> chunk 13.
Use of uninitialized value $mail{"Cc"} in concatenation (.) or string at /usr/share/perl5/Mail/Sendmail.pm line 545, <S> chunk 13.

I tried various things but none of them worked. 
Initially I installed 19.05.05.000, but then later migrated to the newer verion, but still.. no solution..

Any clue would be extremely helpful for me, as it is extremely annoying to have my inbox full with these email every morning.
Comment 14 Jonathan Druart 2020-12-10 09:28:38 UTC
Send us the email you received since you upgraded, preferably today (not a copy/paste from comment 0)
Comment 15 David Cook 2020-12-11 00:23:04 UTC
(In reply to Faiz Ahmed from comment #13)
>
> Any clue would be extremely helpful for me, as it is extremely annoying to
> have my inbox full with these email every morning.
>

If you followed our advice and still have this problem, then you've failed to upgrade your Koha properly.  

My suggestion would be to seek paid support (https://koha-community.org/support/paid-support/), since this bug has already been fixed in Bug 24826, as Jonathan noted in November.

I'm marking this bug report as a duplicate, since there's no evidence that there's a problem in an up-to-date Koha.

*** This bug has been marked as a duplicate of bug 24826 ***