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

尝试部署在BAE3.0 #43

Open
sbyinin opened this issue Jun 6, 2014 · 4 comments
Open

尝试部署在BAE3.0 #43

sbyinin opened this issue Jun 6, 2014 · 4 comments

Comments

@sbyinin
Copy link

sbyinin commented Jun 6, 2014

尝试部署在BAE3.0,可是无法链接到mongodb,是长链接的问题吗?

@guo-yu
Copy link
Owner

guo-yu commented Jun 6, 2014

具体错误是什么呢?
顺便贴一下数据库配置的写法~

@sbyinin
Copy link
Author

sbyinin commented Jun 6, 2014

[Fri Jun 06 2014 22:50:56]
[Fri Jun 06 2014 22:50:56]
at process._tickCallback (node.js:415:13)
at net.js:441:14
at Socket.EventEmitter.emit (events.js:95:17)
at Socket. (/home/bae/app/node_modules/express-scaffold/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:533:10)
at EventEmitter.emit (events.js:98:17)
at null. (/home/bae/app/node_modules/express-scaffold/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
at EventEmitter.emit (events.js:106:17)
at null. (/home/bae/app/node_modules/express-scaffold/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:546:74)
Error: failed to connect to [mongo.duapp.com:8908]
^
throw er; // Unhandled 'error' event
events.js:72
js-bson: Failed to load c++ bson extension, using pure JS version
Failed to load c++ bson extension, using pure JS version
[Fri Jun 06 2014 22:50:23]
[Fri Jun 06 2014 22:50:23]

"database": {
"name": "wuWFrNoE**",
"host": "mongo.duapp.com",
"port": "8908",
"options": {
"user": "Injgj0bOpZPo**",
"pass": "Bq48ujk0osBm8S**"
}
},

本地测试时连接本地数据库正常。

@sanddudu
Copy link

sanddudu commented Jun 7, 2014

#40 目前数据库还不支持强制验证的连接

@guo-yu guo-yu added bug labels Jun 7, 2014
@guangliang2014
Copy link

应该如何解决? 有方法没,分享下。谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants