-
Notifications
You must be signed in to change notification settings - Fork 20
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
Update mediawiki to 1.32.2 #53
Update mediawiki to 1.32.2 #53
Conversation
- Version 1.30 is no more supported - Update extensions accordingly I'll use the following procedure once the PR is approved to update on prod. - Take the latest backup of the server and store it locally. - `git pull` and `docker-compose build` - `docker-compose down` - `docker volume rm <mediawiki-volume` - `docker-compose exec php /srv/mediawiki/maintenance/update.php` - `docker-compose up --build -d` - `./script/restore-from-backup.sh <path to sql file>`
The test is failing since at the moment this page is not working: |
When doing an upgrade or restart, you don't need to restore from backup
(you should still definitely take the backup in case anything goes wrong).
The database is on the mysql volume, which persists through the upgrade.
I think the containers need to be running before you can run update.php,
and the docker-compose command needs to be fed the prod configuration files
(there's an example in the runbook).
…On Sat, 15 Jun 2019 at 13:07, Shivam Kumar Jha ***@***.***> wrote:
- Version 1.30 is no more supported
- Update extensions accordingly
I'll use the following procedure once the PR is approved to update on prod.
- Take the latest backup of the server and store it locally.
- git pull and docker-compose build
- docker-compose down
- docker volume rm <mediawiki-volume
- docker-compose exec php /srv/mediawiki/maintenance/update.php
- docker-compose up --build -d
- ./script/restore-from-backup.sh <path to sql file>
@icyflame <https://github.com/icyflame> Please have a thorough look.
References:
- https://www.mediawiki.org/wiki/Manual:Upgrading
------------------------------
You can view, comment on, or merge this pull request online at:
#53
Commit Summary
- Update mediawiki to 1.32.2
File Changes
- *M* mediawiki/Dockerfile
<https://github.com/metakgp/metakgp-wiki/pull/53/files#diff-0> (6)
- *M* mediawiki/install_extensions.sh
<https://github.com/metakgp/metakgp-wiki/pull/53/files#diff-1> (2)
Patch Links:
- https://github.com/metakgp/metakgp-wiki/pull/53.patch
- https://github.com/metakgp/metakgp-wiki/pull/53.diff
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#53?email_source=notifications&email_token=AAJBT7ZNCMSNVP5IOXMURBDP2TLRVA5CNFSM4HYO47M2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZWDY3A>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJBT72BRMACPD3SGDF4URDP2TLRVANCNFSM4HYO47MQ>
.
|
I've updated the instructions; please have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, @thealphadollar 👍
- Dockerfile changes look good ✔️
- Procedure described in the PR description looks good ✔️
- Test suite failed (after restart) here ❌
- Trying to build the docker images locally also threw the same error as the test suite:
$ docker-compose build
...
...
+ mv MultimediaViewer /srv/mediawiki/extensions/
mv: cannot move 'MultimediaViewer' to '/srv/mediawiki/extensions/MultimediaViewer': Directory not empty
ERROR: Service 'mediawiki' failed to build: The command '/bin/sh -c /tmp/install_extensions.sh' returned a non-zero code: 1
We need to investigate and fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to fix this error.
Looks like MultimediaViewer might be bundled with 1.32, in that case we
don't need to install it separately.
…On Sun, 16 Jun 2019 at 09:15, Siddharth Kannan ***@***.***> wrote:
***@***.**** requested changes on this pull request.
We need to fix this error
<https://travis-ci.org/metakgp/metakgp-wiki/jobs/546100371#L725>.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#53?email_source=notifications&email_token=AAJBT7YWOOSTGJKKAOSJ753P2XZB5A5CNFSM4HYO47M2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB3VBDZI#pullrequestreview-250221029>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJBT7ZU2FB5EAHTEDL4N3TP2XZB5ANCNFSM4HYO47MQ>
.
|
This can be found as a notice on MultimediaViewer's page. I'll remove it from downloads. Everything else remains the same. |
- It leads to a `mv` error since it comes preloaded with version >=`1.31` - Removing it from the extension download script removes the error
@icyflame @amrav I've updated the PR; have a look please. I've updated lua path as well since it has been changed.
Reference: https://www.mediawiki.org/wiki/Extension:Scribunto#Bundled_binaries |
- The path has been updated as per the recent version of the extension. - https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_errors_in_Scribunto_files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for doing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
docker-compose build
locally ✅docker-compose up
andhttp://localhost
works as expected; pages work well too.
- The commands in the RUNBOOK.md are not uptodate. - `docker-compose` requires all the docker file paths to be able to run properly.
I'll use the following procedure once the PR is approved to update on prod.
git pull
anddocker-compose build
docker-compose down
docker volume rm <mediawiki-volume
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.prod.yml up --build -d
docker-compose exec php /srv/mediawiki/maintenance/update.php
@icyflame Please have a thorough look.
References: