Fix MediaWiki DBQueryError: auto-initialize database via init container#40
Merged
Fix MediaWiki DBQueryError: auto-initialize database via init container#40
Conversation
Contributor
🏷️ Version RC publiée
Installation pour testhelm repo update ifpen
helm install filesender-rc ifpen/filesender --version 3.6.2-rc.2Vérificationhelm search repo ifpen/filesender --versions --devel
|
… init container Co-authored-by: velghea <70569153+velghea@users.noreply.github.com> Agent-Logs-Url: https://github.com/ifpen/helm-charts/sessions/7d675b42-d6ea-453f-ba9e-25f4f3db83b3
Copilot
AI
changed the title
[WIP] Fix MediaWiki internal error during query execution
Fix MediaWiki DBQueryError: auto-initialize database via init container
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The chart mounts
LocalSettings.phpvia ConfigMap, bypassing the installation wizard — but never initialized the database schema, causingWikimedia\Rdbms\DBQueryErroron every first access.Changes
deployment.yaml— newinit-dbinit containerRuns after
wait-for-db, before the MediaWiki container starts:information_schema.tablesto detect any existing tables (not tied to a specific table name)install.phpwith credentials from Secrets and config from env vars--confpath=/tmpso the generated file doesn't collide with the ConfigMap-mounted onecomponent: mediawikilabel — existing policies already permit egress to MariaDB port 3306configmap.yamlRemoved
$wgAllowSchemaUpdates = false— it was blockingupdate.phpfrom running, which is required for schema migrations after MediaWiki version upgrades.NOTES.txt/README.mdReplaced the mandatory manual
install.phpstep with a note about automatic initialization, and added guidance to runupdate.php --quickafter MediaWiki upgrades.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.