WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.33k stars 970 forks source link

Infinite restart with default configuration service #11925

Closed godcong closed 5 days ago

godcong commented 1 week ago

Describe the issue

D:\workspace\docker\weblate-docker>docker compose up
time="2024-06-21T14:44:18+08:00" level=warning msg="D:\\workspace\\docker\\weblate-docker\\docker-compose.override.yml: `version` is obsolete"
[+] Running 4/4
 ✔ Network weblate-docker_default       Created                                                                    0.0s
 ✔ Container weblate-docker-cache-1     Created                                                                    0.1s
 ✔ Container weblate-docker-database-1  Created                                                                    0.1s
 ✔ Container weblate-docker-weblate-1   Created                                                                    0.1s
Attaching to cache-1, database-1, weblate-1
database-1  |
database-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
database-1  |
cache-1     | 1:C 21 Jun 2024 06:44:19.749 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
cache-1     | 1:C 21 Jun 2024 06:44:19.749 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=1, just started
cache-1     | 1:C 21 Jun 2024 06:44:19.749 * Configuration loaded
cache-1     | 1:M 21 Jun 2024 06:44:19.749 * monotonic clock: POSIX clock_gettime
cache-1     | 1:M 21 Jun 2024 06:44:19.750 * Running mode=standalone, port=6379.
cache-1     | 1:M 21 Jun 2024 06:44:19.750 * Server initialized
cache-1     | 1:M 21 Jun 2024 06:44:19.751 * Loading RDB produced by version 7.2.5
cache-1     | 1:M 21 Jun 2024 06:44:19.751 * RDB age 37344 seconds
cache-1     | 1:M 21 Jun 2024 06:44:19.751 * RDB memory usage when created 1.72 Mb
cache-1     | 1:M 21 Jun 2024 06:44:19.753 * Done loading RDB, keys loaded: 599, keys expired: 37.
cache-1     | 1:M 21 Jun 2024 06:44:19.753 * DB loaded from disk: 0.003 seconds
cache-1     | 1:M 21 Jun 2024 06:44:19.753 * Ready to accept connections tcp
database-1  | 2024-06-21 06:44:19.822 UTC [1] LOG:  starting PostgreSQL 16.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
database-1  | 2024-06-21 06:44:19.822 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
database-1  | 2024-06-21 06:44:19.822 UTC [1] LOG:  listening on IPv6 address "::", port 5432
database-1  | 2024-06-21 06:44:19.825 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
database-1  | 2024-06-21 06:44:19.830 UTC [29] LOG:  database system was shut down at 2024-06-20 20:21:55 UTC
database-1  | 2024-06-21 06:44:19.839 UTC [1] LOG:  database system is ready to accept connections
weblate-1   | Starting...
weblate-1   | Postgres is up
weblate-1   | Starting database migration...
weblate-1   | Operations to perform:
weblate-1   |   Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
weblate-1   | Running migrations:
weblate-1   |   No migrations to apply.
weblate-1   | Refreshing stats...
weblate-1   | Deleting 'weblate-80.png'
...
weblate-1   | Deleting 'font-noto/NotoSans-Bold.ttf'
weblate-1   |
weblate-1   | 391 static files copied to '/app/cache/static'.
weblate-1   | Compressing... done
weblate-1   | Compressed 6 block(s) from 230 template(s) for 2 context(s).
weblate-1   | Updating user admin
weblate-1   | rm: cannot remove '/var/log/nginx/access.log': Read-only file system
weblate-1   | rm: cannot remove '/var/log/nginx/error.log': Read-only file system
weblate-1 exited with code 0
weblate-1   | Postgres is up
weblate-1   | Starting database migration...
weblate-1   | Operations to perform:
weblate-1   |   Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
weblate-1   | Running migrations:
weblate-1   |   No migrations to apply.
weblate-1   | Refreshing stats...
weblate-1   | Deleting 'weblate-80.png'
weblate-1   | Deleting 'logo-128.png'
weblate-1   | Deleting 'email-logo.png'
weblate-1   | Deleting 'email-logo-footer.png'
weblate-1   | Deleting 'logo-32.png'
weblate-1   | Deleting 'zammad.js'
weblate-1   | Deleting 'weblate-128.png'
...
weblate-1   | Deleting 'font-noto/NotoSans-Regular.ttf'
weblate-1   | Deleting 'font-noto/NotoSans-Bold.ttf'
weblate-1   |
weblate-1   | 391 static files copied to '/app/cache/static'.
weblate-1   | Compressing... done
weblate-1   | Compressed 6 block(s) from 230 template(s) for 2 context(s).
weblate-1   | Updating user admin
weblate-1   | rm: cannot remove '/var/log/nginx/access.log': Read-only file system
weblate-1   | rm: cannot remove '/var/log/nginx/error.log': Read-only file system
weblate-1 exited with code 0
weblate-1   | Postgres is up
weblate-1   | Starting database migration...
weblate-1   | Operations to perform:
weblate-1   |   Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
weblate-1   | Running migrations:
weblate-1   |   No migrations to apply.
weblate-1   | Refreshing stats...
weblate-1   | Deleting 'weblate-80.png'
weblate-1   | Deleting 'logo-128.png'
weblate-1   | Deleting 'email-logo.png'
weblate-1   | Deleting 'email-logo-footer.png'
...
weblate-1   | Deleting 'font-noto/NotoSans-Bold.ttf'
weblate-1   |
weblate-1   | 391 static files copied to '/app/cache/static'.
weblate-1   | Compressing... done
weblate-1   | Compressed 6 block(s) from 230 template(s) for 2 context(s).
weblate-1   | Updating user admin
weblate-1   | rm: cannot remove '/var/log/nginx/access.log': Read-only file system
weblate-1   | rm: cannot remove '/var/log/nginx/error.log': Read-only file system
Gracefully stopping... (press Ctrl+C again to force)
[+] Stopping 3/1
 ✔ Container weblate-docker-weblate-1   Stopped                                                                                                  4.0s
 ✔ Container weblate-docker-cache-1     Stopped                                                                                                  0.0s
 ✔ Container weblate-docker-database-1  Stopped                                                                                                  0.0s
canceled

I already tried

Steps to reproduce the behavior

  1. use default docker-compose.override.yml
  2. run docker compse up

Expected behavior

The address can be accessed normally

Screenshots

No response

Exception traceback

No response

Additional context

No response

nijel commented 1 week ago

You are using an ancient Weblate container (2021 or older because it doesn't contain faea516c) which is incompatible with the current docker-compose.yml.

github-actions[bot] commented 1 week ago

This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks!

In case your question is already answered, making a donation is the right way to say thank you!

godcong commented 1 week ago

@nijel I followed the tutorial on the page. The correct way would be to use the ./rundev.sh in https://github.com/WeblateOrg/weblate ?

nijel commented 5 days ago

Apparently it doesn't automatically fetch up-to-date base docker image, you can do it manually:

docker pull weblate/weblate:bleeding

I will adjust rundev.sh to do it automatically.

nijel commented 5 days ago

In case you are using docker compose directly, just do docker compose pull.

github-actions[bot] commented 5 days ago

Thank you for your report; the issue you have reported has just been fixed.