Hello!
I am seeking help after days trying to install XWiki on a Kubernetes cluster in an offline environment.
- I followed the installation instructions at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/#HInstallingwithoutinternetconnection
- I used the helm Chart at xwiki-helm/charts/xwiki at master · xwiki-contrib/xwiki-helm · GitHub
- Helm chart version 1.3.1
- XWiki tag 15.10.12-postgres-tomcat
- use an external PostgreSQL
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
- on top of page there is the following message
$xwiki.jsfx.use(‘uicomponents/model/entityReference.js’, {‘defer’: false}) $xwiki.jsfx.use(‘js/xwiki/xwiki.bundle.min.js’, {‘forceSkinAction’: true, ‘defer’: false, ‘language’: $xcontext.locale}) $xwiki.ssfx.use(‘css/xwiki.bundle.min.css’, {‘forceSkinAction’: true, ‘colorTheme’: $themeDoc, ‘language’: $xcontext.locale})$xwiki.jsfx.use(“flamingo$jsExtension”, {‘forceSkinAction’ : true, ‘language’ : $xcontext.locale})
$xwiki.ssfx.use(‘uicomponents/wizard/wizard.css’, {‘forceSkinAction’: true, ‘version’: $environmentVersion}) $xwiki.ssfx.use(‘uicomponents/extension/distribution.css’, {‘forceSkinAction’: true, ‘version’: $environmentVersion}) $xwiki.jsfx.use(‘uicomponents/extension/distribution.js’, {‘forceSkinAction’: true, ‘version’: $environmentVersion})
I have no idea what this means, but I somehow believe this is due to the offline aspect of my deployment.
Some of the logs:
root@xwiki-0:/usr/local/tomcat# cat /usr/local/tomcat/logs/localhost.2024-10-04.log
04-Oct-2024 11:09:48.782 INFO [http-nio-8080-exec-3 - http://172.18.3.23:8080/rest] org.apache.catalina.core.ApplicationContext.log RestletServlet: [Restlet] ServerServlet: component class is null
- catalina.log shows no error nor warnings
- manager and host-manager.log are empty
The only configs have added are:
customConfigs:
xwiki.cfg:
xwiki.home: "my-url"
xwiki.properties:
environment.permanentDirectory: "/usr/local/xwiki/data" # necessary to override default catalina conf
extension.repositories: # empty to disable check for online repositories at startup
extension.localRepository: "/usr/local/xwiki/data/extension/repository"
Any idea? Thanks.
2 posts - 1 participant