XWiki not working after apt upgrade from 15.3 to 16.3 on Ubuntu 20.04.6 Workstation

XWiki had been up for years and apt upgrade-d several times without issues. It’s a VM so I can go back to a snapshot and try variations. An apt upgrade broke it, I solicit advice to diagnose and fix.

lsb_release  -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal

It was installed years ago via a single apt command having added the repo.

sudo apt -y install -y xwiki-tomcat9-mariadb

Before upgrade all was well:

dpkg-query --list | grep xwiki
ii  xwiki-common                               15.3                                all          XWiki is a free wiki software platform written in Java with a design emphasis
ii  xwiki-mariadb-common                       15.3                                all          XWiki is a free wiki software platform written in Java with a design emphasis
ii  xwiki-tomcat9-common                       15.3                                all          XWiki is a free wiki software platform written in Java with a design emphasis
ii  xwiki-tomcat9-mariadb                      15.3                                all          XWiki is a free wiki software platform written in Java with a design emphasis

APT-UPGRADE

#Note that xwiki package were put on apt "hold "so I could apt upgrade everything else first and check that nothing broke and then apt upgrade xwiki packages.

sudo apt -y upgrade xwiki-tomcat9-mariadb
...
The following NEW packages will be installed:
  openjdk-17-jre-headless
The following packages will be upgraded:
  xwiki-common xwiki-mariadb-common xwiki-tomcat9-common xwiki-tomcat9-mariadb
4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

LOGs

sudo service tomcat9 stop 
sudo service tomcat9 start
sudo journalctl -u tomcat9 --since "2024-05-08 10:00:00"
-- Logs begin at Fri 2022-03-18 09:47:29 EDT, end at Wed 2024-05-08 10:01:17 EDT. --
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca systemd[1]: Starting Apache Tomcat 9 Web Application Server...
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca systemd[1]: Started Apache Tomcat 9 Web Application Server.
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Server version name:   Apache Tomcat/9.0.31 (Ubuntu)
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Server built:          Nov 18 2022 19:07:15 UTC
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Server version number: 9.0.31.0
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: OS Name:               Linux
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: OS Version:            5.15.0-105-generic
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Architecture:          amd64
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Java Home:             /usr/lib/jvm/java-11-openjdk-amd64
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: JVM Version:           11.0.22+7-post-Ubuntu-0ubuntu220.04.1
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: JVM Vendor:            Ubuntu
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: CATALINA_BASE:         /var/lib/tomcat9
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: CATALINA_HOME:         /usr/share/tomcat9
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djava.awt.headless=true
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Xmx1024m
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djava.security.egd=file:/dev/./urandom
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Dignore.endorsed.dirs=
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Dcatalina.base=/var/lib/tomcat9
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Dcatalina.home=/usr/share/tomcat9
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Command line argument: -Djava.io.tmpdir=/tmp
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.6.5].
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
May 08 10:00:21 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: OpenSSL successfully initialized [OpenSSL 1.1.1f  31 Mar 2020]
May 08 10:00:22 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Initializing ProtocolHandler ["http-nio-8080"]
May 08 10:00:22 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Server initialization in [557] milliseconds
May 08 10:00:22 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Starting service [Catalina]
May 08 10:00:22 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Starting Servlet engine: [Apache Tomcat/9.0.31 (Ubuntu)]
May 08 10:00:22 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Deploying deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml]
May 08 10:00:22 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: The path attribute with value [/xwiki] in deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has been ignored
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: One or more listeners failed to start. Full details will be found in the appropriate container log file
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Context [/xwiki] startup failed due to previous errors
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Failed to clear soft references from ObjectStreamClass$Caches for web application [xwiki]
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader 'bootstrap')
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2269)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2256)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1627)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1555)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:443)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5432)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1830)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]:     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Deployment of deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has finished in [1,072] ms
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Deploying web application directory [/var/lib/tomcat9/webapps/ROOT]
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scannin>
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Deployment of web application directory [/var/lib/tomcat9/webapps/ROOT] has finished in [632] ms
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Starting ProtocolHandler ["http-nio-8080"]
May 08 10:00:23 obl-ubuntu.sri.utoronto.ca tomcat9[4631]: Server startup in [1,804] milliseconds

Not a tomcat expert, /var/log/tomcat9 has many files:

root@obl-ubuntu:/var/log/tomcat9# ls -ltr | tail -5
-rw-r----- 1 tomcat adm     7486 May  7 17:11 localhost_access_log.2024-05-07.txt.gz
-rw-r----- 1 tomcat adm     9418 May  8 10:00 localhost.2024-05-08.log
-rw-r----- 1 syslog adm 14272752 May  8 10:00 catalina.out
-rw-r----- 1 tomcat adm    14548 May  8 10:00 catalina.2024-05-08.log
-rw-r----- 1 tomcat adm      259 May  8 10:02 localhost_access_log.2024-05-08.txt

BUT this log file suggests there is a JRE version problem:

root@obl-ubuntu:/var/log/tomcat9# head -4 localhost.2024-05-08.log 
08-May-2024 10:00:23.295 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.xwiki.container.servlet.XWikiServletContextListener]
	java.lang.UnsupportedClassVersionError: org/xwiki/container/servlet/XWikiServletContextListener has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 (unable to load class [org.xwiki.container.servlet.XWikiServletContextListener])
		at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2424)
		at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865

Yes, XWiki 16.x requires Java 17 while your logs show that you’re using Java 11.

Thank you. XWiki docs claim apt upgrade should work from any version,

openjdk-17-jre-headless was pulled by apt (above) as a dependency which would be correct by your logic however it looks like the upgrade is incomplete as it is running the wrong JRE after the upgrade so technically it’s a bug. May this is on purpose not to break other web apps ← correct terminology?

This experience suggests that using “apt hold” as I have done for XWiki packages is wise because a generic “apt upgrade” can break XWiki as it results in a newer XWiki version, not the same baseline version with back-ported fixes which is the typical safer scenario used with most apt packages.

1 Like

I had trouble getting tomcat9 to use Java 17. Now that works but new troubles later in the process.

The common recommended method for setting JAVA involving adding a setenv.sh file in CATALINA_BASE or CATALINA_HOME DID NOT WORK in Ubuntu 20.04 with tomcat9 obtained via apt probably because the apt package maintainers modified where tomcat9 looks for configuration files so it ignores the conventional locations most recommend.

sudo journalctl -u tomcat9 --since "2024-05-13 15:11:00"  | egrep "(CATALINA_BASE|CATALINA_HOME)"
May 13 15:11:03 obl-ubuntu.sri.utoronto.ca tomcat9[14326]: CATALINA_BASE:         /var/lib/tomcat9
May 13 15:11:03 obl-ubuntu.sri.utoronto.ca tomcat9[14326]: CATALINA_HOME:         /usr/share/tomcat9

For tomcat9 in Ubuntu 20.04 installed via apt you need to edit /etc/default/tomcat9 and add the right JAVA_HOME : head -5 /etc/default/tomcat9

# The home directory of the Java development kit (JDK). You need at least
# JDK version 8. If JAVA_HOME is not set, some common directories for
# OpenJDK and the Oracle JDK are tried.
#JAVA_HOME=/usr/lib/jvm/java-8-openjdk
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64

XWiki now starts but it fails at a later step during initialization past the 50% mark (in the Browser) so not out of the word yet.

I’m on the tomcat9-mysql version and face a similiar issue as described here (I’m 2 rollbacks in so far :wink: )

dpkg-query --list | grep xwiki
ii xwiki-common 15.8
ii xwiki-mysql-common 15.8
ii xwiki-tomcat9-common 15.8
ii xwiki-tomcat9-mysql 15.8

I did not notice the java-17 requirement and that is probably where I’m in the woods (even though I noticed doing apt upgrade somehow deleted my web.xml file in ) , just doing the apt-upgrade and replacing the catalina/root as I’ve done since 14.9 results in a 404 for me too

I can confirm that after doing the update of wiki-tomcat9-common it still runs on java 11

May 15 10:31:50 vmwbpwh01 tomcat9[687]: Java Home:             /usr/lib/jvm/java-11-openjdk-amd64
May 15 10:31:50 vmwbpwh01 tomcat9[687]: JVM Version:           11.0.22+7-post-Ubuntu-0ubuntu222.04.1

either way thank you for sharing your adventure @normandrobert (and I appreciate your clear code sharing , most helpfull)

1 Like

Resuming with the right java I now get this from the logs which I have edited for brevity to increase the chance of someone reading :slight_smile:


- Logs begin at Fri 2022-03-18 09:47:29 EDT, end at Wed 2024-05-15 15:31:18 EDT. --
May 15 15:27:07 obl-ubuntu.sri.utoronto.ca systemd[1]: Starting Apache Tomcat 9 Web Application Server...
May 15 15:27:07 obl-ubuntu.sri.utoronto.ca systemd[1]: Started Apache Tomcat 9 Web Application Server.
May 15 15:27:07 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Server version name:   Apache Tomcat/9.0.31 (Ubuntu)
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Server built:          Nov 18 2022 19:07:15 UTC
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Server version number: 9.0.31.0
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: OS Name:               Linux
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: OS Version:            5.15.0-105-generic
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Architecture:          amd64
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Java Home:             /usr/lib/jvm/java-17-openjdk-amd64
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: JVM Version:           17.0.10+7-Ubuntu-120.04.1
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: JVM Vendor:            Private Build
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: CATALINA_BASE:         /var/lib/tomcat9
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: CATALINA_HOME:         /usr/share/tomcat9
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djava.awt.headless=true
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Xmx1024m
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djava.security.egd=file:/dev/./urandom
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Dignore.endorsed.dirs=
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Dcatalina.base=/var/lib/tomcat9
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Dcatalina.home=/usr/share/tomcat9
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Command line argument: -Djava.io.tmpdir=/tmp
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.6.5].
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
May 15 15:27:12 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: OpenSSL successfully initialized [OpenSSL 1.1.1f  31 Mar 2020]
May 15 15:27:13 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Initializing ProtocolHandler ["http-nio-8080"]
May 15 15:27:14 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Server initialization in [3,464] milliseconds
May 15 15:27:14 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Starting service [Catalina]
May 15 15:27:14 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Starting Servlet engine: [Apache Tomcat/9.0.31 (Ubuntu)]
May 15 15:27:14 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: Deploying deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml]
May 15 15:27:14 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: The path attribute with value [/xwiki] in deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has been ignored
May 15 15:27:31 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:27:31,663 [main] INFO  iPropertiesConfigurationSource - Loading [xwiki.properties] from default location [/etc/xwiki/xwiki.properties]
May 15 15:27:32 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:27:32,404 [main] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [/var/lib/xwiki/data]
May 15 15:27:59 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:27:59,835 [main] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.platform:xwiki-platform-distribution-flavor-mainwiki/15.3] on namespace [wiki:xwiki] (InvalidExtensionException: Dependency [org.xwiki.platform:xwiki-platform-oldcore-[15.3]] is incompatible with the core extension [org.xwiki.platform:xwiki-platform-legacy-oldcore/16.3.0])
...
May 15 15:28:11 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:11,340 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Updating Solr home directory at [/var/lib/xwiki/data/store/solr]
May 15 15:28:11 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:11,450 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Starting embedded Solr server...
May 15 15:28:11 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:11,451 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Using Solr home directory: [/var/lib/xwiki/data/store/solr]
May 15 15:28:16 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:16,227 [main] WARN  o.a.s.c.CoreContainer          - Not all security plugins configured!  authentication=disabled authorization=disabled.  Solr is only as secure as you make it. Consider configuring authentication/authorization before exposing Solr to users internal or external.  See https://s.apache.org/solrsecurity for more info
May 15 15:28:22 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:22,939 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Started embedded Solr server.
May 15 15:28:24 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:24,759 [main] INFO  o.x.s.f.i.FilesystemStoreTools - Using filesystem store directory [/var/lib/xwiki/data/store/file]
May 15 15:28:29 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: 2024-05-15 15:28:29,223 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2023.04.28.xml].
May 15 15:28:29 obl-ubuntu.sri.utoronto.ca tomcat9[26724]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null

If I then go to the xwiki web page initialization dies at 50% and lots more error messages.

This error is usually the sign that Java is missing a few --add-opens (java.base/java.util=ALL-UNNAMED in this specific case, which I indeed can’t see in your log) but it’s not preventing XWiki to start for sure.

What other error do you have after that ?

1 Like

1/3 Startup (première phase) filtered output
sudo journalctl -u tomcat9 --since “2024-05-16 11:06:00” | grep -v "at "

May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Server version name:   Apache Tomcat/9.0.31 (Ubuntu)
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Server built:          Nov 18 2022 19:07:15 UTC
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Server version number: 9.0.31.0
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: OS Name:               Linux
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: OS Version:            5.15.0-105-generic
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Architecture:          amd64
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Java Home:             /usr/lib/jvm/java-17-openjdk-amd64
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: JVM Version:           17.0.10+7-Ubuntu-120.04.1
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: JVM Vendor:            Private Build
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: CATALINA_BASE:         /var/lib/tomcat9
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: CATALINA_HOME:         /usr/share/tomcat9
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djava.awt.headless=true
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Xmx1024m
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djava.security.egd=file:/dev/./urandom
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Dignore.endorsed.dirs=
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Dcatalina.base=/var/lib/tomcat9
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Dcatalina.home=/usr/share/tomcat9
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Command line argument: -Djava.io.tmpdir=/tmp
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: OpenSSL successfully initialized [OpenSSL 1.1.1f  31 Mar 2020]
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Initializing ProtocolHandler ["http-nio-8080"]
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Server initialization in [490] milliseconds
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Starting service [Catalina]
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Starting Servlet engine: [Apache Tomcat/9.0.31 (Ubuntu)]
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Deploying deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml]
May 16 11:06:06 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: The path attribute with value [/xwiki] in deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has been ignored
May 16 11:06:10 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:10,823 [main] INFO  iPropertiesConfigurationSource - Loading [xwiki.properties] from default location [/etc/xwiki/xwiki.properties]
May 16 11:06:10 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:10,993 [main] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [/var/lib/xwiki/data]
May 16 11:06:13 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:13,799 [main] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.platform:xwiki-platform-distribution-flavor-mainwiki/15.3] on namespace [wiki:xwiki] (InvalidExtensionException: Dependency [org.xwiki.platform:xwiki-platform-oldcore-[15.3]] is incompatible with the core extension [org.xwiki.platform:xwiki-platform-legacy-oldcore/16.3.0])
May 16 11:06:13 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:13,839 [main] WARN  ltInstalledExtensionRepository - Invalid extension [org.apache.httpcomponents.client5:httpclient5/5.2.1] (InvalidExtensionException: Extension [org.apache.httpcomponents.client5:httpclient5/5.2.1] already exists as a core extension)
May 16 11:06:13 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:13,839 [main] WARN  ltInstalledExtensionRepository - Invalid extension [org.apache.httpcomponents.core5:httpcore5-h2/5.2] (InvalidExtensionException: Extension [org.apache.httpcomponents.core5:httpcore5-h2/5.2] already exists as a core extension)
May 16 11:06:13 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:13,839 [main] WARN  ltInstalledExtensionRepository - Invalid extension [org.apache.httpcomponents.core5:httpcore5/5.2] (InvalidExtensionException: Extension [org.apache.httpcomponents.core5:httpcore5/5.2] already exists as a core extension)
May 16 11:06:16 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:16,958 [main] ERROR .i.DefaultExtensionInitializer - Failed to initialize local extension [org.xwiki.platform:xwiki-platform-export-pdf-default/15.3]
May 16 11:06:16 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: org.xwiki.extension.ExtensionException: Failed to initialize dependency [org.xwiki.platform:xwiki-platform-export-pdf-api-15.3]
May 16 11:06:16 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.lang.NoClassDefFoundError: org/xwiki/script/internal/safe/ScriptSafeProvider
May 16 11:06:16 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 53 common frames omitted
May 16 11:06:16 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.lang.ClassNotFoundException: org.xwiki.script.internal.safe.ScriptSafeProvider
May 16 11:06:16 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 73 common frames omitted
May 16 11:06:17 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:17,001 [main] ERROR .i.DefaultExtensionInitializer - Failed to initialize local extension [org.xwiki.platform:xwiki-platform-export-pdf-ui/15.3]
May 16 11:06:17 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: org.xwiki.extension.ExtensionException: Failed to initialize dependency [org.xwiki.platform:xwiki-platform-export-pdf-default-15.3]
May 16 11:06:17 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.xwiki.extension.ExtensionException: Extension [org.xwiki.platform:xwiki-platform-export-pdf-ui/15.3] cannot be initialized because its dependency ([org.xwiki.platform:xwiki-platform-export-pdf-default-15.3]) could not.
May 16 11:06:17 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 53 common frames omitted
May 16 11:06:18 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:18,810 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Starting embedded Solr server...
May 16 11:06:18 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:18,810 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Using Solr home directory: [/var/lib/xwiki/data/store/solr]
May 16 11:06:19 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:19,929 [main] WARN  o.a.s.c.CoreContainer          - Not all security plugins configured!  authentication=disabled authorization=disabled.  Solr is only as secure as you make it. Consider configuring authentication/authorization before exposing Solr to users internal or external.  See https://s.apache.org/solrsecurity for more info
May 16 11:06:22 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:22,870 [main] INFO  o.x.s.s.i.EmbeddedSolr         - Started embedded Solr server.
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,550 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2023.04.28.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,558 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2022.04.06.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,567 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2022.01.12.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,576 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2021.10.04.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,585 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2021.09.03.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,594 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2021.08.30.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,602 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2021.08.10.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:23,609 [main] ERROR h.i.DefaultExtensionJobHistory - Failed to read extension job history from [/var/lib/xwiki/data/extension/history/2021.08.03.xml].
May 16 11:06:23 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
May 16 11:06:25 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:06:25,014 [main] INFO  o.x.s.f.i.FilesystemStoreTools - Using filesystem store directory [/var/lib/xwiki/data/store/file]
May 16 11:06:25 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Deployment of deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has finished in [18,341] ms
May 16 11:06:25 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Deploying web application directory [/var/lib/tomcat9/webapps/ROOT]
May 16 11:06:26 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Deployment of web application directory [/var/lib/tomcat9/webapps/ROOT] has finished in [855] ms
May 16 11:06:26 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Starting ProtocolHandler ["http-nio-8080"]
May 16 11:06:26 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Server startup in [19,293] milliseconds

