Comments (12)
在bae上删掉node_modules中的mongodb文件夹试试看,请注意不要删除本地开发环境的
2013/7/24 mmtdream [email protected]
各位大神,我们的App上线了2天,现在数据连接不上,提示连接数超了,请问哪里可以设置连接数限制?还是你们平台那边才能设置呢?谢谢。
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/30
.
from cloudajs.
谢谢回复。
但还是不行,除了刚才那个提示连接数超了以外,还多了下面的错误:
path.existsSync is now called fs.existsSync
.
from cloudajs.
删除后请重新下线 => 上线应用
path.existsSync is now called fs.existsSync 只是个warning,可以忽略掉。
如果还不行,把提示连接数过多的日志贴给我看一下,app的地址也给我一下
from cloudajs.
已经执行了下线再上线的操作,还是一样的错误。这是App地址:http://xingmingdafen.duapp.com/
再次感谢。
ps. 下面是部分app日志:
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--{ [MongoError: Connect Number Excceed] name: 'MongoError', errmsg: 'Connect Number Excceed', ok: 0 }
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--DB auth failed
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--========================================================================================
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= This message will disappear when the default safe is set on the driver Db =
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= =
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= The default of no acknowlegement will change in the very near future =
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= =
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= http://www.mongodb.org/display/DOCS/getLastError+Command =
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= =
open
DEBUG:2013-07-24 10:57:40xingmingdafen.duapp.com
--= ex: new Db(new Server('localhost', 27017), {safe:false}) =
open
from cloudajs.
如果我把DbCollectionHandler.js文件中的var db = new mongodb.Db('db name', server, {});的数据库名字换一个其他可用的,就可以正常工作,再换回去,就又不行了。看样子是数据库的问题。错误提示还是上面那些。
谢谢
from cloudajs.
如果用平台自带的RockMongo这个工具去打开这个数据库,也会提示连接数超了的错误,如下:
Unable to connect MongoDB, please check your configurations. MongoDB said:Failed to connect to: mongo.duapp.com:8908: Authentication failed on database 'db name' with username 'user name': Connect Number Excceed.
from cloudajs.
请把有问题的db名字告诉我
from cloudajs.
uxzlTqGLkTZGhALRQqUvw
from cloudajs.
尝试的解决方案:
打开sumeru/server/DbCollectionHandler.js 在125行左右查找poolSize的配置。
如果这个数字大于25,则改为25后重新上下线。
如果仍有问题,请再告诉我
from cloudajs.
这个已经试过了,默认就是25,然后我就改大、改小,都试过,貌似并不起作用。
我有个感觉,可能问题出在数据库服务器那边,因为:
1)对于出问题的这个库,我就是用RockMongo,都没法连上去,老是提示连接数超了;
2)我把程序中的数据库名称改为一个其他App的(已做授权处理),马上就可以正常访问,一改回去,就又不行了。
不知道我的猜测对不对,我感觉是数据库服务器那边对于连接数的设置什么的(或者类似的配置)可能达到了限制。
再次谢谢。
from cloudajs.
问题解决,感谢 tongyao
from cloudajs.
解决步骤
1.下线所有已有版本,新建空版本
2.删除node_modules/mongodb
3.修改sumeru/server/DbCollectionHandler.js的poolSize为10(V0.7.15以后在server_config中)
4.上传代码,上线。
from cloudajs.
Related Issues (20)
- touchjs 如果用事件代理 event对象拿不到触发事件的dom
- 怎么开启debug模式 HOT 1
- 点击链接时跳转太快 HOT 2
- 请问clouda在windows平台可以使用吗? HOT 2
- 关于clouda的一些问题(急)!!! HOT 1
- sumeru.collection.create的API说明真当没问题么? HOT 1
- html缓存问题 HOT 1
- sumeru start .... NON BAE MODE
- 求救,关于clouda的文件上传疑问 HOT 1
- 0.10.4 用户登陆,在刷新页面之后不能持久化 HOT 1
- 在controller怎么为session绑定自定义数据?
- 是否考虑支持不同数据源
- view 层最好支持自定义模板,比如支持jade,ejs等等
- expand Validation in Model HOT 1
- 有一个问题感觉很奇怪 HOT 4
- 如何加载font-awesome等第三方图标库
- Android 的QQ浏览器支持问题
- 403 -Forbidden 安卓手机运行轻应用调试时总是出现这个问题 HOT 2
- touch.js的swipe在锤子手机原生浏览器上不能使用 HOT 2
- touchjs的touch.config的使用问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudajs.