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

Docker / Mongo Error: users.findOne() buffering timed out after 10000ms #6

Closed
app-generator opened this issue Jul 5, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@app-generator
Copy link
Owner

Connection with Mongo inside docker bumps a timeout error.

Mongo seems to start without errors

mongodb_1            | 2021-07-05T07:57:11.163+0000 I  SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>
mongodb_1            | 2021-07-05T07:57:11.163+0000 I  NETWORK  [initandlisten] Listening on 0.0.0.0
mongodb_1            | 2021-07-05T07:57:11.163+0000 I  NETWORK  [initandlisten] waiting for connections on port 27017

At first request, a timeout is fired:

api-server-nodejs_1  | App listening on port 5000! Go to http://localhost:5000/
api-server-nodejs_1  | /usr/src/api-server-nodejs/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:197
api-server-nodejs_1  |           const err = new MongooseError(message);
api-server-nodejs_1  |                       ^
api-server-nodejs_1  |
api-server-nodejs_1  | MongooseError: Operation `users.findOne()` buffering timed out after 10000ms
api-server-nodejs_1  |     at Timeout.<anonymous> (/usr/src/api-server-nodejs/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:197:23)
api-server-nodejs_1  |     at listOnTimeout (node:internal/timers:557:17)
api-server-nodejs_1  |     at processTimers (node:internal/timers:500:7)
app-generator pushed a commit that referenced this issue Jul 5, 2021
- Move sources to `src` folder
- Dockerize project (unstable) - See issue #6
@app-generator app-generator added the help wanted Extra attention is needed label Jul 5, 2021
@app-generator
Copy link
Owner Author

Docker removed in v1.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant