我使用 KeystoneJs v3 遇到以下问题。
托管在 Azure 上,由 MongoLab 托管数据库。通过本地主机上的 KeystoneJs 访问数据库时,我没有收到此错误
我对 KeystoneJs、node 和 mongo 很陌生,所以如果这个问题之前被问过并解决了很多次,我很抱歉。
Thu Feb 19 2015 21:23:13 GMT+0000 (Coordinated Universal Time): Unaught exception: Error: Error setting TTL index on collection : app_sessions
at D:\home\site\wwwroot\node_modules\connect-mongo\lib\connect-mongo.js:169:23
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\db.js:1482:46
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\db.js:1615:20
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:169:22
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:700:39
at Cursor.close (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:989:5)
at Cursor.wrappedCursorClose [as close] (D:\home\site\wwwroot\node_modules\newrelic\lib\instrumentation\mongodb.js:226:20)
at commandHandler (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:700:21)
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\db.js:1888:9
at Server.Base._callHandler (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\base.js:453:41)
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\server.js:487:18
at MongoReply.parseBody (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\responses\mongo_reply.js:68:5)
at null.<anonymous> (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\server.js:445:20)
at emit (events.js:95:17)
at null.<anonymous> (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:201:13)
at emit (events.js:98:17)