Bug 20786 - process_message_queue.pl and cron.hourly - multiple subroutine redefined errors
Summary: process_message_queue.pl and cron.hourly - multiple subroutine redefined errors
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: 17.11
Hardware: PC Linux
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-19 17:12 UTC by mjnkml
Modified: 2020-06-04 20:32 UTC (History)
3 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 mjnkml 2018-05-19 17:12:45 UTC
Probably related to bug 2505, in the cronjob email, this comes up:

Subject:

Cron <root@koha> cd /tmp && koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl

Body:

Subroutine _ATTRIBUTES redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 13.
Subroutine new redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 15.
Subroutine code redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 17.
Subroutine message redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 18.
Subroutine new redefined at /usr/share/perl5/Authen/CAS/Client/Response/Success.pm line 13.
Comment 1 mjnkml 2018-05-19 17:15:07 UTC
For /etc/cron.hourly/koha-common, this email comes:


Subject:

Cron <root@koha> cd / && run-parts --report /etc/cron.hourly

Body:

/etc/cron.hourly/koha-common:
Subroutine _ATTRIBUTES redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 13.
Subroutine new redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 15.
Subroutine code redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 17.
Subroutine message redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 18.
Subroutine new redefined at /usr/share/perl5/Authen/CAS/Client/Response/Success.pm line 13.
Comment 2 Katrin Fischer 2019-02-10 13:13:07 UTC
Hi, you are missing the --chdir on your cronjob definition, see bug 17717 or here:

http://git.koha-community.org/gitweb/?p=koha.git;a=commitdiff;h=6db09ad3b070845539994ff4f1f8b9f7d6d2dfc8

*** This bug has been marked as a duplicate of bug 17717 ***
Comment 3 mjnkml 2019-03-17 11:03:29 UTC
(In reply to Katrin Fischer from comment #2)
> Hi, you are missing the --chdir on your cronjob definition, see bug 17717 or
> here:
> 
> http://git.koha-community.org/gitweb/?p=koha.git;a=commitdiff;
> h=6db09ad3b070845539994ff4f1f8b9f7d6d2dfc8
> 
> *** This bug has been marked as a duplicate of bug 17717 ***

Hi Katrin,

I have chdir, but still get the noise:


-----Original Message-----
From: Cron Daemon
Sent: Sunday, 17 March 2019 10:00 PM
To: Me
Subject: Cron <root@koha> koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl

Subroutine _ATTRIBUTES redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 13.
Subroutine new redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 15.
Subroutine code redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 17.
Subroutine message redefined at /usr/share/perl5/Authen/CAS/Client/Response/Failure.pm line 18.
Subroutine new redefined at /usr/share/perl5/Authen/CAS/Client/Response/Success.pm line 13.
Comment 4 Katrin Fischer 2019-08-18 09:10:00 UTC
I believe this is a configuration issue - we are running the same version without any problems. If not resolved yet:

Questions about Koha configuration are best asked on the Koha mailing list (http://koha-community.org/support/koha-mailing-lists/) or in the #koha IRC channel (http://koha-community.org/get-involved/irc/).