WeblateOrg / docker-compose

Docker compose for Weblate
https://docs.weblate.org/en/latest/admin/deployments.html#docker
GNU General Public License v3.0
79 stars 64 forks source link

Installation failed #33

Closed webflo closed 3 years ago

webflo commented 4 years ago

Hello, i tried to install weblate with docker and followed the documentation closely. The startup of the database container fails.

Error message.

database_1  | 2020-10-02 10:08:19.878 UTC [1] FATAL:  database files are incompatible with server
database_1  | 2020-10-02 10:08:19.878 UTC [1] DETAIL:  The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 12.4.

I tried to downgrade it to PostgreSQL 11, but the installation still fails with

weblate_1   | django.db.migrations.exceptions.NodeNotFoundError: Migration weblate_auth.0008_auto_20200611_1232 depends on nonexistent node ('weblate_auth', '0007_group_components'). Django tried to replace migration weblate_auth.0007_group_components with any of [weblate_auth.0002_auto_20180507_1540_squashed_0011_auto_20180509_0739_squashed_0007_group_components] but wasn't able to because some of the replaced migrations are already applied.
weblate_1   |
weblate_1   | Migration from this version is not supported!
weblate_1   | Please upgrade to 4.1.1-3 first.
github-actions[bot] commented 4 years ago

This issue looks like a support question. We try to answer these reasonably fast, but in case you are looking for faster resolution, please consider purchasing support subscription and make Weblate stronger.

nijel commented 4 years ago

You apparently had some older version installed before. In case it doesn't contain any useful data delete the volumes (docker-compose rm -v should do it) and start from scratch. Otherwise you need to upgrade through intermediate versions as reported by the error message.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.