Adapting the instructions to this Kubernetes case, I:
set the permanent directory at “/usr/local/xwiki/data” in the customConfigs.xwiki.properties.environment.permanentDirectory of the Chart values, as the PersistentVolumeClaim of the Chart is mounted there too
helm install the xwiki chart
downloaded the XIP package for version 15.10.12
unzipped it
used kubectl cp to copy it in the pod at “/usr/local/xwiki/data/extension/repository”
verified access rights (everything is apparently root-owned in this chart)
deleted the pod to restart xwiki
verified the extensions where here after restart
open XWiki web page, see the Distribution Wizard, but no Flavors were shown
Interesting. After a few hours I get this pod’s logs: 2024-10-04 15:27:57,488 [extension.index job group daemon thread - org.xwiki.extension.index.internal.job.ExtensionIndexJob@69d6ddc5([extension, index])] WARN o.x.e.i.i.j.ExtensionIndexJob - Failed to get remote extension from repository [store.xwiki.com:xwiki:https://store.xwiki.com/xwiki/rest]: EOFException: SSL peer shut down incorrectly
Using an install with no customConfigs in my values.yaml, I can see a complete xwiki.cf of 537 lines at /usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.cfg and a xwiki.propoerties of 1560 lines at /usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.properties .
Now if I add a few lines in customConfigs like below:
Then /usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.cfg and /usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.properties only contain these few lines I have added. But not the rest. So a lot of config is missing, and the UI complains about it.
l’ll try tomorrow to use the entire xwiki.cfg and xwiki.properties and just change the lines relevant to me to see if it works.
Something seems to be broken with the customConfigs key.
What is strange is those lines removing the config files. But somehow with no customConfigs provided, the config is there plain and well.
I confirm that putting the content of 537 lines from /usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.cfg and xwiki.properties of 1560 lines from /usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.properties, under the customConfigs key of the chart values, and then modifying only the lines I am interested in, the “helm install” works correcctly, and the content of xwiki.cfg and xwiki.properties is what I want.
My last message is how I finally handled the problem.
Make a fresh install with default values.
Copy content of xwiki.cfg and xwiki.properties under your “values.defaultConfigs”
Install again