刚把线上产品的log浏览下,发现几个err,求大家来围观指导

pomelo是0.7.6的,客户端是libpomelo

主要几个错误如下

  1. close the connection with invalid head message (这个错误是最多的,不知道最新的pomelo有没有解决)
    [2014-10-06 11:14:52.210] [ERROR] pomelo - [/game-server/node_modules/pomelo/lib/connectors/hybrid/tcpsocket.js] close the connection with invalid head message, the remote ip is xxx.xx.x.x && port is 35848 && message is [...]

  2. Fail to send message for non-existing session (这个是个[DEBUG] 信息)

  3. .fail to find handler for "card.cardHandler.smoh/⸀" (我的handler明明是 card.cardHandler.smol) [2014-10-19 17:50:28.758] [WARN] pomelo - [/game-server/node_modules/pomelo/lib/common/service/handlerService.js] could not find the method smoh/⸀ in handler: cardHandler [2014-10-19 17:50:28.759] [ERROR] pomelo - [/game-server/node_modules/pomelo/lib/common/service/handlerService.js] [handleManager]: fail to find handler for "card.cardHandler.smoh/⸀" [2014-10-19 17:50:28.760] [DEBUG] pomelo - [/game-server/node_modules/pomelo/lib/server/server.js] no default error handler to resolve unknown exception. Error: fail to find handler for card.cardHandler.smoh/⸀ at Service.handle (/game-server/node_modules/pomelo/lib/common/service/handlerService.js:29:30) at handle (/game-server/node_modules/pomelo/lib/server/server.js:372:25) at next (/game-server/node_modules/pomelo/lib/common/service/filterService.js:50:7) at Service.beforeFilter (/game-server/node_modules/pomelo/lib/common/service/filterService.js:65:3) at beforeFilter (/game-server/node_modules/pomelo/lib/server/server.js:247:8) at doHandle (/game-server/node_modules/pomelo/lib/server/server.js:385:3) at pro.handle (/game-server/node_modules/pomelo/lib/server/server.js:124:3) at pro.handle (/game-server/node_modules/pomelo/lib/components/server.js:67:15) at Remote.forwardMessage (/game-server/node_modules/pomelo/lib/common/remote/backend/msgRemote.js:40:10) at Object.module.exports.route (/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/dispatcher.js:33:10) [2014-10-19 21:06:50.963] [WARN] pomelo - [/game-server/node_modules/pomelo/lib/common/service/handlerService.js] could not find the method smo@K,onColor in handler: cardHandler [2014-10-19 21:06:50.963] [ERROR] pomelo - [/game-server/node_modules/pomelo/lib/common/service/handlerService.js] [handleManager]: fail to find handler for "card.cardHandler.smo@K,\u001aonColor" [2014-10-19 21:06:50.965] [DEBUG] pomelo - [//game-server/node_modules/pomelo/lib/server/server.js] no default error handler to resolve unknown exception. Error: fail to find handler for card.cardHandler.smo@K,onColor at Service.handle (/game-server/node_modules/pomelo/lib/common/service/handlerService.js:29:30) at handle (/game-server/node_modules/pomelo/lib/server/server.js:372:25) at next (/game-server/node_modules/pomelo/lib/common/service/filterService.js:50:7) at Service.beforeFilter (/game-server/node_modules/pomelo/lib/common/service/filterService.js:65:3) at beforeFilter (/game-server/node_modules/pomelo/lib/server/server.js:247:8) at doHandle (/game-server/node_modules/pomelo/lib/server/server.js:385:3) at pro.handle (/game-server/node_modules/pomelo/lib/server/server.js:124:3) at pro.handle (/game-server/node_modules/pomelo/lib/components/server.js:67:15) at Remote.forwardMessage (/game-server/node_modules/pomelo/lib/common/remote/backend/msgRemote.js:40:10) at Object.module.exports.route (/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/dispatcher.js:33:10)

App是 火拼泡泡Online,
苹果下载
安卓

标签: pomelo libpomelo 移动开发 bug 反馈 开发求助
zlstt 在 2014-10-24 15:03发布 分享到 weibo
3 回复
#1 zlstt 2014-10-24 15:03 回复

阵型全乱了。。。

#2 {1} qklxtlx 2014-10-24 17:59 回复

会不会是服务器decode失败……我有时候遇到protobuf解码失败的(线上

zlstt 2014-10-24 19:19 回复

我没有用这么高级的功能

#3 mrFranklin 2014-10-29 12:52 回复

第一个,前四行的log确实很常见,其实不用管它。应该是有黑客用嗅探工具之类的探测端口,因为他发的包的内容不符合pomelo的规定格式,所以被refuse了。

第二个应该是想让某个session下发消息的时候,这个session已经不存在了(比如下线了),就提示了个找不到session的错误。这是个debug,问题应该不大。

第三个应该是你客户端有个地方代码写错了。。smol写成了smoh。。。

如果没有其他错误,你们服务器还是挺稳定地啊。 另外我想请教下你们现在最大在线人数是多少呢?机器是啥配置?

回到顶部