Files
kevinveenbirkenbachandClaude Opus 5.5 e8f788d2cb fix(web-app-joomla): finish the stock installer's cleanup on an NFS webroot
Docker Hub re-pushed joomla:6.2.0-php8.3-apache on 2026-11-19 with the docker-joomla entrypoint of official-images 82dbb58597. It skips setup for 'apache2 -v', so the wrapper's leader no longer installed anything. When the installer fails it keeps .joomla-initializing for good. On the swarm's NFS webroot the installer cannot delete installation/ ('[ERROR] Unable to delete installation folder!'), and every replica then exits with 'Initialization did not complete (exit 1); server startup is blocked.'

docker-entrypoint-joomla.sh now runs setup through the stock entrypoint with 'apache2 -l'. One leader runs it under a mkdir lock with a heartbeat owner file, and a lock whose heartbeat is older than JOOMLA_INIT_LOCK_STALE_SECONDS (180 s) is taken over atomically. When setup stops only at the delete message, the leader finishes what Joomla's CleanupModel does: it deletes installation/ and joomla.xml and renames robots.txt.dist. It records the pending cleanup in .infinito-init.cleanup, so a failed rm is retried on the next start. A site left stuck by the old wrapper fails with the exact manual step.

test_docker_entrypoint_joomla.py has 14 cases. It passes on the fix, fails 12 of 14 on the old wrapper, and fails on a mutant without the grep guard. Two independent skeptic rounds: the first refuted the earlier version, the second found no hole. Draft: no run against the real stock entrypoint on a real NFS volume yet; the fork CI swarm run proves it.

🎯 Fix: 85 %
💥 Break: 6 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~100 %
🏆 Score: 80
🚦 Gate: ⛔ fix 85 % < 90, break 6 % > 5

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:48:16 +00:00

0 lines
0 B
Python