BAE mongodb连接不上,各项设置都设置了,本地能跑
发布于 11 年前 作者 joecora 6635 次浏览 最后一次编辑是 8 年前

cookieSecret: ‘joexxx’, db: ‘MxUxJOzxElxxSPxxxUhtxxdz’, host: ‘mongo.duapp.com’, port : “8908”, username:‘4nx5SxxxxxxxxxxxxxxxxC’, password:‘l9kxdxeixtRxy47xxxxxxxx’

高手帮忙分析下,谢谢

Error Message is

/home/bae/app/node_modules/connect-mongo/lib/connect-mongo.js:155 throw new Error(‘Error connecting to database <’ + err + ‘>’); ^ Error: Error connecting to database at /home/bae/app/node_modules/connect-mongo/lib/connect-mongo.js:155:17 at /home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:229:16 at null. (/home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:578:7) at EventEmitter.emit (events.js:106:17) at null. (/home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:139:15) at EventEmitter.emit (events.js:98:17) at Socket. (/home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:475:10) at Socket.EventEmitter.emit (events.js:95:17) at net.js:441:14 at process._tickCallback (node.js:415:13) [Thu Feb 27 2014 23:40:48][Thu Feb 27 2014 23:40:48]Express server listening on port 18080

6 回复

这个不是因为mongo长连接的问题吗

同遇到这个问题,如果修改掉长连接呢? 楼主解决了吗?分享下

同问,这是咋地啦,本地都运行良好 Error: Error connecting to database: failed to connect to [127.0.0.1:27017] at null. (/home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:553:74) at EventEmitter.emit (events.js:106:17) at null. (/home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15) at EventEmitter.emit (events.js:98:17) at Socket. (/home/bae/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:512:10) at Socket.EventEmitter.emit (events.js:95:17) at net.js:441:14 at process._tickCallback (node.js:415:13)

bae收钱么?

收钱,2毛一天

回到顶部