Upgrading Debian Packages from Xwiki LTS Tomcat8 to Xwiki LTS Tomcat 9

Ok, then I’ll have a closer look…

Ok, obvious that this didn’t work - my xwiki data directory is somewhere else.

(BTW, why does the syntax chown -R tomcat.tomcat ... work - I didn’t know it and the manpage only seems to document : instead of . to separate username from group. Your syntax also seems to work, though.)

On a second look, Xwiki also still is not happy after I chowned the directory (the need of which was obvious from the first log messages of Xwiki).

It still logs

[2019-12-31 16:05:49] [info] 2019-12-31 16:05:49,263 [main] ERROR o.x.e.i.ServletEnvironment     - Configured permanent directory [/mnt/cstore/var_lib_xwiki/data] is not writable.
[2019-12-31 16:05:49] [info] 2019-12-31 16:05:49,264 [main] WARN  o.x.e.i.ServletEnvironment     - Falling back on [/var/cache/tomcat9/Catalina/localhost/xwiki] as the permanent directory.
[2019-12-31 16:05:49] [info] 2019-12-31 16:05:49,265 [main] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [/var/cache/tomcat9/Catalina/localhost/xwiki]

Then it’s also clear that Solr cannot find anything meaningful there.

Some googling lead me to Permanent directory is ignored and data is in Tomcat work directory - #7 by g3poandlsl, so apparently I’m not the first one bitten by this…

I’ll try to fix this and report back.