We just upgraded Xwiki vom 14.10.18 to 14.10.19 on a Debian server:
Xwiki is 14.10.19, Debian Bookworm/Bullseye, Tomcat 9, Debian packages
As far as we can remember, installing the new package versions using apt and possibly manually merging the config files was all which was needed to get the new Xwiki up an running.
This time, we ended up with lots of file not found errors in the logs, were the applicatin apparently was still looking for 14.10.18 versioned jars - a simple restart of Tomcat 9 fixed this, but we can’t remember that this was necessary during previous updates.
Did something change in the Tomcat packages, maybe when the new Jetty-based packages were introduced?
Yes, but it was supposed to increase the cases where Tomcat was restarted (it was sometimes not restarted at first install anymore): Tomcat used to be restarted only when already running and the criteria changed for simply being enabled. Also, the service is now restarted using deb-systemd-invoke restart tomcat9.service (instead of the old services). You did not notice any warning or error during upgrade ?
Would be great if you could try to following commands:
systemctl is-enabled tomcat9.service: the command used by postinst to check if it should restart
echo $?: just to make sure the previous command exits with 0 (as expected when enabled)
The systemd service is not enabled on this server, as it (currently) requires a manual start script to run after a reboot, which performs some setup and starts the dependend services manually…
So checking for whether the service runs works, but checking if it’s enable then won’t restart it.
Maybe check for both to also catch messed-up setups like mine?
if ( systemctl -q is-active tomcat9.service || systemctl -q is-enabled tomcat9.service )
then
echo "Should restart..."
fi
Actually, XWIKI-18624 was the wrong reference in the title anyway (though I think it’s the right one to reference in the text, as the reson why we need to check for both aspects, enabled and active).
(BTW, sorry for the messup in XWIKI-18624 - the wrong window was in focus and Jira seems to have interesting hotkeys which react creatively if you’r accidentally typing some text intended for some console session…)
Now all Jira issues are mentioned: A new one serving as a reference point for this problem, the one which broke the upgrade, and the one which broke fresh installs which triggered the one which broke the upgrade.