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

启动错误 #3

Open
anguskwan opened this issue Jun 3, 2016 · 0 comments
Open

启动错误 #3

anguskwan opened this issue Jun 3, 2016 · 0 comments

Comments

@anguskwan
Copy link

anguskwan commented Jun 3, 2016

默认启动pomelo start --harmony之后会出现以下的错误

[2016-06-03 18:44:32.809] [ERROR] pomelo - [/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/pomelo/lib/util/appUtil.js] fail to operate component, method: start, err: "Error: Cannot find module './../../../../lib/mongoose-driver'\n at Function.Module._resolveFilename (module.js:327:15)\n at Function.Module._load (module.js:278:25)\n at Module.require (module.js:355:17)\n at require (internal/module.js:13:17)\n at Object. (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/mongoose/lib/drivers/index.js:8:12)\n at Module._compile (module.js:399:26)\n at Object.Module._extensions..js (module.js:406:10)\n at Module.load (module.js:345:32)\n at Function.Module._load (module.js:302:12)\n at Module.require (module.js:355:17)\n at require (internal/module.js:13:17)\n at Object. (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/mongoose/lib/schema.js:5:16)\n at Module._compile (module.js:399:26)\n at Object.Module._extensions..js (module.js:406:10)\n at Module.load (module.js:345:32)\n at Function.Module._load (module.js:302:12)\nFrom previous event:\n at proto.start (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/quick-pomelo/lib/components/memdb/index.js:38:6)\n at /Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/pomelo/lib/util/appUtil.js:111:19\n at iterate (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/async/lib/async.js:123:13)\n at nextTickCallbackWith0Args (node.js:433:9)\n at process._tickDomainCallback (node.js:403:13)\n at Function.Module.runMain (module.js:433:11)\n at startup (node.js:141:18)\n at node.js:977:3"

[2016-06-03 18:44:32.823] [ERROR] pomelo - [/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/pomelo/lib/util/appUtil.js] fail to operate component, method: start, err: "Error: Cannot find module './../../../../lib/mongoose-driver'\n at Function.Module._resolveFilename (module.js:327:15)\n at Function.Module._load (module.js:278:25)\n at Module.require (module.js:355:17)\n at require (internal/module.js:13:17)\n at Object. (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/mongoose/lib/drivers/index.js:8:12)\n at Module._compile (module.js:399:26)\n at Object.Module._extensions..js (module.js:406:10)\n at Module.load (module.js:345:32)\n at Function.Module._load (module.js:302:12)\n at Module.require (module.js:355:17)\n at require (internal/module.js:13:17)\n at Object. (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/mongoose/lib/schema.js:5:16)\n at Module._compile (module.js:399:26)\n at Object.Module._extensions..js (module.js:406:10)\n at Module.load (module.js:345:32)\n at Function.Module._load (module.js:302:12)\nFrom previous event:\n at proto.start (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/quick-pomelo/lib/components/memdb/index.js:38:6)\n at /Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/pomelo/lib/util/appUtil.js:111:19\n at iterate (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/async/lib/async.js:123:13)\n at nextTickCallbackWith0Args (node.js:433:9)\n at process._tickDomainCallback (node.js:403:13)\n at Function.Module.runMain (module.js:433:11)\n at startup (node.js:141:18)\n at node.js:977:3"

[2016-06-03 18:44:32.826] [ERROR] pomelo - [/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/pomelo/lib/util/appUtil.js] fail to operate component, method: start, err: "Error: Cannot find module './../../../../lib/mongoose-driver'\n at Function.Module._resolveFilename (module.js:327:15)\n at Function.Module._load (module.js:278:25)\n at Module.require (module.js:355:17)\n at require (internal/module.js:13:17)\n at Object. (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/mongoose/lib/drivers/index.js:8:12)\n at Module._compile (module.js:399:26)\n at Object.Module._extensions..js (module.js:406:10)\n at Module.load (module.js:345:32)\n at Function.Module._load (module.js:302:12)\n at Module.require (module.js:355:17)\n at require (internal/module.js:13:17)\n at Object. (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/mongoose/lib/schema.js:5:16)\n at Module._compile (module.js:399:26)\n at Object.Module._extensions..js (module.js:406:10)\n at Module.load (module.js:345:32)\n at Function.Module._load (module.js:302:12)\nFrom previous event:\n at proto.start (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/quick-pomelo/lib/components/memdb/index.js:38:6)\n at /Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/pomelo/lib/util/appUtil.js:111:19\n at iterate (/Users/anguskwan/macdev/pomelo/quick-pomelo-demo-master/game-server/node_modules/async/lib/async.js:123:13)\n at nextTickCallbackWith0Args (node.js:433:9)\n at process._tickDomainCallback (node.js:403:13)\n at Function.Module.runMain (module.js:433:11)\n at startup (node.js:141:18)\n at node.js:977:3"

改了依赖路径(去掉global.xxx)之后,貌似memdb连不上mongo,卡在controller.player的
var binding = yield models.Binding.findOneAsync({socialId: socialId, socialType: socialType});
这个地方。

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

No branches or pull requests

1 participant