Discussion:
[Koha] koha stop working after enabling plack
Alvaro Cornejo
2018-08-16 04:57:02 UTC
Permalink
Hi

I´m trying to enable plack on my instance but Intranet and Opac hungs after
restarting apache.

This is what I´ve done:


***@Celacp:~$ sudo koha-plack --enable biblioteca
WARNING: koha-plack requires some Apache modules that you are missing.
You can install them with:

sudo a2enmod proxy_http

Plack enabled for biblioteca
***@Celacp :~$ sudo a2enmod proxy_http
Considering dependency proxy for proxy_http:
Enabling module proxy.
Enabling module proxy_http.
To activate the new configuration, you need to run:
service apache2 restart
***@Celacp :~$ sudo service apache2 restart
***@Celacp :~$ sudo koha-plack --enable biblioteca
Plack enabled for biblioteca
***@Celacp :~$ sudo koha-plack --start biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
***@Celacp :~$ sudo service apache2 restart

From here, if I try to access OPAC or internet it taked forever to load any
page

when stopping plack:
***@Celacp :~$ sudo koha-plack --stop biblioteca

I get:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET /cgi-bin/koha/about.pl
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.

Reason: *Error reading from remote server*

Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443


after apache restart I get:

Service Unavailable

The server is temporarily unable to service your request due to maintenance
downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443


I need to disable plack and restart apache to recover the intranet and opac


This is my koha version:
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP Tue Mar
27 14:42:14 UTC 2018 x86_64 Memcached is dissabled


Any ideas of what can be happening?

Regards,

Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.k
Alvaro Cornejo
2018-08-16 05:06:06 UTC
Permalink
Hi

This is what I get from plack-error.log:

***@Celacp:/var/log/koha/biblioteca$ sudo more plack-error.log
Process Backgrounded
2018/08/15-23:29:54 Starman::Server (type Net::Server::PreFork) starting!
pid(7772)
Binding to UNIX socket file "/var/run/koha/biblioteca/plack.sock"
Setting gid to "1001 1001"
Setting uid to "1001"
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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:32:01 Server closing!

...
...

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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:49:00 Server closing!
panic: fold_constants JMPENV_PUSH returned 2 at
/usr/share/perl5/Plack/Util.pm line 120.


This is the content of refered file:

***@Celacp:/var/log/koha/biblioteca$ sudo more /usr/share/koha/api/v1/app.pl
#!/usr/bin/perl

# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

use Modern::Perl;

require Mojolicious::Commands;
Mojolicious::Commands->start_app('Koha::REST::V1');




|-----------------------------------------------------------------------------------------------------------------|
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
Post by Alvaro Cornejo
Hi
I´m trying to enable plack on my instance but Intranet and Opac hungs
after restarting apache.
WARNING: koha-plack requires some Apache modules that you are missing.
sudo a2enmod proxy_http
Plack enabled for biblioteca
Enabling module proxy.
Enabling module proxy_http.
service apache2 restart
Plack enabled for biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
From here, if I try to access OPAC or internet it taked forever to load
any page
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET /cgi-bin/koha/about.pl
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.
Reason: *Error reading from remote server*
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
I need to disable plack and restart apache to recover the intranet and opac
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP Tue
Mar 27 14:42:14 UTC 2018 x86_64 Memcached is dissabled
Any ideas of what can be happening?
Regards,
Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mail
Tomas Cohen Arazi
2018-08-16 08:48:45 UTC
Permalink
Can u run this:

$ sudo apt install pmtools
$ pmvers Mojolicious
$ pmvers JSON::Validator

