Re: [Koha-devel] [Koha] Plack down due to "GET http://swagger.io/v2/schema.json == Connect timeout"
Hi Alvaro, I think that I actually had a similar experience on Bionic. For the time being, it might just be best to follow the workaround at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23653#c11 Although http://swagger.io/v2/schema.json is back up so you shouldn’t experience the program again (while it’s still up). David Cook Systems Librarian Prosentient Systems 72/330 Wattle St Ultimo, NSW 2007 Australia Office: 02 9212 0899 Online: 02 8005 0595 From: Alvaro Cornejo <cornejo.alvaro@gmail.com> Sent: Thursday, 2 July 2020 7:17 AM To: dcook@prosentient.com.au Cc: Mason James <mtj@kohaaloha.com>; Koha Devel <koha-devel@lists.koha-community.org> Subject: Re: [Koha] [Koha-devel] Plack down due to "GET http://swagger.io/v2/schema.json == Connect timeout" Hi I tried to install the json validator and get packages kept back acornejo@Biblio:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: libjson-validator-perl libmojolicious-perl libmojolicious-plugin-openapi-perl 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. So I tried to install them manually acornejo@Biblio:~$ sudo apt install libjson-validator-perl libmojolicious-perl libmojolicious-plugin-openapi-perl Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libmojolicious-plugin-openapi-perl : Depends: libyaml-libyaml-perl (>= 0.75) but it is not going to be installed E: Unable to correct problems, you have held broken packages. So I removed libmojolicious-plugin-openapi-perl from install and upgrade went ok acornejo@Biblio:~$ sudo apt install libjson-validator-perl libmojolicious-perl Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-4.15.0-106 linux-headers-4.15.0-106-generic linux-image-4.15.0-106-generic linux-modules-4.15.0-106-generic linux-modules-extra-4.15.0-106-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libdata-validate-domain-perl libdata-validate-ip-perl libnet-ipv6addr-perl libnetaddr-ip-perl libnetwork-ipv4addr-perl Recommended packages: libyaml-libyaml-perl The following NEW packages will be installed: libdata-validate-domain-perl libdata-validate-ip-perl libnet-ipv6addr-perl libnetaddr-ip-perl libnetwork-ipv4addr-perl The following packages will be upgraded: libjson-validator-perl libmojolicious-perl 2 upgraded, 5 newly installed, 0 to remove and 1 not upgraded. Need to get 975 kB of archives. After this operation, 563 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrors.linode.com/ubuntu bionic/universe amd64 libdata-validate-domain-perl all 0.10-1 [11.0 kB] Get:2 http://mirrors.linode.com/ubuntu bionic/universe amd64 libnetwork-ipv4addr-perl all 0.10.ds-2 [14.0 kB] Get:3 http://mirrors.linode.com/ubuntu bionic/universe amd64 libnet-ipv6addr-perl all 0.2.dfsg.1-3 [10.2 kB] Get:4 http://mirrors.linode.com/ubuntu bionic/main amd64 libnetaddr-ip-perl amd64 4.079+dfsg-1build2 [81.2 kB] Get:5 http://mirrors.linode.com/ubuntu bionic/universe amd64 libdata-validate-ip-perl all 0.27-1 [14.9 kB] Get:6 http://debian.koha-community.org/koha 19.11/main amd64 libmojolicious-perl all 8.12+dfsg-1.2~koha1 [794 kB] Get:7 http://debian.koha-community.org/koha 19.11/main amd64 libjson-validator-perl all 3.06+dfsg-1+koha1 [50.5 kB] Fetched 975 kB in 0s (2,021 kB/s) Selecting previously unselected package libdata-validate-domain-perl. (Reading database ... 182279 files and directories currently installed.) Preparing to unpack .../0-libdata-validate-domain-perl_0.10-1_all.deb ... Unpacking libdata-validate-domain-perl (0.10-1) ... Selecting previously unselected package libnetwork-ipv4addr-perl. Preparing to unpack .../1-libnetwork-ipv4addr-perl_0.10.ds-2_all.deb ... Unpacking libnetwork-ipv4addr-perl (0.10.ds-2) ... Selecting previously unselected package libnet-ipv6addr-perl. Preparing to unpack .../2-libnet-ipv6addr-perl_0.2.dfsg.1-3_all.deb ... Unpacking libnet-ipv6addr-perl (0.2.dfsg.1-3) ... Selecting previously unselected package libnetaddr-ip-perl. Preparing to unpack .../3-libnetaddr-ip-perl_4.079+dfsg-1build2_amd64.deb ... Unpacking libnetaddr-ip-perl (4.079+dfsg-1build2) ... Selecting previously unselected package libdata-validate-ip-perl. Preparing to unpack .../4-libdata-validate-ip-perl_0.27-1_all.deb ... Unpacking libdata-validate-ip-perl (0.27-1) ... Preparing to unpack .../5-libmojolicious-perl_8.12+dfsg-1.2~koha1_all.deb ... Unpacking libmojolicious-perl (8.12+dfsg-1.2~koha1) over (7.59+dfsg-1ubuntu1) ... Preparing to unpack .../6-libjson-validator-perl_3.06+dfsg-1+koha1_all.deb ... Unpacking libjson-validator-perl (3.06+dfsg-1+koha1) over (1.08+dfsg-1) ... Setting up libmojolicious-perl (8.12+dfsg-1.2~koha1) ... Setting up libnetwork-ipv4addr-perl (0.10.ds-2) ... Setting up libnetaddr-ip-perl (4.079+dfsg-1build2) ... Setting up libjson-validator-perl (3.06+dfsg-1+koha1) ... Setting up libdata-validate-domain-perl (0.10-1) ... Setting up libnet-ipv6addr-perl (0.2.dfsg.1-3) ... Setting up libdata-validate-ip-perl (0.27-1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... acornejo@Biblio:~$ However, plack crashed again with the following error: Error while loading /etc/koha/plack.psgi: Can't load application from file "/usr/share/koha/api/v1/app.pl <http://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.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/biblioteca/plugins) at /usr/share/koha/lib/Koha/REST/V1.pm line 23. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/REST/V1.pm line 23. Compilation failed in require at (eval 399) line 1. Compilation failed in require at (eval 398) line 1. Child process 11108 exited with status 255 Error while loading /etc/koha/plack.psgi: Can't load application from file "/usr/share/koha/api/v1/app.pl <http://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.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/biblioteca/plugins) at /usr/share/koha/lib/Koha/REST/V1.pm line 23. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/REST/V1.pm line 23. Compilation failed in require at (eval 399) line 1. Compilation failed in require at (eval 398) line 1. Child process 11109 exited with status 255 Error while loading /etc/koha/plack.psgi: Can't load application from file "/usr/share/koha/api/v1/app.pl <http://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.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/lib/koha/biblioteca/plugins) at /usr/share/koha/lib/Koha/REST/V1.pm line 23. BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/REST/V1.pm line 23. Compilation failed in require at (eval 399) line 1. Compilation failed in require at (eval 398) line 1. Child process 11111 exited with status 255 By now, I´ve to dissabled plack Any ideas? Regards, Alvaro |----------------------------------------------------------------------------------------| <https://drive.google.com/uc?id=1lpgSKUunPpKrvmS1rja7umnEgiqBa_vD&export=download> Stay safe / Cuídate/ Reste sécurisé 7 Switch off as you go / Apaga lo que no usas / Débranchez au fur et à mesure. q Recycle always / Recicla siempre / Recyclez toujours P Print only if absolutely necessary / Imprime solo si es necesario / Imprimez seulement si nécessaire Le mer. 1 juil. 2020 à 02:24, <dcook@prosentient.com.au <mailto:dcook@prosentient.com.au> > a écrit : Thanks, Mason! I think Mason has released a newer version now 3.23+dfsg-1+koha1, which was needed for newer versions of Ubuntu, which used newer versions of libjson-validator-perl than 3.06. So the fix now should just be: apt-get update apt-get install libjson-validator-perl David Cook Systems Librarian Prosentient Systems 72/330 Wattle St Ultimo, NSW 2007 Australia Office: 02 9212 0899 Online: 02 8005 0595 -----Original Message----- From: Koha-devel <koha-devel-bounces@lists.koha-community.org <mailto:koha-devel-bounces@lists.koha-community.org> > On Behalf Of Mason James Sent: Wednesday, 1 July 2020 1:32 PM To: 'Koha Devel' <koha-devel@lists.koha-community.org <mailto:koha-devel@lists.koha-community.org> >; koha@lists.katipo.co.nz <mailto:koha@lists.katipo.co.nz> Subject: Re: [Koha-devel] Plack down due to "GET http://swagger.io/v2/schema.json == Connect timeout" On 1/07/20 2:39 pm, dcook@prosentient.com.au <mailto:dcook@prosentient.com.au> wrote:
Hi all,
As some people have noticed, http://swagger.io/v2/schema.json is currently unavailable, and this is causing new instances of Plack workers to crash. (New instances can be created by starting Plack or by long-running workers to reach their end of life number of requests.)
The issue is detailed at length in https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23653.
I think the solution will be for Mason to a libjson-validator-perl package which contains a cached version of that file.
hi Folks i've updated the 'libjson-validator-perl' package to include the cache dir to update the package... $ sudo apt update $ sudo apt install libjson-validator-perl run the following command, and confirm the result... $ apt-cache policy libjson-validator-perl libjson-validator-perl: Installed: 3.06+dfsg-1+koha1 Candidate: 3.06+dfsg-1+koha1 ... cheers, Mason _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org <mailto:Koha-devel@lists.koha-community.org> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/ _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (1)
-
dcook@prosentient.com.au