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

Infinite restart with default configuration service #11925

Closed
2 tasks done
godcong opened this issue Jun 21, 2024 · 6 comments
Closed
2 tasks done

Infinite restart with default configuration service #11925

godcong opened this issue Jun 21, 2024 · 6 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@godcong
Copy link

godcong commented Jun 21, 2024

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

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

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 nijel added the question This is more a question for the support than an issue. label Jun 21, 2024
@nijel
Copy link
Member

nijel commented Jun 21, 2024

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.

Copy link

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
Copy link
Author

godcong commented Jun 21, 2024

@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
Copy link
Member

nijel commented Jun 24, 2024

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 nijel added bug Something is broken. and removed question This is more a question for the support than an issue. labels Jun 24, 2024
@nijel nijel transferred this issue from WeblateOrg/docker Jun 24, 2024
@nijel
Copy link
Member

nijel commented Jun 24, 2024

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

@nijel nijel closed this as completed in 32462c2 Jun 24, 2024
@nijel nijel added this to the 5.7 milestone Jun 24, 2024
@nijel nijel self-assigned this Jun 24, 2024
Copy link

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

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants