Plack error after update to Koha 21.11.06
Hi We were updating from Debian GNU/Linux 9 to 10, then from Koha 20.11.03 to Koha 21.11.06. This is a Debian package installation. Now Plack throws many error messages like the following in file "/var/log/koha/plack-error.log": Error while loading /etc/koha/plack.psgi: Can't load application from file "/usr/share/koha/api/v1/app.pl": Can't locate JSON/Validator/OpenAPI/Mojolicious.pm in @INC (you may need to install the JSON::Validator::OpenAPI::Mojolicious module) (@INC contains: /usr/share/koha/lib /usr/share/koha/installer /usr/share/koha/lib/installer /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/whu/plugins) at /usr/share/koha/lib/Koha/REST/V1.pm line 25. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/REST/V1.pm line 25. Compilation failed in require at (eval 507) line 1. Compilation failed in require at (eval 506) line 1. Child process 21538 exited with status 255 I see there is bug https://bugs.koha-community.org/bugzilla3/show_bug.cgi concerning this problem but there doesn't seem to be a solution for our case. On our Debian GNU/Linux 10 system package "libjson-validator-perl" is the newest version (3.06+dfsg-1). Does anyone know how to solve this problem? Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi As I just saw Koha menu "About Koha > Perl moules" says the following modules are not installed: * JSON::Validator 3.14 * Mojolicious::Plugin::OpenAPI 2.16 But Debian GNU/Linux 10 says: # apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 3.06+dfsg-1 Candidate: 3.06+dfsg-1 Version table: *** 3.06+dfsg-1 500 500 http://deb.debian.org/debian buster/main amd64 Packages 100 /var/lib/dpkg/status # apt-cache policy libmojolicious-plugin-openapi-perl libmojolicious-plugin-openapi-perl: Installed: 1.15-1~kohadev1 Candidate: 1.15-1~kohadev1 Version table: *** 1.15-1~kohadev1 100 100 /var/lib/dpkg/status As said this is a Debian package installation. So how should we proceed to install the needed version of the missing modules? Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch Am 10.06.22 um 14:17 schrieb Michael Kuhn:
Hi
We were updating from Debian GNU/Linux 9 to 10, then from Koha 20.11.03 to Koha 21.11.06. This is a Debian package installation.
Now Plack throws many error messages like the following in file "/var/log/koha/plack-error.log":
Error while loading /etc/koha/plack.psgi: Can't load application from file "/usr/share/koha/api/v1/app.pl": Can't locate JSON/Validator/OpenAPI/Mojolicious.pm in @INC (you may need to install the JSON::Validator::OpenAPI::Mojolicious module) (@INC contains: /usr/share/koha/lib /usr/share/koha/installer /usr/share/koha/lib/installer /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/whu/plugins) at /usr/share/koha/lib/Koha/REST/V1.pm line 25. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/REST/V1.pm line 25. Compilation failed in require at (eval 507) line 1. Compilation failed in require at (eval 506) line 1. Child process 21538 exited with status 255
I see there is bug https://bugs.koha-community.org/bugzilla3/show_bug.cgi concerning this problem but there doesn't seem to be a solution for our case. On our Debian GNU/Linux 10 system package "libjson-validator-perl" is the newest version (3.06+dfsg-1).
Does anyone know how to solve this problem?
Best wishes: Michael
Hi As I found out the needed packages "libjson-validator-perl" and "libmojolicious-plugin-openapi-perl" do not come with Debian GNU/Linux 10 but as dependencies for package "koha-common". For some reason they were not installed during the installation of package "koha-common". However I was now able to install them and our problem is solved; Plack is running. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch Am 10.06.22 um 14:30 schrieb Michael Kuhn:
Hi
As I just saw Koha menu "About Koha > Perl moules" says the following modules are not installed:
* JSON::Validator 3.14 * Mojolicious::Plugin::OpenAPI 2.16
But Debian GNU/Linux 10 says:
# apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 3.06+dfsg-1 Candidate: 3.06+dfsg-1 Version table: *** 3.06+dfsg-1 500 500 http://deb.debian.org/debian buster/main amd64 Packages 100 /var/lib/dpkg/status
# apt-cache policy libmojolicious-plugin-openapi-perl libmojolicious-plugin-openapi-perl: Installed: 1.15-1~kohadev1 Candidate: 1.15-1~kohadev1 Version table: *** 1.15-1~kohadev1 100 100 /var/lib/dpkg/status
As said this is a Debian package installation. So how should we proceed to install the needed version of the missing modules?
Best wishes: Michael
Hi, What is your line for Koha packages in apt config please ? What says "dpkg -l koha*" ? Le 10/06/2022 à 06:54, Michael Kuhn a écrit :
Hi
As I found out the needed packages "libjson-validator-perl" and "libmojolicious-plugin-openapi-perl" do not come with Debian GNU/Linux 10 but as dependencies for package "koha-common". For some reason they were not installed during the installation of package "koha-common".
However I was now able to install them and our problem is solved; Plack is running.
Best wishes: Michael
-- Fridolin SOMERS <fridolin.somers@biblibre.com> Software and system maintainer 🦄 BibLibre, France
Hi Fridolin Today you wrote:
What is your line for Koha packages in apt config please ?
What says "dpkg -l koha*" ?
Thanks for your message! As I wrote in my third e-mail regarding this case (see below) the problem is already solved. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch -------- Weitergeleitete Nachricht -------- Betreff: Re: [Koha] Plack error after update to Koha 21.11.06 Datum: Fri, 10 Jun 2022 18:54:39 +0200 Von: Michael Kuhn <mik@adminkuhn.ch> Antwort an: Michael Kuhn <mik@adminkuhn.ch> Organisation: Admin Kuhn GmbH An: koha@lists.katipo.co.nz Hi As I found out the needed packages "libjson-validator-perl" and "libmojolicious-plugin-openapi-perl" do not come with Debian GNU/Linux 10 but as dependencies for package "koha-common". For some reason they were not installed during the installation of package "koha-common". However I was now able to install them and our problem is solved; Plack is running. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch Am 10.06.22 um 14:30 schrieb Michael Kuhn:
Hi
As I just saw Koha menu "About Koha > Perl moules" says the following modules are not installed:
* JSON::Validator 3.14 * Mojolicious::Plugin::OpenAPI 2.16
But Debian GNU/Linux 10 says:
# apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 3.06+dfsg-1 Candidate: 3.06+dfsg-1 Version table: *** 3.06+dfsg-1 500 500 http://deb.debian.org/debian buster/main amd64 Packages 100 /var/lib/dpkg/status
# apt-cache policy libmojolicious-plugin-openapi-perl libmojolicious-plugin-openapi-perl: Installed: 1.15-1~kohadev1 Candidate: 1.15-1~kohadev1 Version table: *** 1.15-1~kohadev1 100 100 /var/lib/dpkg/status
As said this is a Debian package installation. So how should we proceed to install the needed version of the missing modules?
Best wishes: Michael
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Fridolin SOMERS -
Michael Kuhn