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

Update mediawiki to 1.32.2 #53

Merged
merged 4 commits into from
Jun 30, 2019

Conversation

thealphadollar
Copy link
Contributor

@thealphadollar thealphadollar commented Jun 15, 2019

  • 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 -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:

- 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>`
@thealphadollar
Copy link
Contributor Author

thealphadollar commented Jun 15, 2019

The test is failing since at the moment this page is not working:

https://www.mediawiki.org/wiki/Special:ExtensionDistributor

Screenshot from 2019-06-15 17-48-32

@amrav
Copy link
Member

amrav commented Jun 15, 2019 via email

@thealphadollar
Copy link
Contributor Author

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).

I've updated the instructions; please have a look.

Copy link
Member

@icyflame icyflame left a 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.

Copy link
Member

@icyflame icyflame left a 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.

@amrav
Copy link
Member

amrav commented Jun 16, 2019 via email

@thealphadollar
Copy link
Contributor Author

This extension comes with MediaWiki 1.31 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.

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
@thealphadollar
Copy link
Contributor Author

thealphadollar commented Jun 16, 2019

@icyflame @amrav I've updated the PR; have a look please.

I've updated lua path as well since it has been changed.

chmod a+x /path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/yourOS/lua

Reference: https://www.mediawiki.org/wiki/Extension:Scribunto#Bundled_binaries

Copy link
Member

@amrav amrav left a 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!

Copy link
Member

@icyflame icyflame left a 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 and http://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.
@thealphadollar thealphadollar merged commit a2a3824 into metakgp:master Jun 30, 2019
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.

3 participants