2/3 Web page load (deuxième phase) filtered output http://obl-ubuntu:8080/xwiki/bin/view/Main/
Web page stuck @ 50% for 10 minutes and then error on web page.

Log accumulated a lot of lines:
sudo journalctl -u tomcat9 --since “2024-05-16 11:18:00” | wc -l
455013

First hundred filtered lines:
sudo journalctl -u tomcat9 --since “2024-05-16 11:18:00” | grep -v "at " | head -100

May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,508 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,509 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58010) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58010) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,511 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [Confluence.Code.ConfluencePageClass]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:Confluence.Code.ConfluencePageClass()]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 29 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58010) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 37 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58010) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,708 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,708 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58011) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58011) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,709 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [XWiki.ComponentClass]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.ComponentClass()]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 29 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58011) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 37 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58011) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,802 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,803 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58012) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58012) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,803 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [XWiki.Notifications.Code.NotificationEmailRendererClass]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.Notifications.Code.NotificationEmailRendererClass()]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 29 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58012) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 37 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58012) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,859 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,860 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58013) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58013) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,860 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [XWiki.EventStream.Code.EventClass]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.EventStream.Code.EventClass()]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 29 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58013) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 37 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58013) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,914 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,914 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58014) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58014) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,915 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [XWiki.FeedEntryClass]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.FeedEntryClass()]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 29 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58014) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 37 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58014) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,968 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,968 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58015) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58015) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:30,968 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [XWiki.XWikiPreferences]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.XWikiPreferences()]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 29 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58015) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 37 common frames omitted
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58015) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:30 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:31,020 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1045-28000: Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:31,020 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=58016) Access denied for user 'xwiki'@'localhost' (using password: YES))
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=58016) Access denied for user 'xwiki'@'localhost' (using password: YES)
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 40 common frames omitted
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: 2024-05-16 11:18:31,021 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [xwiki:WikiManager.WikiTemplateClass]
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:WikiManager.WikiTemplateClass()]
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]:         ... 12 common frames omitted
May 16 11:18:31 obl-ubuntu.sri.utoronto.ca tomcat9[36566]: Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.

