pomelo分布式部署错误[解决]

已配置ssh免密登录,启动应用报错如下,child process exit with error, error code: 127, executed command: ssh,谁帮忙看一下,谢谢

标签: 开发求助
wangyaodong 在 2015-2-2 10:12发布
wangyaodong 在 2015-2-3 12:02重新编辑 分享到 weibo
4 回复
#1 wangxy 2015-2-2 14:09 回复

需要更多日志

#2 wangyaodong 2015-2-2 15:42 回复

[2015-02-02 12:10:11.630] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting /usr/local/bin/node --debug=30000,/home/workspace/princess/game-server/app.js,env=development,id=auth-server-1,host=192.168.0.156,port=55060,args=--debug=30000,serverType=auth locally
[2015-02-02 12:10:11.635] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting /usr/local/bin/node --debug=40000,/home/workspace/princess/game-server/app.js,env=development,id=connector-server-1,host=192.168.0.156,port=55050,clientPort=3050,frontend=true,args=--debug=40000,mainId=1,subId=1,serverType=connector locally
[2015-02-02 12:10:11.644] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting /usr/local/bin/node --debug=40001,/home/workspace/princess/game-server/app.js,env=development,id=connector-server-2,host=192.168.0.156,port=55051,clientPort=3051,frontend=true,args=--debug=40001,mainId=1,subId=2,serverType=connector locally
[2015-02-02 12:10:11.650] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting /usr/local/bin/node --debug=50000,/home/workspace/princess/game-server/app.js,env=development,id=hall-server-1,host=192.168.0.156,port=55040,args=--debug=50000,mainId=1,subId=1,serverType=hall locally
[2015-02-02 12:10:11.666] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting /usr/local/bin/node --debug=50001,/home/workspace/princess/game-server/app.js,env=development,id=hall-server-2,host=192.168.0.156,port=55041,args=--debug=50001,mainId=1,subId=2,serverType=hall locally
[2015-02-02 12:10:11.680] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting /usr/local/bin/node --debug=60000,/home/workspace/princess/game-server/app.js,env=development,id=social-server-1,host=192.168.0.156,port=55070,args=--debug=60000,mainId=1,name=夏日晴风,serverType=social locally
[2015-02-02 12:10:11.697] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mExecuting cd "/home/workspace/princess/game-server" && "/usr/local/bin/node"--debug=65535 "/home/workspace/princess/game-server/app.js" env=development id=manager-server-1 host=192.168.0.158 port=55270 clientPort=3080 args=--debug=65535 mainId=1 serverType=manager on 192.168.0.158:22
[2015-02-02 12:10:11.713] [INFO] pomelo-admin - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js] ^[[39mtry to connect master: "master", "192.168.0.156", 3005
[2015-02-02 12:10:11.966] [DEBUG] pomelo - ^[[36m[/home/workspace/princess/game-server/node_modules/pomelo/lib/modules/masterwatcher.js] ^[[39mmasterwatcher receive add server event, with server: {"id":"master-server-1","host":"192.168.0.156","port":3005,"pid":17775}
[2015-02-02 12:10:11.987] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/application.js] ^[[39m"master-server-1" enter after start...
[2015-02-02 12:10:11.989] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/application.js] ^[[39m"master-server-1" finish start
[2015-02-02 12:10:11.992] [INFO] pomelo - ^[[32m[/home/workspace/princess/game-server/node_modules/pomelo/lib/application.js] ^[[39m"master-server-1" startup in 507 ms
[2015-02-02 12:10:12.087] [WARN] pomelo - ^[[33m[/home/workspace/princess/game-server/node_modules/pomelo/lib/master/starter.js] ^[[39mchild process exit with error, error code: 127, executed command: ssh

#3 wangyaodong 2015-2-3 12:01 回复

"manager": [ {"id":"manager-server-1", "host":"192.168.0.86", "port":55270,"clientPort": 3080, "args": " --debug=65535", "mainId":1} ]
配置servers.json时,若为远程服务器,需在--debug前加空格,否则启用应用,执行远程命令时"/usr/local/bin/node"--debug=65535 "/home/workspace/princess/game-server/app.js"此处会报错,亦可在pomelo/lib/master/starter.js中修改run函数,将cmd += arg; 改为 cmd = cmd + ' ' + arg;

#4 {1} joe001 4-10 01:57 回复

多机布署用2.0.0或zookeeper最佳

reerayxia 5-17 12:47 回复

有木有介绍zookepper的。。。

回到顶部