Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug to troubleshoot backup issue #1094

Conversation

jamesmontalvo3
Copy link
Contributor

Add debug to hopefully catch issue with wiki not on production yet but
backup server thinking that the wiki does exist on production, and
attempting to backup from it. This generates a meaningless SQL backup
file and then fails to generate the MediaWiki database.

The check for whether the new wiki's database exists on production is:

mysqlshow "wiki_{{ wiki_id }}" | grep -v Wildcard | grep -o wiki_{{ wiki_id }}

This should have a return code of zero if the database exists and
non-zero if it doesn't. When manually entering this on the server it
performs as expected. Hopefully adding this debug will shed some light
onto why it doesn't work in this production case.

Changes

Add a debug task

Issues

None

Post-merge actions

None

Add debug to hopefully catch issue with wiki not on production yet but
backup server thinking that the wiki does exist on production, and
attempting to backup from it. This generates a meaningless SQL backup
file and then fails to generate the MediaWiki database.

The check for whether the new wiki's database exists on production is:

mysqlshow "wiki_{{ wiki_id }}" | grep -v Wildcard | grep -o wiki_{{ wiki_id }}

This should have a return code of zero if the database exists and
non-zero if it doesn't. When manually entering this on the server it
performs as expected. Hopefully adding this debug will shed some light
onto why it doesn't work in this production case.
@jamesmontalvo3 jamesmontalvo3 merged commit 7b3a067 into master Jan 8, 2019
@jamesmontalvo3 jamesmontalvo3 deleted the ive-got-a-fever-and-the-only-prescription-is-more-debug branch January 8, 2019 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant