Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

请教一些pomelo常见日志报错原因和解决办法 #3

Closed
sornon opened this issue Nov 22, 2012 · 18 comments
Closed

请教一些pomelo常见日志报错原因和解决办法 #3

sornon opened this issue Nov 22, 2012 · 18 comments

Comments

@sornon
Copy link

sornon commented Nov 22, 2012

game-server 日志

  • [2012-11-22 09:01:31.889] [ERROR] /node_modules/pomelo/lib/master/starter.js - FAILED TO RUN, return code: 1
  • [2012-11-22 09:01:31.481] [ERROR] console - Caught exception: Error: spawn ENOMEM
    at errnoException (child_process.js:847:11)
    at ChildProcess.spawn (child_process.js:794:11)
    at exports.spawn (child_process.js:618:9)
    at Object.exports.execFile (child_process.js:510:15)
    at Object.exports.exec (child_process.js:481:18)
    at spawnProcess (/opt/lordof/lordofpomelo-master/game-server/node_modules/pomelo/lib/master/starter.js:143:14)
    at Object.starter.localrun (/opt/lordof/lordofpomelo-master/game-server/node_modules/pomelo/lib/master/starter.js:104:2)
    at Object.starter.run (/opt/lordof/lordofpomelo-master/game-server/node_modules/pomelo/lib/master/starter.js:38:11)
    at Object.starter.runServers (/opt/lordof/lordofpomelo-master/game-server/node_modules/pomelo/lib/master/starter.js:18:8)
    at Server.start.masterConsole.on.self.registered.(anonymous function) (/opt/lordof/lordofpomelo-master/game-server/node_modules/pomelo/lib/master/master.js:38:11)

web-server 日志

  • { code: undefined, msg: 'connect EHOSTUNREACH' }

ps:希望wiki增加一些Q&A

@py8765
Copy link
Collaborator

py8765 commented Nov 22, 2012

你先试试chatofpomelo能不能正常运行,看日志感觉是某些依赖包的问题。
Q&A会尽快更新,谢谢你提出的宝贵意见:)

@sornon
Copy link
Author

sornon commented Nov 22, 2012

[2012-11-22 10:05:10.306] [INFO] console - FATAL ERROR: Malloced operator new Allocation failed - process out of memory

[2012-11-22 10:05:10.311] [ERROR] /node_modules/pomelo/lib/master/starter.js - FAILED TO RUN, return code: 1

启动gs的时候提示的,好像是内存不足导致的吧

@py8765
Copy link
Collaborator

py8765 commented Nov 22, 2012

嗯,应该是的。你先用pomelo init 项目名称,这样新建一个项目,然后再分别启动两个server,看看有没有问题。

@sornon
Copy link
Author

sornon commented Nov 22, 2012

[root@335278 helloWorld]# pomelo init
The command is error format.

我已经npm install pomelo -g过了。但是pomelo init命令不支持

@py8765
Copy link
Collaborator

py8765 commented Nov 22, 2012

pomelo init 后面需要跟上路径或者你需要创建的项目名称

@sornon
Copy link
Author

sornon commented Nov 22, 2012

我知道了,我是按方式二做的。我以为pomelo init不写路径就是在当前目录初始化

@py8765
Copy link
Collaborator

py8765 commented Nov 22, 2012

如果是当前目录就是pomelo init .

@sornon
Copy link
Author

sornon commented Nov 22, 2012

gs & ws启动成功,url:3001见到了激动人心的大柚子,但是点击 "Test Game Server"没反应,这样对么?
因为我是访问的远程vps,是否需要配置server.json的ip地址

@sornon
Copy link
Author

sornon commented Nov 22, 2012

当前目录下使用pomelo init无效

@py8765
Copy link
Collaborator

py8765 commented Nov 22, 2012

servers.json中connector服务器的地址需要修改,然后pomelo init . ,init后面有一个“ .”的符号,表明当前目录。

@sornon
Copy link
Author

sornon commented Nov 22, 2012

sorry...I ignored the tiny dot,blind my dog eyes...

@sornon
Copy link
Author

sornon commented Nov 22, 2012

强烈建议增加window环境支持,本地非linux环境调试和开发很不方便

@py8765
Copy link
Collaborator

py8765 commented Nov 23, 2012

因为某些模块暂时windows系统还不支持,以后我们可能会考虑兼容windows。

@zlight
Copy link

zlight commented Nov 24, 2012

git clone 下载下来pomelo 源码后 怎么样安装pomelo?

@py8765
Copy link
Collaborator

py8765 commented Nov 24, 2012

具体的步骤可以参考wiki,https://github.com/NetEase/pomelo/wiki/Home-in-Chinese

@Fertony
Copy link

Fertony commented Nov 29, 2012

ubuntu 12.04,本机测试连接服务器是好的,但是局域网内其他机器测试连接服务器连接不上,在game server中尝试改了servers.json中127.0.0.1为局域网的地址,发现还是不行,请大师们指导

@py8765
Copy link
Collaborator

py8765 commented Nov 29, 2012

如果需要局域网中能够连通,需要将servers.json中的gate server和connector都修改为局域网地址,然后确保本机ssh 本机局域网地址能够直接登录。

@xiecc
Copy link
Collaborator

xiecc commented Nov 29, 2012

多台机器要配置ssh agent forward, 在�pomelo快速使用指南的最后列出了相关的英文文档。

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

No branches or pull requests

5 participants