Bug 28614 - 500 error on Stage MARC records for import, Staged MARC record management, Upload local cover image
Summary: 500 error on Stage MARC records for import, Staged MARC record management, Up...
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-22 19:26 UTC by Andrew Fuerste-Henry
Modified: 2022-06-06 20:24 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2021-06-22 19:26:47 UTC
To recreate:
- go to Tools (/cgi-bin/koha/tools/tools-home.pl)
- click on Stage MARC records for import, Staged MARC record management, or Upload local cover image
- get an error
Comment 1 Jonathan Druart 2021-06-24 10:14:47 UTC
It works for me, which error do you get?
Comment 2 Andrew Fuerste-Henry 2021-06-24 12:48:10 UTC
Huh. I'm on Koha Testing Docker, running master, on Chrome.

When I click the Stage MARC Records for Import link in Tools it tries to load this url: http://localhost:8081/cgi-bin/koha/tools/stage-marc-import.pl. After a couple seconds I get an error page that says:

An error has occurred!
Error 500
This message may have been caused by any of the following reasons:
You made use of an external link to an item that is no longer available
You followed an outdated link e.g. from a search engine or a bookmark
You tried to access a page that needs authentication
An internal link in the client is broken and the page does not exist
Comment 3 Jonathan Druart 2021-06-24 13:13:38 UTC
Anything relevant in the Koha log files?
Comment 4 Lucas Gass (lukeg) 2021-06-24 13:15:07 UTC
I am also able to recreate this in master, same 500 error as Andrew. These pages seem to be the ones effected:


"/cgi-bin/koha/offline_circ/process_koc.pl" 
"/cgi-bin/koha/tools/background-job-progress.pl" 
"/cgi-bin/koha/tools/export.pl"
"/cgi-bin/koha/tools/manage-marc-import.pl" 
"/cgi-bin/koha/tools/stage-marc-import.pl" 
"/cgi-bin/koha/tools/upload-cover-image.pl"
"/cgi-bin/koha/svc/cataloguing/metasearch" 


These files are all listed in apache-shared-intranet-plack.conf with the comment:

# FIXME: These scripts should be fixed so they
# don't break under plack/starman


Perhaps related?
Comment 5 Lucas Gass (lukeg) 2021-06-24 13:44:01 UTC
I am seeing this error in the intranet-error.log:


[Thu Jun 24 13:42:19.781481 2021] [cgi:error] [pid 35597] [client 172.19.0.1:64816] AH01215: new(): failed: couldn't load CGI::Session::Serialize::yamlxs: Can't locate CGI/Session/Serialize/yamlxs.pm in @INC (you may need to install the CGI::Session::Serialize::yamlxs module) (@INC contains: /kohadevbox/koha /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/kohadev/plugins) at (eval 1661) line 2.: /kohadevbox/koha/tools/stage-marc-import.pl

[Thu Jun 24 13:42:19.823176 2021] [cgi:error] [pid 35597] [client 172.19.0.1:64816] End of script output before headers: stage-marc-import.pl
Comment 6 Jonathan Druart 2021-06-24 13:48:56 UTC
Update ktd and pull the latest docker images.
Comment 7 Andrew Fuerste-Henry 2021-06-24 14:36:29 UTC
That did it, thanks! Apologies for not thinking to do that first.