Bug 31290 - Getting error in batch modification
Summary: Getting error in batch modification
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 21.11
Hardware: All All
: P5 - low critical (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-04 06:04 UTC by NAYEMA NASRIN
Modified: 2022-08-10 08:57 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
/usr/share/koha/bin/background_jobs_worker.pl line 57 (186.49 KB, image/png)
2022-08-04 06:04 UTC, NAYEMA NASRIN
Details
Background jobs (240.79 KB, image/png)
2022-08-10 05:44 UTC, NAYEMA NASRIN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NAYEMA NASRIN 2022-08-04 06:04:44 UTC
Created attachment 138598 [details]
/usr/share/koha/bin/background_jobs_worker.pl line 57

I am getting following error while trying to do any batch modification or batch delete in KOHA.

"Cannot enqueue this job. (The error was: Job has not been enqueued, see the Koha log file for more information)."

I have checked the error log file and found following error:

==> /var/log/koha/library/worker-output.log <==
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "You must log in usin...") at /usr/share/koha/bin/background_jobs_worker.pl line 57.

I have attached the screen short of /usr/share/koha/bin/background_jobs_worker.pl
Comment 1 Katrin Fischer 2022-08-07 16:42:21 UTC
Hi Nayema, bug 31223 and bug 31245 could be related to this.
Comment 2 Jonathan Druart 2022-08-09 10:25:15 UTC
What the content of the background_jobs table for this job?
Comment 3 NAYEMA NASRIN 2022-08-10 05:44:24 UTC
Created attachment 138947 [details]
Background jobs
Comment 4 NAYEMA NASRIN 2022-08-10 05:44:59 UTC
Background jobs failed. I have attached the screenshot.
Comment 5 NAYEMA NASRIN 2022-08-10 05:46:19 UTC
If I click on "view" it gives error 500.
Comment 6 Jonathan Druart 2022-08-10 08:57:28 UTC
The error will be fixed by bug 31245, but it does not explain why your jobs failed.

You should run a tail -f on the different koha log files and start another batch mod to see what you will get in the logs.