and paste the output?
Post by Alvaro Cornejo
Hi
Process Backgrounded
2018/08/15-23:29:54 Starman::Server (type Net::Server::PreFork) starting!
pid(7772)
Binding to UNIX socket file "/var/run/koha/biblioteca/plack.sock"
Setting gid to "1001 1001"
Setting uid to "1001"
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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:32:01 Server closing!
...
...
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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:49:00 Server closing!
panic: fold_constants JMPENV_PUSH returned 2 at
/usr/share/perl5/Plack/Util.pm line 120.
app.pl
#!/usr/bin/perl
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street
<https://maps.google.com/?q=51+Franklin+Street&entry=gmail&source=g>,
Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Koha::REST::V1');
|-----------------------------------------------------------------------------------------------------------------|
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
Post by Alvaro Cornejo
Hi
I´m trying to enable plack on my instance but Intranet and Opac hungs
after restarting apache.
WARNING: koha-plack requires some Apache modules that you are missing.
sudo a2enmod proxy_http
Plack enabled for biblioteca
Enabling module proxy.
Enabling module proxy_http.
service apache2 restart
Plack enabled for biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
From here, if I try to access OPAC or internet it taked forever to load
any page
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET /cgi-bin/koha/
about.pl
Post by Alvaro Cornejo
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.
Reason: *Error reading from remote server*
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
I need to disable plack and restart apache to recover the intranet and
opac
Post by Alvaro Cornejo
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP Tue
Mar 27 14:42:14 UTC 2018 x86_64 Memcached is dissabled
Any ideas of what can be happening?
Regards,
Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://list
Tomas Cohen Arazi
2018-08-16 08:50:00 UTC
Permalink
Also, make sure your /etc/apt/sources.list.d/koha.list file contains

deb http://debian.koha-community.org/koha 17.05 main
Post by Tomas Cohen Arazi
$ sudo apt install pmtools
$ pmvers Mojolicious
$ pmvers JSON::Validator
and paste the output?
El jue., 16 ago. 2018 a las 2:07, Alvaro Cornejo (<
Post by Alvaro Cornejo
Hi
Process Backgrounded
2018/08/15-23:29:54 Starman::Server (type Net::Server::PreFork) starting!
pid(7772)
Binding to UNIX socket file "/var/run/koha/biblioteca/plack.sock"
Setting gid to "1001 1001"
Setting uid to "1001"
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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:32:01 Server closing!
...
...
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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:49:00 Server closing!
panic: fold_constants JMPENV_PUSH returned 2 at
/usr/share/perl5/Plack/Util.pm line 120.
app.pl
#!/usr/bin/perl
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street
<https://maps.google.com/?q=51+Franklin+Street&entry=gmail&source=g>,
Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Koha::REST::V1');
|-----------------------------------------------------------------------------------------------------------------|
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
Post by Alvaro Cornejo
Hi
I´m trying to enable plack on my instance but Intranet and Opac hungs
after restarting apache.
WARNING: koha-plack requires some Apache modules that you are missing.
sudo a2enmod proxy_http
Plack enabled for biblioteca
Enabling module proxy.
Enabling module proxy_http.
service apache2 restart
Plack enabled for biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
From here, if I try to access OPAC or internet it taked forever to load
any page
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET /cgi-bin/koha/
about.pl
Post by Alvaro Cornejo
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.
Reason: *Error reading from remote server*
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
I need to disable plack and restart apache to recover the intranet and
opac
Post by Alvaro Cornejo
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP Tue
Mar 27 14:42:14 UTC 2018 x86_64 Memcached is dissabled
Any ideas of what can be happening?
Regards,
Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384 <+54%209%20351%20351-3384>
GPG: B2F3C15F
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://l
Alvaro Cornejo
2018-08-17 04:01:56 UTC
Permalink
Hi Tomas

Thanks for your answer. This is the result of the pm commnad:

***@Celacp:~$
***@Celacp:~$ pmvers Mojolicious
7.21
***@Celacp:~$ pmvers JSON::Validator
0.97
***@Celacp:~$

***@Celacp:~$ sudo more /etc/apt/sources.list.d/koha.list
deb http://debian.koha-community.org/koha stable main
***@Celacp:~$

I do not want to change the apt source version to 17.05 main since I need
to first save the koha customisations we made.

does this be the cause of the plack error?

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
Post by Tomas Cohen Arazi
Also, make sure your /etc/apt/sources.list.d/koha.list file contains
deb http://debian.koha-community.org/koha 17.05 main
Post by Tomas Cohen Arazi
$ sudo apt install pmtools
$ pmvers Mojolicious
$ pmvers JSON::Validator
and paste the output?
El jue., 16 ago. 2018 a las 2:07, Alvaro Cornejo (<
Post by Alvaro Cornejo
Hi
Process Backgrounded
2018/08/15-23:29:54 Starman::Server (type Net::Server::PreFork) starting!
pid(7772)
Binding to UNIX socket file "/var/run/koha/biblioteca/plack.sock"
Setting gid to "1001 1001"
Setting uid to "1001"
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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:32:01 Server closing!
...
...
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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:49:00 Server closing!
panic: fold_constants JMPENV_PUSH returned 2 at
/usr/share/perl5/Plack/Util.pm line 120.
app.pl
#!/usr/bin/perl
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street
<https://maps.google.com/?q=51+Franklin+Street&entry=gmail&source=g>,
Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Koha::REST::V1');
|-----------------------------------------------------------
------------------------------------------------------|
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
Post by Alvaro Cornejo
Hi
I´m trying to enable plack on my instance but Intranet and Opac hungs
after restarting apache.
WARNING: koha-plack requires some Apache modules that you are missing.
sudo a2enmod proxy_http
Plack enabled for biblioteca
Enabling module proxy.
Enabling module proxy_http.
service apache2 restart
Plack enabled for biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
From here, if I try to access OPAC or internet it taked forever to load
any page
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET /cgi-bin/koha/
about.pl
Post by Alvaro Cornejo
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.
Reason: *Error reading from remote server*
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
I need to disable plack and restart apache to recover the intranet and
opac
Post by Alvaro Cornejo
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP Tue
Mar 27 14:42:14 UTC 2018 x86_64 Memcached is dissabled
Any ideas of what can be happening?
Regards,
Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384 <+54%209%20351%20351-3384>
GPG: B2F3C15F
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https:
Alvaro Cornejo
2018-08-18 15:58:06 UTC
Permalink
Hi

Any idea on this?

Is there any file edit/additonal configuration required in order to enable
plack other that the plack instance enable and plack start?

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
Post by Alvaro Cornejo
Hi Tomas
7.21
0.97
deb http://debian.koha-community.org/koha stable main
I do not want to change the apt source version to 17.05 main since I need
to first save the koha customisations we made.
does this be the cause of the plack error?
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
Post by Tomas Cohen Arazi
Also, make sure your /etc/apt/sources.list.d/koha.list file contains
deb http://debian.koha-community.org/koha 17.05 main
El jue., 16 ago. 2018 a las 5:48, Tomas Cohen Arazi (<
Post by Tomas Cohen Arazi
$ sudo apt install pmtools
$ pmvers Mojolicious
$ pmvers JSON::Validator
and paste the output?
El jue., 16 ago. 2018 a las 2:07, Alvaro Cornejo (<
Post by Alvaro Cornejo
Hi
Process Backgrounded
2018/08/15-23:29:54 Starman::Server (type Net::Server::PreFork) starting!
pid(7772)
Binding to UNIX socket file "/var/run/koha/biblioteca/plack.sock"
Setting gid to "1001 1001"
Setting uid to "1001"
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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:32:01 Server closing!
...
...
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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:49:00 Server closing!
panic: fold_constants JMPENV_PUSH returned 2 at
/usr/share/perl5/Plack/Util.pm line 120.
app.pl
#!/usr/bin/perl
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street
<https://maps.google.com/?q=51+Franklin+Street&entry=gmail&source=g>,
Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Koha::REST::V1');
|-----------------------------------------------------------
------------------------------------------------------|
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
Post by Alvaro Cornejo
Hi
I´m trying to enable plack on my instance but Intranet and Opac hungs
after restarting apache.
WARNING: koha-plack requires some Apache modules that you are missing.
sudo a2enmod proxy_http
Plack enabled for biblioteca
Enabling module proxy.
Enabling module proxy_http.
service apache2 restart
Plack enabled for biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
From here, if I try to access OPAC or internet it taked forever to
load
Post by Alvaro Cornejo
any page
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request *GET /cgi-bin/koha/
about.pl
Post by Alvaro Cornejo
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.
Reason: *Error reading from remote server*
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port 443
I need to disable plack and restart apache to recover the intranet
and opac
Post by Alvaro Cornejo
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP Tue
Mar 27 14:42:14 UTC 2018 x86_64 Memcached is dissabled
Any ideas of what can be happening?
Regards,
Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384 <+54%209%20351%20351-3384>
GPG: B2F3C15F
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mail
Alvaro Cornejo
2018-08-22 13:19:34 UTC
Permalink
Hi Jonathan

I'll then change repository to

deb http://debian.koha-community.org/koha 17.05 main

update/upgrade and see what happens.

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

2018-08-21 20:30 GMT-05:00 Jonathan Druart <
Hi Alvaro,
Your problem is what Tomas told you, you are using Koha 17.05 with
packages from "stable", which are for 18.05
Regards,
Jonathan
Post by Alvaro Cornejo
Hi
Any idea on this?
Is there any file edit/additonal configuration required in order to enable
plack other that the plack instance enable and plack start?
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
Post by Alvaro Cornejo
Hi Tomas
7.21
0.97
deb http://debian.koha-community.org/koha stable main
I do not want to change the apt source version to 17.05 main since I
need
Post by Alvaro Cornejo
to first save the koha customisations we made.
does this be the cause of the plack error?
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
Post by Alvaro Cornejo
y GPRS online
Visitenos en www.perusms.com
Post by Tomas Cohen Arazi
Also, make sure your /etc/apt/sources.list.d/koha.list file contains
deb http://debian.koha-community.org/koha 17.05 main
El jue., 16 ago. 2018 a las 5:48, Tomas Cohen Arazi (<
Post by Tomas Cohen Arazi
$ sudo apt install pmtools
$ pmvers Mojolicious
$ pmvers JSON::Validator
and paste the output?
El jue., 16 ago. 2018 a las 2:07, Alvaro Cornejo (<
Post by Alvaro Cornejo
Hi
Process Backgrounded
2018/08/15-23:29:54 Starman::Server (type Net::Server::PreFork) starting!
pid(7772)
Binding to UNIX socket file "/var/run/koha/biblioteca/plack.sock"
Setting gid to "1001 1001"
Setting uid to "1001"
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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) 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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:32:01 Server closing!
...
...
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 line 42.
Compilation failed in require at (eval 1285) line 1.
2018/08/15-23:49:00 Server closing!
panic: fold_constants JMPENV_PUSH returned 2 at
/usr/share/perl5/Plack/Util.pm line 120.
/usr/share/koha/api/v1/
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
app.pl
#!/usr/bin/perl
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
under
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option)
any
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street
<https://maps.google.com/?q=51+Franklin+Street&entry=gmail&source=g>
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
<https://maps.google.com/?q=51+Franklin+Street&entry=gmail&source=g
,
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Koha::REST::V1');
|-----------------------------------------------------------
------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
cualquier
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias
via
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
SMS
y GPRS online
Visitenos en www.perusms.com
Post by Alvaro Cornejo
Hi
I´m trying to enable plack on my instance but Intranet and Opac
hungs
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Post by Alvaro Cornejo
after restarting apache.
WARNING: koha-plack requires some Apache modules that you are
missing.
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Post by Alvaro Cornejo
sudo a2enmod proxy_http
Plack enabled for biblioteca
Enabling module proxy.
Enabling module proxy_http.
service apache2 restart
Plack enabled for biblioteca
* Starting Plack daemon for biblioteca
[ OK ]
From here, if I try to access OPAC or internet it taked forever to
load
Post by Alvaro Cornejo
any page
Proxy Error
The proxy server received an invalid response from an upstream
server.
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Post by Alvaro Cornejo
The proxy server could not handle the request *GET /cgi-bin/koha/
about.pl
Post by Alvaro Cornejo
<https://biblioteca-admin.celacp.org/cgi-bin/koha/about.pl>*.
Reason: *Error reading from remote server*
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port
443
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Post by Alvaro Cornejo
Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
------------------------------
Apache/2.4.18 (Ubuntu) Server at biblioteca-admin.celacp.org Port
443
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Post by Alvaro Cornejo
I need to disable plack and restart apache to recover the intranet
and opac
Post by Alvaro Cornejo
Versión de Koha: 17.05.05.000
Versión del SO ('uname -a'): Linux 4.15.13-x86_64-linode106 #1 SMP
Tue
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
Post by Alvaro Cornejo
Post by Alvaro Cornejo
Mar 27 14:42:14 UTC 2018 x86_64 Memcached is dissabled
Any ideas of what can be happening?
Regards,
Alvaro
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384 <+54%209%20351%20351-3384>
<+54%209%20351%20351-3384>
Post by Alvaro Cornejo
Post by Tomas Cohen Arazi
Post by Tomas Cohen Arazi
GPG: B2F3C15F
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384 <+54%209%20351%20351-3384>
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katip
anjoze
2018-08-23 10:34:37 UTC
Permalink
I was having the same problem because I've made: *apt upgrade*
and then I forgot to make:
*sudo apt install koha-common
sudo koha-upgrade-schema koha*




-----
Koha version: 16.05.05
- -
José Anjos
--
Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz

Loading...