From 0839b8e37f195b3e2dea9c3f55f703e127e88b38 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 16 Sep 2025 23:53:14 +0200 Subject: [PATCH] fix(xwiki): enable superadmin flag in xwiki.cfg and always force Distribution Wizard - Added 'xwiki.superadmin=1' alongside the password in 'xwiki.cfg' to properly activate the superadmin account during bootstrap. - Simplified 'xwiki.properties': Distribution Wizard config is now always present instead of conditional on the superadmin switch. - Ensures that the Distribution Wizard ('distribution.wizard.enabled=true') and flavor bootstrap run automatically on first startup. - This fixes the issue where REST endpoints (/rest/jobs, /repositories) stayed at 404 because the DW never executed. Ref: https://chat.openai.com/share/7a5d58d2-8e91-4e34-8fa0-8b7d62494e4a --- roles/web-app-xwiki/templates/docker-compose.yml.j2 | 2 -- roles/web-app-xwiki/templates/xwiki.properties.j2 | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/web-app-xwiki/templates/docker-compose.yml.j2 b/roles/web-app-xwiki/templates/docker-compose.yml.j2 index b43d2422..bf3325b7 100644 --- a/roles/web-app-xwiki/templates/docker-compose.yml.j2 +++ b/roles/web-app-xwiki/templates/docker-compose.yml.j2 @@ -11,8 +11,6 @@ volumes: - "{{ XWIKI_HOST_CONF_PATH }}:/usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.cfg" - "{{ XWIKI_HOST_PROPERTIES_PATH }}:/usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.properties" - - "{{ XWIKI_HOST_CONF_PATH }}:{{ [XWIKI_DOCK_DATA_DIR, 'xwiki.cfg'] | path_join }}" - - "{{ XWIKI_HOST_PROPERTIES_PATH }}:{{ [XWIKI_DOCK_DATA_DIR, 'xwiki.properties'] | path_join }}" - 'data:{{ XWIKI_DOCK_DATA_DIR }}' {% include 'roles/docker-container/templates/healthcheck/curl.yml.j2' %} {% include 'roles/docker-container/templates/base.yml.j2' %} diff --git a/roles/web-app-xwiki/templates/xwiki.properties.j2 b/roles/web-app-xwiki/templates/xwiki.properties.j2 index 4329be58..a8946b07 100644 --- a/roles/web-app-xwiki/templates/xwiki.properties.j2 +++ b/roles/web-app-xwiki/templates/xwiki.properties.j2 @@ -26,6 +26,8 @@ distribution.defaultUI=org.xwiki.platform:xwiki-platform-distribution-flavor-mai distribution.skip=false distribution.wizard.enabled=true +logging.rootLogger=DEBUG, console + # Persist data in the Docker volume environment.permanentDirectory={{ XWIKI_DOCK_DATA_DIR }}