/Running Ubuntu 16.04, mariadb, Koha 17.11/ I have installed Koha on a testing server. Koha seems to be working well. (Nice piece of software!). My goal is to set up a single server that can be used by 5-6 different (independent) libraries in our school network. However, everything is VERY SLOW. Average of 5-8 seconds for a search from the OPAC. This is way to slow to be used in production, IMHO. I have read that Plack is the answer needed. I have read everything I can find on installing Plack, however, the main info I can find on Plack (https://wiki.koha-community.org/wiki/Plack) states that it is outdated. I have enabled Plack on my library instance, but it doesn't work (500 error). Looking at the plack-error.log it seems I have a number of perl modules that are not installed. I have attempted to follow the instructions on the wiki page under Installing with packages (apt-get install... and then 4 dh-make-perl... commands.) I have no experience with perl and thus must follow the instructions step by step. I have several questions: * Is there an updated plack installation guide for 17.11? * where do I put the opac.psgi file? There is no /srv/koha folder in my installation * how can be sure that all the needed perl modules are present. ANY ADVICE would be helpful. -- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
Once you created the instance you just need to run $ koha-plack --enable instance $ koha-plack --start instance $ service apache2 restart Enjoy El mar., 1 de may. de 2018 2:52 p. m., ksorbo <keith@thesorbos.com> escribió:
/Running Ubuntu 16.04, mariadb, Koha 17.11/
I have installed Koha on a testing server. Koha seems to be working well. (Nice piece of software!). My goal is to set up a single server that can be used by 5-6 different (independent) libraries in our school network.
However, everything is VERY SLOW. Average of 5-8 seconds for a search from the OPAC. This is way to slow to be used in production, IMHO.
I have read that Plack is the answer needed. I have read everything I can find on installing Plack, however, the main info I can find on Plack (https://wiki.koha-community.org/wiki/Plack) states that it is outdated.
I have enabled Plack on my library instance, but it doesn't work (500 error). Looking at the plack-error.log it seems I have a number of perl modules that are not installed.
I have attempted to follow the instructions on the wiki page under Installing with packages (apt-get install... and then 4 dh-make-perl... commands.) I have no experience with perl and thus must follow the instructions step by step.
I have several questions:
* Is there an updated plack installation guide for 17.11? * where do I put the opac.psgi file? There is no /srv/koha folder in my installation * how can be sure that all the needed perl modules are present.
ANY ADVICE would be helpful.
-- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html _______________________________________________ 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 (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
I followed those koha-plack steps. When I do that I get the following error in my /var/log/koha/plack-error.log ------------------------------------- Error while loading /etc/koha/plack.psgi: Can't locate CGI/Emulate/PSGI.pm in @INC (you may need to install the CGI::Emulate::PSGI 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.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 .) at /usr/share/perl5/Plack/App/WrapCGI.pm line 7. BEGIN failed--compilation aborted at /usr/share/perl5/Plack/App/WrapCGI.pm line 7. Compilation failed in require at /usr/share/perl5/Plack/App/CGIBin.pm line 6. BEGIN failed--compilation aborted at /usr/share/perl5/Plack/App/CGIBin.pm line 6. Compilation failed in require at /etc/koha/plack.psgi line 21. BEGIN failed--compilation aborted at /etc/koha/plack.psgi line 21. --------------------------------------------------------- I should note that since the first posting in this thread, I did a full reinstall on a blank Ubuntu 16.04 server. I got no errors in any part of the install process, but plack is definitely not working. Could it be that the install process is failing somewhere. (I am not sure the cron jobs are set up correctly either.) -- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
Hi, I've just finished setting Plack, so few tips which you may find helpfull: - you probably need to install libcgi-emulate-psgi-perl libcgi-compile-perl (not sure if packaged for Ubuntu 16.04, I'm using Debian 9.4) - If you;re missing any perl modules, try to google them first and check if they have been packaged for your OS, sometimes package name is tricky to find with apt - if you're enabling Plack for existing instance, check if you have plack-related Include lines in your /etc/apache2/sites-available/$INSTANCE.conf (I've just filled a bug for this: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20692) - after Plack is tarted, you should see entries in /var/log/koha/$instance/plack.log when any page is accessed Hope this will help. Piotr 2018-05-01 21:30 GMT+02:00 ksorbo <keith@thesorbos.com>:
I followed those koha-plack steps.
When I do that I get the following error in my /var/log/koha/plack-error.log
------------------------------------- Error while loading /etc/koha/plack.psgi: Can't locate CGI/Emulate/PSGI.pm in @INC (you may need to install the CGI::Emulate::PSGI 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.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 .) at /usr/share/perl5/Plack/App/WrapCGI.pm line 7. BEGIN failed--compilation aborted at /usr/share/perl5/Plack/App/WrapCGI.pm line 7. Compilation failed in require at /usr/share/perl5/Plack/App/CGIBin.pm line 6. BEGIN failed--compilation aborted at /usr/share/perl5/Plack/App/CGIBin.pm line 6. Compilation failed in require at /etc/koha/plack.psgi line 21. BEGIN failed--compilation aborted at /etc/koha/plack.psgi line 21. ---------------------------------------------------------
I should note that since the first posting in this thread, I did a full reinstall on a blank Ubuntu 16.04 server. I got no errors in any part of the install process, but plack is definitely not working. Could it be that the install process is failing somewhere. (I am not sure the cron jobs are set up correctly either.)
-- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
hmm, i think this may be a possible bug... 'libcgi-emulate-psgi-perl' doesn't seem to be listed as an explicit dependency for any koha* package so, it seems probable that this package wouldn't be installed by default :'( (am i missing something here?) Mason On 2/05/18 8:40 am, Piotr Wejman wrote:
Hi,
I've just finished setting Plack, so few tips which you may find helpfull: - you probably need to install libcgi-emulate-psgi-perl libcgi-compile-perl (not sure if packaged for Ubuntu 16.04, I'm using Debian 9.4) - If you;re missing any perl modules, try to google them first and check if they have been packaged for your OS, sometimes package name is tricky to find with apt - if you're enabling Plack for existing instance, check if you have plack-related Include lines in your /etc/apache2/sites-available/$INSTANCE.conf (I've just filled a bug for this: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20692) - after Plack is tarted, you should see entries in /var/log/koha/$instance/plack.log when any page is accessed
Hope this will help.
Piotr
2018-05-01 21:30 GMT+02:00 ksorbo <keith@thesorbos.com>:
I followed those koha-plack steps.
When I do that I get the following error in my /var/log/koha/plack-error.log
------------------------------------- Error while loading /etc/koha/plack.psgi: Can't locate CGI/Emulate/PSGI.pm in @INC (you may need to install the CGI::Emulate::PSGI 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.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 .) at /usr/share/perl5/Plack/App/WrapCGI.pm line 7. BEGIN failed--compilation aborted at /usr/share/perl5/Plack/App/WrapCGI.pm line 7. Compilation failed in require at /usr/share/perl5/Plack/App/CGIBin.pm line 6. BEGIN failed--compilation aborted at /usr/share/perl5/Plack/App/CGIBin.pm line 6. Compilation failed in require at /etc/koha/plack.psgi line 21. BEGIN failed--compilation aborted at /etc/koha/plack.psgi line 21. ---------------------------------------------------------
I should note that since the first posting in this thread, I did a full reinstall on a blank Ubuntu 16.04 server. I got no errors in any part of the install process, but plack is definitely not working. Could it be that the install process is failing somewhere. (I am not sure the cron jobs are set up correctly either.)
-- Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html _______________________________________________ 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
On 2/05/18 9:11 am, Mason James wrote:
hmm, i think this may be a possible bug...
'libcgi-emulate-psgi-perl' doesn't seem to be listed as an explicit dependency for any koha* package
so, it seems probable that this package wouldn't be installed by default :'( (am i missing something here?)
Mason aah, false alarm... :)
# aptitude why libcgi-emulate-psgi-perl i koha-common Depends starman i A starman Depends libplack-perl i A libplack-perl Recommends libcgi-emulate-psgi-perl
On 2018-05-01 05:37 PM, Mason James wrote:
On 2/05/18 9:11 am, Mason James wrote: [snip] aah, false alarm... :)
# aptitude why libcgi-emulate-psgi-perl i koha-common Depends starman
Yup -- we're running (testing Ubuntu 18.04) into the same sort of problem. Apparently (could be wrong) Starman is a plack specific web server. We have been running Apache for 25 years, know it, and are happy with it. Not sure why Koha might (big question mark) be bi-forking to something different. Perhaps this thread should be moved to devel? Best -- Paul
i A starman Depends libplack-perl i A libplack-perl Recommends libcgi-emulate-psgi-perl
Not using Plack is unacceptable nowadays. Maybe a 3x speed gain is a good argument. And we still use the old and loved Apache server in front of it. As for the install not pulling the dependencies, please file a bug so the packaging manager takes care. El mar., 1 de may. de 2018 7:20 p. m., Paul A <paul.a@navalmarinearchive.com> escribió:
On 2018-05-01 05:37 PM, Mason James wrote:
On 2/05/18 9:11 am, Mason James wrote: [snip] aah, false alarm... :)
# aptitude why libcgi-emulate-psgi-perl i koha-common Depends starman
Yup -- we're running (testing Ubuntu 18.04) into the same sort of problem. Apparently (could be wrong) Starman is a plack specific web server. We have been running Apache for 25 years, know it, and are happy with it. Not sure why Koha might (big question mark) be bi-forking to something different.
Perhaps this thread should be moved to devel?
Best -- Paul
i A starman Depends libplack-perl i A libplack-perl Recommends libcgi-emulate-psgi-perl
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 (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
Mason opened bug 20693 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20693 On Tue, 1 May 2018 at 22:49 Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Not using Plack is unacceptable nowadays.
Maybe a 3x speed gain is a good argument. And we still use the old and loved Apache server in front of it.
As for the install not pulling the dependencies, please file a bug so the packaging manager takes care.
El mar., 1 de may. de 2018 7:20 p. m., Paul A < paul.a@navalmarinearchive.com> escribió:
On 2018-05-01 05:37 PM, Mason James wrote:
On 2/05/18 9:11 am, Mason James wrote: [snip] aah, false alarm... :)
# aptitude why libcgi-emulate-psgi-perl i koha-common Depends starman
Yup -- we're running (testing Ubuntu 18.04) into the same sort of problem. Apparently (could be wrong) Starman is a plack specific web server. We have been running Apache for 25 years, know it, and are happy with it. Not sure why Koha might (big question mark) be bi-forking to something different.
Perhaps this thread should be moved to devel?
Best -- Paul
i A starman Depends libplack-perl i A libplack-perl Recommends libcgi-emulate-psgi-perl
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 (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 <+54%209%20351%20351-3384> GPG: B2F3C15F _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (6)
-
Jonathan Druart -
ksorbo -
Mason James -
Paul A -
Piotr Wejman -
Tomas Cohen Arazi