[Koha] Trying to figure out if I have Plack running right
Tomas Cohen Arazi
tomascohen at gmail.com
Thu Nov 7 15:26:18 NZDT 2019
I recommend that you create an instance xxx and pick the generated xxx.conf
Apache config, and use it as a basis for rewriting your instance's files.
Looking forward to hear about the results!
El mié., 6 de noviembre de 2019 21:02, Doug Dearden <dearden at sarsf.org>
escribió:
> Hey Tomas,
>
>
>
> I did install using packages, but here’s what happened. I had Koha
> running on a server, and the version running was a couple of years old.
> Our librarian asked me to upgrade to 19.05 and I did that. Right after
> upgrading the server hardware failed. I had another linux server running a
> couple of Apache sites unrelated to Koha. I set the apt sources for Koha
> stable main and installed Koha using the packages. I then restored using
> the database backups. It’s been a few months so I don’t remember the order
> of things but I got the schema updated and everything working on version
> 19.05.01. I think I copied the backed up versions of the various apache
> conf files, which may be where things went wrong. I do see
> /etc/koha/apache-shared-opac-plack.conf and
> /etc/koha/apache-shared-intranet-plack.conf on the disk.
>
>
>
> I have now added the Include directives to the appropriate conf files.
> Still something wrong though. BTW I have another instance named archive.
> Plack seems to be working now on that instance, but still has problems on
> main intranet.
>
>
>
> koha at SAR144Linux:~$ sudo grep Include
> /etc/apache2/sites-available/main.conf
>
> 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-opac-plack.conf * I added this
> twice but it kept getting commented out. I think because it is in the SSL
> config*
>
> # Include /etc/koha/apache-shared.conf
>
> # Include /etc/koha/apache-shared-disable.conf
>
> # Include /etc/koha/apache-shared-intranet.conf
>
> koha at 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/koha/apache-shared-opac-plack.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 at 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
>
> Include /etc/koha/apache-shared-intranet-plack.conf
>
> koha at SAR144Linux:~$ sudo koha-plack --enable main
>
> Plack enabled for main OPAC
>
> Plack not enabled for main
> Intranet *HMMM. Not fixed
> yet*
>
> koha at SAR144Linux:~$ sudo koha-plack --enable archive
>
> Plack already enabled for archive OPAC
>
> Plack already enabled for archive Intranet
>
> koha at SAR144Linux:~$ sudo koha-plack --start archive
>
> [FAIL] Error: Plack already running for archive: failed!
>
> koha at SAR144Linux:~$ sudo koha-plack --start main
>
> [ ok ] Starting Plack daemon for main:.
>
> koha at SAR144Linux:~$ sudo koha-plack --stop main
>
> [ ok ] Stopping Plack daemon for main:.
>
> koha at SAR144Linux:~$ sudo koha-plack --disable main
>
> Plack disabled for main OPAC
>
> Plack already disabled for main Intranet
>
> main had a plack configuration error. Please confirm it is corrected.
>
>
>
> OK, that last line indicates something wrong but it doesn’t affect the
> other instance. I couldn’t find anything in the plack.log or
> plack-error.log that gave more info about a configuration error.
>
>
>
> Thanks for the help so far. Any idea what to do next?
>
>
>
> Best,
>
>
>
> Doug
>
>
>
> *From:* Tomas Cohen Arazi [mailto:tomascohen at gmail.com]
> *Sent:* Wednesday, November 6, 2019 11:48 AM
> *To:* Doug Dearden <dearden at sarsf.org>
> *Cc:* Jonathan Druart <jonathan.druart at bugs.koha-community.org>;
> koha at lists.katipo.co.nz
> *Subject:* Re: [Koha] Trying to figure out if I have Plack running right
>
>
>
> 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 at 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 at 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 at 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 at 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-----koh
> From: Jonathan Druart [mailto:jonathan.druart at bugs.koha-community.org]
> Sent: Wednesday, November 6, 2019 1:48 AM
> To: Doug Dearden <dearden at sarsf.org>
> Cc: mik at adminkuhn.ch; koha at 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 at sarsf.org> a écrit :
> >
> > Hey Michael,
> >
> > OK, this is weird.
> > (Instance is named main)
> >
> > koha at SAR144Linux:~$ sudo koha-plack --enable main
> > Plack not enabled for main OPAC
> > Plack not enabled for main Intranet
> > koha at SAR144Linux:~$ sudo koha-plack --disable main
> > Plack already disabled for main OPAC
> > Plack already disabled for main Intranet
> > koha at SAR144Linux:~$ sudo koha-plack --enable main
> > Plack not enabled for main OPAC
> > Plack not enabled for main Intranet
> > koha at 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 at lists.katipo.co.nz] On Behalf Of
> Michael Kuhn
> > Sent: Tuesday, November 5, 2019 3:39 PM
> > To: koha at 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_packages#Plack-related
> >
> > 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 at adminkuhn.ch · W www.adminkuhn.ch
> > _______________________________________________
> > Koha mailing list http://koha-community.org
> > Koha at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
> > _______________________________________________
> > Koha mailing list http://koha-community.org
> > Koha at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
>
> _______________________________________________
> Koha mailing list http://koha-community.org
> Koha at 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
>
More information about the Koha
mailing list