Bug 31290

Summary: Getting error in batch modification
Product: Koha Reporter: NAYEMA NASRIN <nayema>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: critical    
Priority: P5 - low CC: jonathan.druart, m.de.rooy
Version: 21.11   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31223
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31245
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
Background jobs

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.
Comment 7 Jonathan Druart 2022-11-11 12:58:14 UTC

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