[Koha-bugs] [Bug 15254] New: Koha/Plack runs in endless loop if mysql is down

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 25 16:36:00 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15254

            Bug ID: 15254
           Summary: Koha/Plack runs in endless loop if mysql is down
 Change sponsored?: ---
           Product: Koha
           Version: 3.20
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Database
          Assignee: gmcharlt at gmail.com
          Reporter: wosch at freebsd.org
        QA Contact: testopia at bugs.koha-community.org

Hi,

I'm running koha-common_3.20.04 with plack enabled.

I noticed that the CPU runs at 100% if the mysql service is down. Looking in
the logfiles it seems that starman starts a /etc/koha/plack.psgi process, and
if it fails try it again.

here is the apache error log output:

DBI connect('dbname=koha_koha;host=localhost;port=3306','koha_koha',...)
failed: Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/DBIx/Connector.pm line
32.
Error while loading /etc/koha/plack.psgi: Can't call method "do" on unblessed
reference at /usr/share/koha/lib/C4/Context.pm line 793.
Compilation failed in require at /usr/share/koha/lib/C4/Letters.pm line 27.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Letters.pm line 27.
Compilation failed in require at /etc/koha/plack.psgi line 33.
BEGIN failed--compilation aborted at /etc/koha/plack.psgi line 33.

How to repeat:
on a system with plack enabled and running koha:

sudo /etc/init.d/koha-common stop
sudo /etc/init.d/mysql stop
sudo /etc/init.d/koha-common start

now check the system load with top(1)

-Wolfram

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list