Playframework Reactivemongo在AWS和Google Compute上失败

Playframework Reactivemongo在AWS和Google Compute上失败,playframework,reactivemongo,play-reactivemongo,Playframework,Reactivemongo,Play Reactivemongo,我遇到了一个奇怪的情况,我正在使用版本11.11进行播放2.5.1。我的应用程序在本地mongodb上运行良好。当我在AWS或Google compute上启动应用程序时,它在collection.find期间被卡住,因为事实上,任何类型的collection操作都会被卡住。我已经将mongodb本地安装到实例本身,我能够通过shell连接并向mongodb添加集合 同样的方法在数字海洋上运行得非常好 有人能帮我出什么问题吗 配置 mongodb.uri = "mongodb://"${?MON

我遇到了一个奇怪的情况,我正在使用版本11.11进行播放2.5.1。我的应用程序在本地mongodb上运行良好。当我在AWS或Google compute上启动应用程序时,它在collection.find期间被卡住,因为事实上,任何类型的collection操作都会被卡住。我已经将mongodb本地安装到实例本身,我能够通过shell连接并向mongodb添加集合

同样的方法在数字海洋上运行得非常好

有人能帮我出什么问题吗

配置

mongodb.uri = "mongodb://"${?MONGO_HOST}":"${?MONGO_PORT}"/service_collection"

mongo-async-driver {
  akka {
    loggers = ["akka.event.slf4j.Slf4jLogger"]
    loglevel = DEBUG
  }
}
以下是我的构建和插件文件

"org.reactivemongo" %% "play2-reactivemongo" % "0.11.11"
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.1")
日志 反应性mongo测井

[info] application - ReactiveMongoApi starting...
[info] application - ReactiveMongoApi successfully configured with DB 'service_collection'! Servers:
        [127.0.0.1:27017]
在mongodb端,以下是日志,我没有看到任何查询从日志到达mongodb

Mongodb日志

Sat Apr  9 01:20:25.891 [initandlisten] opening db:  local
Sat Apr  9 01:20:25.892 [initandlisten] enter repairDatabases (to check pdfile version #)
Sat Apr  9 01:20:25.892 [initandlisten]     local
Sat Apr  9 01:20:25.892 [initandlisten]     service_collection
Sat Apr  9 01:20:25.892 [initandlisten] opening db:  service_collection
Sat Apr  9 01:20:25.893 [initandlisten] done repairDatabases
Sat Apr  9 01:20:25.893 [initandlisten] run command local.$cmd { create: "startup_log", size: 10485760, capped: true }
Sat Apr  9 01:20:25.893 [initandlisten] opening db:  local
Sat Apr  9 01:20:25.893 [initandlisten] create collection local.startup_log { create: "startup_log", size: 10485760, capped: true }
Sat Apr  9 01:20:25.893 [initandlisten] command local.$cmd command: { create: "startup_log", size: 10485760, capped: true } ntoreturn:1 keyUpdates:0  reslen:75 0ms
Sat Apr  9 01:20:25.893 [initandlisten] insert local.startup_log ninserted:1 keyUpdates:0  0ms
Sat Apr  9 01:20:25.893 [initandlisten] fd limit hard:64000 soft:64000 max conn: 51200
Sat Apr  9 01:20:25.893 [initandlisten] waiting for connections on port 27017
Sat Apr  9 01:20:25.893 BackgroundJob starting: TTLMonitor
Sat Apr  9 01:20:25.893 BackgroundJob starting: PeriodicTask::Runner
Sat Apr  9 01:20:25.893 BackgroundJob starting: ClientCursorMonitor
Sat Apr  9 01:20:25.893 [websvr] fd limit hard:64000 soft:64000 max conn: 51200
Sat Apr  9 01:20:25.894 [websvr] admin web console waiting for connections on port 28017
Sat Apr  9 01:20:25.894 BackgroundJob starting: snapshot
Sat Apr  9 01:20:33.471 [initandlisten] connection accepted from 127.0.0.1:58316 #1 (1 connection now open)
Sat Apr  9 01:20:33.473 [initandlisten] connection accepted from 127.0.0.1:58317 #2 (2 connections now open)
Sat Apr  9 01:20:33.473 [initandlisten] connection accepted from 127.0.0.1:58318 #3 (3 connections now open)
Sat Apr  9 01:20:33.475 [initandlisten] connection accepted from 127.0.0.1:58319 #4 (4 connections now open)
Sat Apr  9 01:20:33.475 [initandlisten] connection accepted from 127.0.0.1:58320 #5 (5 connections now open)
Sat Apr  9 01:20:33.475 [initandlisten] connection accepted from 127.0.0.1:58321 #6 (6 connections now open)
Sat Apr  9 01:20:33.477 [initandlisten] connection accepted from 127.0.0.1:58322 #7 (7 connections now open)
Sat Apr  9 01:20:33.477 [initandlisten] connection accepted from 127.0.0.1:58323 #8 (8 connections now open)
Sat Apr  9 01:20:33.477 [initandlisten] connection accepted from 127.0.0.1:58324 #9 (9 connections now open)
Sat Apr  9 01:20:33.477 [initandlisten] connection accepted from 127.0.0.1:58325 #10 (10 connections now open)

要获取日志,应在播放日志中添加
。您何时调用
collection.find()
?执行此调用时,是否确定数据库已准备就绪?若要获取日志,应在播放日志中添加
。何时调用
集合.find()
?执行此呼叫时,您确定您的db已准备就绪吗?