I’m using Debian with these packages:
xwiki-common
xwiki-pgsql-common
xwiki-tomcat9-common
xwiki-tomcat9-pgsql
when I want to upgrade apt tells me
xwiki-common/stable 17.0.0+1 all [upgradable from: 16.10.2]
xwiki-pgsql-common/stable 17.0.0+1 all [upgradable from: 16.10.2]
xwiki-tomcat9-common/stable 16.10.3 all [upgradable from: 16.10.2]
xwiki-tomcat9-pgsql/stable 17.0.0 all [upgradable from: 16.10.2]
So far so good. But how do I upgrade to xwiki-tomcat10-pgsql?
Just apt install xwiki-tomcat10-pgsql and remove the xwiki-tomcat9-pgsql package? Do I need to configure everything again?
I don’t want to try that on my production system without knowing what’s the correct way.
Not really, xwiki-tomcat9-pgsql 17.0.0 is actually something that should not exist, which was fixed in 17.0.0+1. Installing it won’t work (XWiki 17 requires Tomcat 10 or more).
One thing to have in mind is that Debian repository simply does not have any tomcat10 package before Debian 12, and I assume you stayed on Debian 11 so far, since Debian 12 repository does not have any tomcat9 package. So the first thing you will need is to upgrade Debian itself.
What is the best way to upgrade?
Install
xwiki-tomcat10-common
xwiki-tomcat10-pgsql
upgrade xwiki and everything is working or is there more work to do?
Just asking for the top level package you want to move to, so xwiki-tomcat10-pgsql, should do in theory (it should replace the tomcat9 based packages).
I’ve installed xwiki-tomcat10-pgsql
then I did a apt upgrade and apt autoremove --purge
dpkg: warning: while removing tomcat9, directory ‘/var/lib/tomcat9/webapps’ not empty so not removed
/var/lib/tomcat9/webapps
It doesn’t work. I’ve tried to move the configs from tomcat9 to 10 but still it didn’t start. I didn’t had more time to test but I will give it another try on the weekend.
The reason why it didn’t work for me was that nginx was running as https reverse proxy and I don’t know why but the service got disabled when I upgraded to tomcat10. I enabled the service and everything is working now.