pomelo 的 test case 不能跑过 #146

Closed
enginespot opened this Issue Mar 20, 2013 · 2 comments

3 participants

@enginespot

从git下载pomelo后 基本上只执行了 两个主要命令

npm install
mocha test/application.js

系统ubuntu 12.10
node:0.10.0

出现很多错误 错误如下

  [2013-03-20 16:39:20.281] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.287] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.293] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.293] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.294] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
․․․[2013-03-20 16:39:20.303] [INFO] /lib/application.js - application inited: "master-server-1"
[2013-03-20 16:39:20.544] [INFO] console -    info  - 'socket.io started'
[2013-03-20 16:39:20.548] [INFO] /node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "master", "127.0.0.1", 3005
[2013-03-20 16:39:20.573] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.574] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.575] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.575] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
․[2013-03-20 16:39:20.645] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.648] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.649] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.650] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.651] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.654] [INFO] /lib/application.js - application inited: "master-server-1"
[2013-03-20 16:39:20.655] [WARN] /lib/application.js - ignore duplicate component: "key"
․[2013-03-20 16:39:20.655] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.658] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.659] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.660] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.663] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.664] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.665] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.666] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.668] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.671] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.672] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.672] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.675] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.676] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.679] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.681] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.682] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.683] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.683] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.686] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.687] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.689] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.690] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.690] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.696] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.699] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.700] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.701] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.702] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.705] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.706] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.707] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.708] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.709] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.711] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 16:39:20.714] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.715] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.716] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.720] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.727] [INFO] /lib/application.js - application inited: "master-server-1"
․․[2013-03-20 16:39:20.730] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'
[2013-03-20 16:39:20.731] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'
[2013-03-20 16:39:20.732] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened  { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
  errno: 34,
  code: 'ENOENT',
  path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'
[2013-03-20 16:39:20.733] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened  { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'
[2013-03-20 16:39:20.735] [INFO] console - undefined
[2013-03-20 16:39:20.735] [INFO] console - undefined
[2013-03-20 16:39:20.736] [ERROR] console -   ✖ 2 of 15 tests failed:
[2013-03-20 16:39:20.738] [ERROR] console - undefined
[2013-03-20 16:39:20.739] [ERROR] console -   1) application test #compoent should load the component and fire their lifecircle callback by app.start, app.afterStart, app.stop:
     Error: connect ECONNRESET
      at errnoException (net.js:863:11)
      at Object.afterConnect [as oncomplete] (net.js:854:19)

[2013-03-20 16:39:20.740] [ERROR] console -   2) application test #add and remove servers should remove server info and emit event:
     AssertionError: expected 0 to equal 1
      at Object.Assertion.equal (/home/hongde/Projects/Assets/pomelo/node_modules/should/lib/should.js:303:10)
      at null._onTimeout (/home/hongde/Projects/Assets/pomelo/test/application.js:89:34)
      at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

[2013-03-20 16:39:20.741] [ERROR] console - undefined
@fantasyni
NetEase member

这个是因为在 game-server 目录下面没有建 logs 文件夹的缘故

@enginespot

应该在pomelo 目录下建logs文件夹

现在 有一个 case没跑过

[2013-03-20 18:21:49.008] [INFO] /lib/application.js - application inited: "master-server-1"
․․․․[2013-03-20 18:21:49.026] [INFO] /lib/application.js - application inited: "master-server-1"
[2013-03-20 18:21:49.281] [INFO] console - info - 'socket.io started'
[2013-03-20 18:21:49.286] [INFO] /node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "master", "127.0.0.1", 3005
․[2013-03-20 18:21:49.379] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.386] [INFO] /lib/application.js - application inited: "master-server-1"
[2013-03-20 18:21:49.386] [WARN] /lib/application.js - ignore duplicate component: "key"
․[2013-03-20 18:21:49.394] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.398] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.400] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.403] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.408] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.412] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.415] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.423] [INFO] /lib/application.js - application inited: "master-server-1"
․[2013-03-20 18:21:49.425] [INFO] console - undefined
[2013-03-20 18:21:49.427] [INFO] console - undefined
[2013-03-20 18:21:49.428] [ERROR] console - ✖ 1 of 15 tests failed:
[2013-03-20 18:21:49.428] [ERROR] console - undefined
[2013-03-20 18:21:49.430] [ERROR] console - 1) application test #compoent should load the component and fire their lifecircle callback by app.start, app.afterStart, app.stop:
Error: connect ECONNRESET
at errnoException (net.js:863:11)
at Object.afterConnect as oncomplete

[2013-03-20 18:21:49.432] [ERROR] console - undefined

@py8765 py8765 closed this Mar 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment