[Koha-bugs] [Bug 31616] New: koha_worker isn't using RabbitMQ on startup if it's a local server.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 23 11:05:50 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31616

            Bug ID: 31616
           Summary: koha_worker isn't using RabbitMQ on startup if it's a
                    local server.
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: didier.gautheron at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

If RabbitMQ is on the same host that koha then koha_worker is started too early
and it is unable to connect to RabbitMQ so it fallback to polling.

Example with koha-testing-docker 

rabbitmqctl list_channels
Listing channels ...
root at kohadevbox:kohadevbox$ 

No channels.

$ restart_all 
Restarting Apache httpd web server: apache2.
Restarting Koha ILS: koha-commonStopping Plack daemon for kohadev:.
Stopping Z39.50/SRU daemon for kohadev:.
Stopping Koha worker daemon for kohadev (default):.
Stopping Koha worker daemon for kohadev (long_tasks):.
Stopping Koha indexing daemon for kohadev:.
Starting Plack daemon for kohadev:.
Starting Z39.50/SRU daemon for kohadev:.
Starting Koha worker daemon for kohadev (default):.
Starting Koha worker daemon for kohadev (long_tasks):.
Starting Koha indexing daemon for kohadev:.
.
root at kohadevbox:kohadevbox$ rabbitmqctl list_channels
Listing channels ...
pid     user    consumer_count  messages_unacknowledged
<rabbit at kohadevbox.1663923239.864.0>    guest   1       0
<rabbit at kohadevbox.1663923239.883.0>    guest   1       0
root at kohadevbox:kohadevbox$ 

or double check with 
ss -ntp
port 61613 connections.

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


More information about the Koha-bugs mailing list