-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
I was setting up a development environment and ran into
play.api.UnexpectedException: Unexpected exception[TimeoutException: Future timed out after [5 seconds]]
Although the onboarding suggests it's an issue with the websocket connection, it was actually an issue with the MongoDB connection timeout being manually set to 5 seconds
private lazy val db: DefaultDB = Chronometer.syncEffect(
driver
.connect(uri, name.some)
.flatMap(_ database dbName)
.await(5.seconds, s"db:$name")
// ...
I changed the line to 60 seconds and lila worked fine.
[info] db.main - MongoDB connected to lichess in 5627.00 ms
Is there a workaround for this besides manually changing the code? Is it possible that this could be added into base.config
? Or added to the onboarding?
Environment
MacBook Pro 2015
macOS 10.14.6 (18G5033)
8 GB RAM
2.7 GHz Intel Core i5
mongodb-community@4.2
, sbt
, and redis
installed with brew
(Homebrew 2.2.17) and started using brew services
.
Metadata
Metadata
Assignees
Labels
No labels