|
Description
Kyle M Hall (khall)
2026-02-05 21:10:45 UTC
I suspect this has something to do with perl versions ( or debian versions ). It works on Debian 11.11, but not on 12.11 or 12.12. They have different versions of Perl as well: 5.32.1, 5.36.0, and 5.36.0 respectively. Created attachment 192552 [details] [review] Bug 41781 - Holds queue builder ( build_holds_queue.pl ) fails if HoldsQueueParallelLoopsCount is greater than 1 If HoldsQueueParallelLoopsCount is set to a value greater than 1, build_holds_queue.pl will fail with the message: Can't locate object method "new" via package "Parallel::ForkManager" (perhaps you forgot to load "Parallel::ForkManager"?) at /kohadevbox/koha/C4/HoldsQueue.pm line 205. Test Plan: 1) Run misc/cronjobs/holds/build_holds_queue.pl 2) Note the error message 3) Run misc/cronjobs/holds/build_holds_queue.pl 4) Note the error message is gone! My test plan: Test on D11 ( Bullseye ) 1. KOHA_IMAGE=main-bullseye ktd up 2. Set HoldsQueueParallelLoopsCount > 1 3. perl misc/cronjobs/holds/build_holds_queue.pl 4. Success 5. Apply patch, restart_all 6. perl misc/cronjobs/holds/build_holds_queue.pl 7. Success Test on D12 ( Bookworm ) 1. KOHA_IMAGE=main-bookworm ktd up 2. Set HoldsQueueParallelLoopsCount > 1 3. perl misc/cronjobs/holds/build_holds_queue.pl 4. FAILS: Can't locate object method "new" via package "Parallel::ForkManager" (perhaps you forgot to load "Parallel::ForkManager"?) at /kohadevbox/koha/C4/HoldsQueue.pm line 205. 5. Apply patch, restart_all 6. perl misc/cronjobs/holds/build_holds_queue.pl 7. Success Test on D13: ( Trixie ) 1. KOHA_IMAGE=main-bookworm ktd up 2. Set HoldsQueueParallelLoopsCount > 1 3. perl misc/cronjobs/holds/build_holds_queue.pl 4. FAILS: Can't locate object method "new" via package "Parallel::ForkManager" (perhaps you forgot to load "Parallel::ForkManager"?) at /kohadevbox/koha/C4/HoldsQueue.pm line 205. 5. Apply patch, restart_all 6. perl misc/cronjobs/holds/build_holds_queue.pl 7. Success Created attachment 192575 [details] [review] Bug 41781 - Holds queue builder ( build_holds_queue.pl ) fails if HoldsQueueParallelLoopsCount is greater than 1 If HoldsQueueParallelLoopsCount is set to a value greater than 1, build_holds_queue.pl will fail with the message: Can't locate object method "new" via package "Parallel::ForkManager" (perhaps you forgot to load "Parallel::ForkManager"?) at /kohadevbox/koha/C4/HoldsQueue.pm line 205. Test Plan: 1) Run misc/cronjobs/holds/build_holds_queue.pl 2) Note the error message 3) Run misc/cronjobs/holds/build_holds_queue.pl 4) Note the error message is gone! Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 192602 [details] [review] Bug 41781: Holds queue builder ( build_holds_queue.pl ) fails if HoldsQueueParallelLoopsCount is greater than 1 If HoldsQueueParallelLoopsCount is set to a value greater than 1, build_holds_queue.pl will fail with the message: Can't locate object method "new" via package "Parallel::ForkManager" (perhaps you forgot to load "Parallel::ForkManager"?) at /kohadevbox/koha/C4/HoldsQueue.pm line 205. Test Plan: 1) Run misc/cronjobs/holds/build_holds_queue.pl 2) Note the error message 3) Run misc/cronjobs/holds/build_holds_queue.pl 4) Note the error message is gone! Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> * Commit title does not start with 'Bug XXXXX: ' - 6ea33659d7 You should know ;) (In reply to Marcel de Rooy from comment #6) > * Commit title does not start with 'Bug XXXXX: ' - 6ea33659d7 > You should know ;) Indeed! I was in a bit of a rush! I'll get that fixed up! (In reply to Kyle M Hall (khall) from comment #7) > (In reply to Marcel de Rooy from comment #6) > > * Commit title does not start with 'Bug XXXXX: ' - 6ea33659d7 > > You should know ;) > > Indeed! I was in a bit of a rush! I'll get that fixed up! Didn't notice you already fixed it. Thanks! Pushed to main for 26.05.00. Thanks all! |