3/3 Message page Web (Firefox):
grep -v “java:” web_page.txt

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Failed to execute the action with name [view]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Failed to execute the action with name [view]

Root Cause

com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://obl-ubuntu:8080/xwiki/bin/view/Main/]

Root Cause

java.lang.RuntimeException: Failed to locate wiki descriptor for alias [obl-ubuntu]

Root Cause

org.xwiki.wiki.manager.WikiManagerException: Failed to locate XWiki.XWikiServerClass document for wiki alias [obl-ubuntu]

Root Cause

org.xwiki.query.QueryException: Exception while translating [where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and doc.name like 'XWikiServer%'] XWQL query to the [hql] language. Query statement = [where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and doc.name like 'XWikiServer%']

Root Cause

com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.XWikiServerClass()]

Root Cause

org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Root Cause

org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.

Root Cause

java.sql.SQLException: Cannot create PoolableConnectionFactory ((conn=69902) Access denied for user 'xwiki'@'localhost' (using password: YES))

Root Cause

java.sql.SQLInvalidAuthorizationSpecException: (conn=69902) Access denied for user 'xwiki'@'localhost' (using password: YES)

Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/9.0.31 (Ubuntu)

This seems to be your problem. Apparently, the user/pass to the database you have in the hibernate configuration is wrong.

Bizarre. I have not touched the system configuration in years and I am pretty sure all I did in this round were apt ugrade commands. I have done ~3 xwiki update rounds this way since creating the VM with no issues. I don’t even know of this concept.

The database setup is in /etc/xwiki/hibernate.cfg.xml, maybe you had some conflict on this file during the upgrade and did not pay attention. Or your xwiki users vanished from the MySQL/MariaDB server for some reason.

I guess the best would be to open the configuration file and make sure the password (the value of the <property name="hibernate.connection.password"> element) matches the one you chose when you installed it. If you don’t remember it, you should be able to use sudo mysql to access the server as root and change the password of the xwiki user.

Merci. I had to and have to spend time elsewhere. I will revisit late-week. This is a mirror of our production XWiki and I always upgrade the mirror first. Will rewind VM to pre-upgrade to confirm problems.