Bug 21400

Summary: Cronjobs: processes exited with return code 1
Product: Koha Reporter: Claudio Costales <costalc>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: robin
Version: 18.05   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Claudio Costales 2018-09-23 13:12:56 UTC
I have recently updated Koha to 18.05. From this moment on, two emails are sent from Debian's cronjob system with these msg:

run-parts: /etc/cron.weekly/koha-common exited with return code 1
run-parts: /etc/cron.hourly/koha-common exited with return code 1



Weekly: cleanup_databases.pl
Hourly: process_message_queue.pl


cleanup_databases.pl runs daily too, together with other scripts, but no email is sent.

Well, has anybody experience or suggestion about this?
Comment 1 Claudio Costales 2018-10-07 22:35:45 UTC
I'm worried about this issue because I do not know if it could be a program error.
Comment 2 Claudio Costales 2018-10-28 10:01:43 UTC
Sorry, it is turning a worrying Issue...
Comment 3 Katrin Fischer 2018-10-28 10:09:32 UTC
Hi Claudio,

As cleanup_database.pl is run daily in default and there is no cron.weekly file in Koha, I assume that you have made local changes. Bugzilla is not the right place to ask in this case as it's most likely a configuration issue. Bugzilla is used for bug tracking and enhancement requests.
 
Please bring your question up on the mailing list. Make sure to include the exact version, how you installed, and maybe the entries in your cronjob files.

Something you can check: Does your entry look like this? Note the --chdir and --enabled that should always be there and have been added a while ago:

koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads
Comment 4 Claudio Costales 2018-10-28 10:15:46 UTC
Thanks Katrin.