-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
This issue was manually transferred from the reaction-identity repo because this project still uses the waitForMongo.js script cc/ @aldeed
Issue Description
Reaction Admin waits before starting up to confirm that the MongoDB replica set is available. This check fails if the database user does not have "clusterManager" database role. We should not require this role in a deployed situation, especially not in production.
Steps to Reproduce
- Start Reaction Admin Docker service with a MONGO_URL that specifies a user who does not have1 "clusterManager" database role.
- View the service logs. It will hang for 2 minutes waiting for replica set, and then show a permission error.
Solution
This check was added primarily for development environments, where we are creating a replica set on the fly and Reaction Admin (Meteor) will throw an error if it isn't ready yet (race condition).
We can wrap the check in an environment variable that we set by default in development but would need to be manually set in a deployed environment.
aldeed
Metadata
Metadata
Assignees
Labels
No labels