-
Notifications
You must be signed in to change notification settings - Fork 13
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
Not able to run db migration to bootstrap the database #187
Comments
Also just a note that we have verified the connection between the app instances and elasticsearch cluster is good. For example, on one of the app instances, we can run,
|
The simplest solution is to change the dockerflow check to not expect the index to be there but to check that Elasticsearch is up and healthy. That was the original design. It was only later that I added the check to see if the index is there. When I did that, on my local dev environment, I already had the index created. By the way, the |
Background
Resources for -stage environment (database, elasticsearch, application stack and etc.) are set up and the application is able to start up.
Trying to run the
migrate
command for the first time to bootstrap the database in this environment.Issue
Here is the command we ran:
And here is the error:
So it looks like there is some kinda of chicken-egg problem. Because it tries to check the health of a non-existing index before running the database migration.
Is it possible to document the steps of how to bootstrap a brand new environment? That would be ideal if we can follow those steps exactly to set this up.
A less ideal solution would be let us know how to manually work around it. But that means we'll have to play the same "manual tricks" when we deploy -prod environment.
The text was updated successfully, but these errors were encountered: