Bug#928813: libapache2-mod-jk: Jk can not find any configured worker

McIntyre, Vincent (CASS, Marsfield) Vincent.Mcintyre at csiro.au
Mon Mar 9 07:00:47 GMT 2020


Package: libapache2-mod-jk
Version: 1:1.2.46-1
Tags: patch
Followup-For: Bug #928813

I am seeing this too. I worked around like this

    # cd /etc/apache2/mods-available
    # ln -s httpd-jk.conf jk.conf
    # a2enmod jk
    Enabling config file jk.conf.
    To activate the new configuration, you need to run:
      systemctl restart apache2
    # systemctl restart apache2
    # echo $?
    0

If there really is a need to maintain the discordant file naming
(which I also think is silly) then either the package needs this change

diff --git a/debian/libapache2-mod-jk.links b/debian/libapache2-mod-jk.links
index 2baa729..24df524 100644
--- a/debian/libapache2-mod-jk.links
+++ b/debian/libapache2-mod-jk.links
@@ -1 +1,2 @@
 /etc/apache2/mods-available/httpd-jk.conf /etc/libapache2-mod-jk/httpd-jk.conf
+/etc/apache2/mods-available/httpd-jk.conf /etc/libapache2/jk.conf

or perhaps a modification to the auto-generated postinst

--- /var/lib/dpkg/info/libapache2-mod-jk.postinst       2018-10-14 21:26:05.000000000 +1100
+++ /var/lib/dpkg/info/libapache2-mod-jk.postinst.new   2020-03-09 17:55:20.261264046 +1100
@@ -4,7 +4,7 @@
 if true; then
        if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
                . /usr/share/apache2/apache2-maintscript-helper
-               for conf in jk  ; do
+               for conf in jk httpd-jk  ; do
                        apache2_invoke enmod $conf  || exit 1
                done
        fi

Kind regards
Vince

-- System Information:
Debian Release: 10.3
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-debug')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libapache2-mod-jk depends on:
ii  apache2-bin [apache2-api-20120211]  2.4.38-3+deb10u3
ii  libc6                               2.28-10

libapache2-mod-jk recommends no packages.

Versions of packages libapache2-mod-jk suggests:
pn  libapache-mod-jk-doc  <none>
ii  tomcat9               9.0.16-4

-- Configuration Files:
/etc/libapache2-mod-jk/workers.properties changed [not included]

-- no debconf information


More information about the pkg-java-maintainers mailing list