Files
computer-playbook/roles/web-app-matomo/templates/bootstrap.env.j2
kevinveenbirkenbachandClaude Opus 4.7 a415eecd1c fix(matomo): pin Matomo to 5.9.0 + raise installer timeouts
The matomo-bootstrap:1.1.13 Playwright walker fails at the
setupSuperUser step against `matomo:latest` (currently 5.11.x):
`Could not find a Next/Continue control in the installer UI`. The
bootstrap was last aligned with the Matomo DOM in v1.1.12 (changelog
2026-02-15, Matomo 5.7.x). 5.9.0 is the oldest 5.x tag still
pullable from Docker Hub, putting us as close to the bootstrap's
known-good DOM as the registry allows.

Defense-in-depth: raise the installer wait/step/deadline knobs in
bootstrap.env.j2 so slow renders under swarm/NFS don't trip the
Playwright walker. Also lower
`MATOMO_INSTALLER_SUPERUSER_RELOAD_INTERVAL_S` from the upstream
default 30 to 10 so the orchestrator's reload-aware helper recovers
faster when execution reaches that branch.

Downgrade caveat: deploys currently running matomo:latest carry a
5.11.x DB schema; the next re-deploy will pin 5.9.0 and Matomo may
refuse to start or behave unexpectedly. Back up the database before
applying this commit on a live cluster.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-16 13:34:07 +02:00

28 lines
918 B
Bash

MATOMO_URL={{ MATOMO_SERVICE_URL }}
MATOMO_ADMIN_USER={{ MATOMO_ADMIN_USER_NAME }}
MATOMO_ADMIN_PASSWORD={{ MATOMO_ADMIN_PASSWORD | dotenv_quote }}
MATOMO_ADMIN_EMAIL={{ MATOMO_ADMIN_EMAIL }}
MATOMO_TOKEN_DESCRIPTION={{ MATOMO_TOKEN_DESCRIPTION }}
MATOMO_TIMEOUT={{ MATOMO_BOOTSTRAP_TIMEOUT }}
MATOMO_SITE_NAME={{ MATOMO_SITE_NAME }}
MATOMO_SITE_URL={{ MATOMO_SITE_URL }}
MATOMO_TIMEZONE={{ HOST_TIMEZONE_LABEL }}
{% if matomo_token_value is defined and (matomo_token_value | string | length) > 0 %}
MATOMO_BOOTSTRAP_TOKEN_AUTH={{ matomo_token_value }}
{% endif %}
MATOMO_PLAYWRIGHT_HEADLESS=1
MATOMO_PLAYWRIGHT_NAV_TIMEOUT_MS=60000
MATOMO_PLAYWRIGHT_SLOWMO_MS=0
MATOMO_INSTALLER_READY_TIMEOUT_S=300
MATOMO_INSTALLER_STEP_TIMEOUT_S=300
MATOMO_INSTALLER_STEP_DEADLINE_S=420
MATOMO_INSTALLER_TABLES_CREATION_TIMEOUT_S=300
MATOMO_INSTALLER_TABLES_ERASE_TIMEOUT_S=240
MATOMO_INSTALLER_SUPERUSER_RELOAD_INTERVAL_S=10