[Koha] Plack using 100% CPU
Alvaro Cornejo
cornejo.alvaro at gmail.com
Sun Nov 24 11:25:35 NZDT 2019
Hi
After enabling plack, CPU start running at 100% and I get a lot of
"compliation errors" as below:
Error while loading /etc/koha/plack.psgi: Can't load application from file
"/usr/share/koha/api/v1/app.pl": Can
't locate object method "cache_dir" via package "Swagger2::SchemaValidator"
at /usr/share/perl5/Swagger2.pm lin
e 42.
Compilation failed in require at (eval 1259) line 1.
Error while loading /etc/koha/plack.psgi: Can't load application from file
"/usr/share/koha/api/v1/app.pl": Can
't locate object method "cache_dir" via package "Swagger2::SchemaValidator"
at /usr/share/perl5/Swagger2.pm lin
e 42.
Compilation failed in require at (eval 1259) line 1.
Error while loading /etc/koha/plack.psgi: Can't load application from file
"/usr/share/koha/api/v1/app.pl": Can
't locate object method "cache_dir" via package "Swagger2::SchemaValidator"
at /usr/share/perl5/Swagger2.pm lin
e 42.
Compilation failed in require at (eval 1259) line 1.
Error while loading /etc/koha/plack.psgi: Can't load application from file
"/usr/share/koha/api/v1/app.pl": Can
't locate object method "cache_dir" via package "Swagger2::SchemaValidator"
at /usr/share/perl5/Swagger2.pm lin
e 42.
Compilation failed in require at (eval 1259) line 1.
This is my koha about:
Koha version: 17.05.14.000
OS version ('uname -a'): Linux CelacpVps 5.1.2-x86_64-linode124 #1 SMP
PREEMPT Wed May 15 15:12:46 UTC 2019 x86_64
Perl interpreter: /usr/bin/perl
Perl version: 5.022001
Perl @INC: /usr/share/koha/lib
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.22.1
/usr/local/share/perl/5.22.1
/usr/lib/x86_64-linux-gnu/perl5/5.22
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.22
/usr/share/perl/5.22
/usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base
.
MySQL version: mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using
EditLine wrapper
Apache version: Server version: Apache/2.4.18 (Ubuntu)
Memcached: Servers: 127.0.0.1:11211 | Namespace: koha_library | Status:
running. | Config read from: koha-conf.xml
To enable plack I do:
sudo koha-plack --enable biblioteca
sudo koha-plack --start biblioteca
sudo apache2ctl restart
Regards,
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
Visitenos en www.perusms.com
More information about the Koha
mailing list