lordofpomelo demo 运行出错及其处理方法

按照官方教程配置了lordofpomelo https://github.com/NetEase/pomelo/wiki/Installation-guide-of-lordofpomelo


启动游戏服务器

pomelo start

报错如下

[2014-08-20 17:47:52.365] [ERROR] console - getSysInfo failed! Error: Command failed: /bin/sh: 1: iostat: not found

    at ChildProcess.exithandler (child_process.js:647:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Socket.<anonymous> (child_process.js:966:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

[2014-08-20 17:47:52.388] [ERROR] console -  Caught exception: TypeError: Cannot read property 'date' of undefined
    at Module.masterHandler (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
    at ConsoleService.execute (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js:195:16)
    at Socket.<anonymous> (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:145:27)
    at Socket.EventEmitter.emit [as $emit] (events.js:95:17)
    at SocketNamespace.handlePacket (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/namespace.js:335:22)
    at Manager.onClientMessage (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/manager.js:488:38)
    at WebSocket.Transport.onMessage (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/transport.js:387:20)
    at Parser.<anonymous> (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
    at Parser.EventEmitter.emit (events.js:95:17)
    at finish (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/transports/websocket/hybi-16.js:288:16)

[2014-08-20 17:47:52.366] [ERROR] console - getSysInfo failed! Error: Command failed: /bin/sh: 1: iostat: not found

    at ChildProcess.exithandler (child_process.js:647:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Socket.<anonymous> (child_process.js:966:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

[2014-08-20 17:47:52.389] [ERROR] console -  Caught exception: TypeError: Cannot read property 'date' of undefined
    at Module.masterHandler (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
    at ConsoleService.execute (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js:195:16)
    at Socket.<anonymous> (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:145:27)
    at Socket.EventEmitter.emit [as $emit] (events.js:95:17)
    at SocketNamespace.handlePacket (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/namespace.js:335:22)
    at Manager.onClientMessage (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/manager.js:488:38)
    at WebSocket.Transport.onMessage (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/transport.js:387:20)
    at Parser.<anonymous> (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
    at Parser.EventEmitter.emit (events.js:95:17)
    at finish (/home/ctbinzi/game-server/lordofpomelo/game-server/node_modules/pomelo/node_modules/socket.io/lib/transports/websocket/hybi-16.js:288:16)

[2014-08-20 17:47:52.356] [ERROR] console - getSysInfo failed! Error: Command failed: /bin/sh: 1: iostat: not found

    at ChildProcess.exithandler (child_process.js:647:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Socket.<anonymous> (child_process.js:966:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

解决办法

apt-get install sysstat


 

你可能感兴趣的:(lordofpomelo demo 运行出错及其处理方法)