-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Container starts before database is ready #64
Comments
Hi, this error isn't related to the TMDB API key - looks like an issue with your backend DB connection, either the migrations didn't run, a table got dropped or there's a connection issue. Can you see any tables or data in your DB, especially the torrent_contents table? |
Describe the bug I can reproduce a similar error when starting it up with a near stock compose file with no existing data. When it happens, the bitmagnet database does not exist in postgres when checked directly (e.g. \c bitmagnet; \d), even after waiting 5+ minutes. Restarting with compose down and up a few times does seem to fix it for me. Could the bitmagnet service be trying to access and use the database before it has been fully setup? To Reproduce
Expected behavior General (please complete the following information):
Additional context Changes to docker-compose.yml from docker-compose.dev.yml: Selection of logs from the database via (I seem to be able to recreate the pattern consistently): First startup: Second startup: Third startup: |
Hi, looks like this is due to the Postgres health check: There's a possible workaround here: https://stackoverflow.com/questions/14549270/check-if-database-exists-in-postgresql-using-shell/16783253#16783253 but it seems convoluted - there must be a better way. Perhaps it should be the Bitmagnet container's job to attempt DB creation if it doesn't exist and we'd remove the |
Have you checked the roadmap on the website, and existing issues, before opening a dupllcate issue?
Yes
Describe the bug
An SQL error is shown when TMDB_API_KEY is not provided.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should have a more descriptive error message that says that TMDB_API_KEY is missing.
General (please complete the following information):
Additional context
Screenshot:
The text was updated successfully, but these errors were encountered: