-
-
Notifications
You must be signed in to change notification settings - Fork 957
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
Error on startup related to migrations and courier #3997
Comments
You have a few issues here. First, the kratos-postgres volume should be mounted on the postgresd container, not the kratos containers. If you based this on the quickstart.yml, the sqlite volumes are shared between the kratos containers because sqlite is based on local files. Second, you should look at: https://docs.docker.com/compose/startup-order/ depends_on by default only deals with execution order. In this case, the logs show that kratos is starting before kratos-migration finishes. A better solution is probably to have:
so that kratos waits for the migration to complete before trying to run. |
Thanks. That fixed it |
Preflight checklist
Ory Network Project
No response
Describe the bug
When running in docker, the messages show errors related to schema migration and courier tables
Reproducing the bug
docker compose up
with the contents as in "Relevant configuration" sectionDidn't think its related to the kratos.yml config file, but I can share if needed after editing the identifiers out.
Relevant log output
Relevant configuration
Version
1.2.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response
The text was updated successfully, but these errors were encountered: