Upgrading to weblate 4.x

The current version is 3.1.1. Since then:

  • docker-compose was moved to a separate repository and the submodule should also switch over
  • nothing significant has changed in the example docker-compose.yml or the environment file
  • redis:5-alpine replaced redis:4-alpine
  • postgres:11-alpine replaced postgres:9.6-alpine
  • the weblate container listens on 8080 instead of 80

There is an error:

(weblate.E019) The Celery does not process tasks, or is too slow in processing them.
HINT: https://docs.weblate.org/en/weblate-4.0.4/admin/install.html#celery

But it goes away after a restart

The upgrade test fails because:

database_1 | 2020-05-18 20:27:07.646 UTC [1] FATAL: database files are incompatible with server
database_1 | 2020-05-18 20:27:07.646 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 11.8.

By keeping 9.6 the upgrade is successful. Since the upgrade using docker is currently undocumented and 9.6 is still supported, let’s keep this version for now.

When the time comes, running pg_upgrade, maybe via this method will be required. Hopefully something simpler.

Maybe using https://hub.docker.com/r/sameersbn/postgresql#upgrading would help with upgrades