Trying to figure out if I have Plack running right
Hey Everyone, Our librarian has asked me to look into slowness when getting a response for patron lookups. With a little investigation, it looked like Plack was supposed to help with that. I thought I had it running but when I check the About page on the Bywater demos there is a line that says "PSGI: Plack (deployment)" that does not appear on my About page. Here is my About info: Koha version: 19.05.01.000 OS version ('uname -a'): Linux SAR144Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 Perl interpreter: /usr/bin/perl Perl version: 5.024001 Perl @INC: /usr/share/koha/lib /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 MySQL version: mysql Ver 15.1 Distrib 10.1.38-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Apache version: Server version: Apache/2.4.25 (Debian) Memcached: Servers: localhost:11211 | Namespace: kohamain | Status: running. | Config read from: koha-conf.xml Zebra version: Zebra 2.0.59 (C) 1994-2014, Index Data Zebra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. SHA1 ID: c00bfddbf0f3608340d61298acc61dafb167f9b2 Using ICU Date and time: 11/05/2019 15:02 Time zone: Used: America/Denver | Config: Undefined | Environment (TZ): Undefined I noticed that my Apache version is 2.4.25 which I figured was fine, but I did notice a reference in the Wiki I believe to version 2.4.10, and that is what is running on the Bywater demo. I thought since I was running a more recent version that I would be OK, but perhaps not. When I run "sudo koha-plack --start <instance>" I get back: [FAIL] Error: Plack already running for <instance>: failed! So it looks like Plack is running. I did go back and restart things, doing: sudo koha-plack -stop <instance> sudo koha-plack -start <instance> sudo service apache2 restart Same result. Hopefully I have missed something obvious. Any help is appreciated. Thanks, Doug Dearden Director / Information Technology School for Advanced Research (SAR) PO Box 2188 / Santa Fe / NM / 87504-2188 505.954.7220 / www.sarweb.org<http://www.sarweb.org/> EXPLORING HUMANITY. UNDERSTANDING OUR WORLD. Receive the SAR monthly E-News: SIGN UP HERE <https://sarweb.org/about/e-news-signup/>
Hi Doug
When I run "sudo koha-plack --start <instance>" I get back: [FAIL] Error: Plack already running for <instance>: failed!
So it looks like Plack is running.
I did go back and restart things, doing: sudo koha-plack -stop <instance> sudo koha-plack -start <instance> sudo service apache2 restart
I'm not sure what commands you really executed, but if your Koha instance is called "abc" (for example) the commands would be: 1. First enable Plack: sudo koha-plack --enable abc 2. Only then you can start Plack: sudo koha-plack -start abc See also: https://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_package... Hope this helps. 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
Hey Michael, OK, this is weird. (Instance is named main) koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --disable main Plack already disabled for main OPAC Plack already disabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --start main [FAIL] Error: Plack already running for main: failed! If it is disabled, and refuses to enable, how can it already be running? Hmmmm. Doug -----Original Message----- From: Koha [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Michael Kuhn Sent: Tuesday, November 5, 2019 3:39 PM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Trying to figure out if I have Plack running right Hi Doug
When I run "sudo koha-plack --start <instance>" I get back: [FAIL] Error: Plack already running for <instance>: failed!
So it looks like Plack is running.
I did go back and restart things, doing: sudo koha-plack -stop <instance> sudo koha-plack -start <instance> sudo service apache2 restart
I'm not sure what commands you really executed, but if your Koha instance is called "abc" (for example) the commands would be: 1. First enable Plack: sudo koha-plack --enable abc 2. Only then you can start Plack: sudo koha-plack -start abc See also: https://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_package... Hope this helps. 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 _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Doug, The koha-plack --enable command did not work. Can you post the result of the following command: $ sudo grep Include /etc/apache2/sites-available/main.conf Regards, Jonathan Le mer. 6 nov. 2019 à 01:00, Doug Dearden <dearden@sarsf.org> a écrit :
Hey Michael,
OK, this is weird. (Instance is named main)
koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --disable main Plack already disabled for main OPAC Plack already disabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --start main [FAIL] Error: Plack already running for main: failed!
If it is disabled, and refuses to enable, how can it already be running?
Hmmmm.
Doug
-----Original Message----- From: Koha [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Michael Kuhn Sent: Tuesday, November 5, 2019 3:39 PM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Trying to figure out if I have Plack running right
Hi Doug
When I run "sudo koha-plack --start <instance>" I get back: [FAIL] Error: Plack already running for <instance>: failed!
So it looks like Plack is running.
I did go back and restart things, doing: sudo koha-plack -stop <instance> sudo koha-plack -start <instance> sudo service apache2 restart
I'm not sure what commands you really executed, but if your Koha instance is called "abc" (for example) the commands would be:
1. First enable Plack:
sudo koha-plack --enable abc
2. Only then you can start Plack:
sudo koha-plack -start abc
See also: https://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_package...
Hope this helps.
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 _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hey Jonathan, That command returns this: Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf Include /etc/koha/apache-shared-opac.conf # Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf # Include /etc/koha/apache-shared-intranet.conf I have two other conf files that I ran this against, so: koha@SAR144Linux:/$ sudo grep Include /etc/apache2/sites-available/mainintra.conf Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf Include /etc/koha/apache-shared-intranet.conf koha@SAR144Linux:/$ sudo grep Include /etc/apache2/sites-available/main-le-ssl.conf Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf Include /etc/koha/apache-shared-opac.conf #Include /etc/letsencrypt/options-ssl-apache.conf # Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf # Include /etc/koha/apache-shared-intranet.conf koha@SAR144Linux:/$ main.conf listens on port 80, and redirects / to port 443 so all connections are encrypted main-le-ssl.conf listens on port 443, opac only . This is the public facing OPAC at https://library.sarsf.org mainintra.conf listens on port 8080, only available on the internal network Thanks, Doug -----Original Message----- From: Jonathan Druart [mailto:jonathan.druart@bugs.koha-community.org] Sent: Wednesday, November 6, 2019 1:48 AM To: Doug Dearden <dearden@sarsf.org> Cc: mik@adminkuhn.ch; koha@lists.katipo.co.nz Subject: Re: [Koha] Trying to figure out if I have Plack running right Hi Doug, The koha-plack --enable command did not work. Can you post the result of the following command: $ sudo grep Include /etc/apache2/sites-available/main.conf Regards, Jonathan Le mer. 6 nov. 2019 à 01:00, Doug Dearden <dearden@sarsf.org> a écrit :
Hey Michael,
OK, this is weird. (Instance is named main)
koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --disable main Plack already disabled for main OPAC Plack already disabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --start main [FAIL] Error: Plack already running for main: failed!
If it is disabled, and refuses to enable, how can it already be running?
Hmmmm.
Doug
-----Original Message----- From: Koha [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Michael Kuhn Sent: Tuesday, November 5, 2019 3:39 PM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Trying to figure out if I have Plack running right
Hi Doug
When I run "sudo koha-plack --start <instance>" I get back: [FAIL] Error: Plack already running for <instance>: failed!
So it looks like Plack is running.
I did go back and restart things, doing: sudo koha-plack -stop <instance> sudo koha-plack -start <instance> sudo service apache2 restart
I'm not sure what commands you really executed, but if your Koha instance is called "abc" (for example) the commands would be:
1. First enable Plack:
sudo koha-plack --enable abc
2. Only then you can start Plack:
sudo koha-plack -start abc
See also: https://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_package...
Hope this helps.
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 _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
This is weird, did you install the koha-common package on Debian, or did a manual install using perl Makefile.PL? Your files should include: Include /etc/koha/apache-shared-opac-plack.conf and Include /etc/koha/apache-shared-intranet-plack.conf respectively. El mié., 6 nov. 2019 a las 13:51, Doug Dearden (<dearden@sarsf.org>) escribió:
Hey Jonathan,
That command returns this: Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf Include /etc/koha/apache-shared-opac.conf # Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf # Include /etc/koha/apache-shared-intranet.conf
I have two other conf files that I ran this against, so:
koha@SAR144Linux:/$ sudo grep Include /etc/apache2/sites-available/mainintra.conf Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf Include /etc/koha/apache-shared-intranet.conf
koha@SAR144Linux:/$ sudo grep Include /etc/apache2/sites-available/main-le-ssl.conf Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf Include /etc/koha/apache-shared-opac.conf #Include /etc/letsencrypt/options-ssl-apache.conf # Include /etc/koha/apache-shared.conf # Include /etc/koha/apache-shared-disable.conf # Include /etc/koha/apache-shared-intranet.conf koha@SAR144Linux:/$
main.conf listens on port 80, and redirects / to port 443 so all connections are encrypted main-le-ssl.conf listens on port 443, opac only . This is the public facing OPAC at https://library.sarsf.org mainintra.conf listens on port 8080, only available on the internal network
Thanks,
Doug
-----Original Message----- From: Jonathan Druart [mailto:jonathan.druart@bugs.koha-community.org] Sent: Wednesday, November 6, 2019 1:48 AM To: Doug Dearden <dearden@sarsf.org> Cc: mik@adminkuhn.ch; koha@lists.katipo.co.nz Subject: Re: [Koha] Trying to figure out if I have Plack running right
Hi Doug,
The koha-plack --enable command did not work. Can you post the result of the following command: $ sudo grep Include /etc/apache2/sites-available/main.conf
Regards, Jonathan
Le mer. 6 nov. 2019 à 01:00, Doug Dearden <dearden@sarsf.org> a écrit :
Hey Michael,
OK, this is weird. (Instance is named main)
koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --disable main Plack already disabled for main OPAC Plack already disabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --enable main Plack not enabled for main OPAC Plack not enabled for main Intranet koha@SAR144Linux:~$ sudo koha-plack --start main [FAIL] Error: Plack already running for main: failed!
If it is disabled, and refuses to enable, how can it already be running?
Hmmmm.
Doug
-----Original Message----- From: Koha [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of
Michael Kuhn
Sent: Tuesday, November 5, 2019 3:39 PM To: koha@lists.katipo.co.nz Subject: Re: [Koha] Trying to figure out if I have Plack running right
Hi Doug
When I run "sudo koha-plack --start <instance>" I get back: [FAIL] Error: Plack already running for <instance>: failed!
So it looks like Plack is running.
I did go back and restart things, doing: sudo koha-plack -stop <instance> sudo koha-plack -start <instance> sudo service apache2 restart
I'm not sure what commands you really executed, but if your Koha instance is called "abc" (for example) the commands would be:
1. First enable Plack:
sudo koha-plack --enable abc
2. Only then you can start Plack:
sudo koha-plack -start abc
See also:
https://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_package...
Hope this helps.
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 _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Tomás Cohen Arazi Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B2F3C15F
participants (4)
-
Doug Dearden -
Jonathan Druart -
Michael Kuhn -
Tomas Cohen Arazi