pomelo-admin-web无法建立与pomel的game-server的通讯

pomelo 的demo起来后,无法被pomelo的pomelo-admin-web连接到,无法通信,版本为2.2.5

浏览器console报错:

    (index):26 fail to connect to admin console server:
    (anonymous) @ (index):26
    (anonymous) @ client.js:69
    EventEmitter.emit @ socket.io.js:627
    Socket.publish @ socket.io.js:1571
    Socket.onError @ socket.io.js:1878
    xhr.onreadystatechange @ socket.io.js:1626
    (index):27 {"code":0,"message":"Transport unknown"}
标签: pomelo
suyuerun 在 8-2 12:34发布 分享到 weibo
4 回复
#1 sss316 8-2 14:16 回复

服务器应该报错了,看看日志

#2 suyuerun 8-2 15:39 回复

game-server没有报错,
[2017-08-02 15:00:33.075] [INFO] pomelo-admin - [MasterAgent] client user : monitor login to master
其实pomelo-admin-web 连接上pomelo的game-server服务器了,只是发送请求是不行的就是无法监测服务器并拿到数据

#3 suyuerun 8-2 18:47 回复

这个问题难道没人遇到过吗。。。。

#4 {8} sss316 8-3 17:33 回复

没碰到过,这点信息也看不出来什么啊,我这直接就跑起来了

suyuerun 8-3 18:05 回复

层主你好,我现在起来了,只不过没有信息是怎么回事,服务器后台和浏览器后台都不报错

sss316 8-3 20:02 回复

@suyuerun 你服务器的node安装了没, 服务器启动了没,启动了贴下日志

sss316 8-3 20:03 回复

@suyuerun 服务器的日志

suyuerun 8-4 15:34 回复

@sss316 [2017-08-04 00:24:10.513] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "master-server-1"

[2017-08-04 00:24:10.525] [INFO] pomelo-admin - [MqttServer] [MqttServer] listen on 3005

[2017-08-04 00:24:10.528] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/starter.js] Executing /home/suyuerun/.nvm/versions/node/v6.11.2/bin/node /home/suyuerun/chatofpomelo-websocket/game-server/app.js,env=development,id=connector-server-1,host=127.0.0.1,port=4050,clientPort=3050,frontend=true,serverType=connector locally

[2017-08-04 00:24:10.532] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/starter.js] Executing /home/suyuerun/.nvm/versions/node/v6.11.2/bin/node /home/suyuerun/chatofpomelo-websocket/game-server/app.js,env=development,id=chat-server-1,host=127.0.0.1,port=6050,serverType=chat locally

[2017-08-04 00:24:10.536] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/starter.js] Executing /home/suyuerun/.nvm/versions/node/v6.11.2/bin/node /home/suyuerun/chatofpomelo-websocket/game-server/app.js,env=development,id=gate-server-1,host=127.0.0.1,clientPort=3014,frontend=true,serverType=gate locally

[2017-08-04 00:24:10.561] [INFO] pomelo-admin - [ConsoleService] try to connect master: "master", "127.0.0.1", 3005

[2017-08-04 00:24:10.642] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"id":"master-server-1","host":"127.0.0.1","port":3005,"pid":9508}

[2017-08-04 00:24:10.713] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "chat-server-1"

[2017-08-04 00:24:10.719] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "connector-server-1"

[2017-08-04 00:24:10.737] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "gate-server-1"

[2017-08-04 00:24:10.762] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "master-server-1" enter after start...

[2017-08-04 00:24:10.762] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "master-server-1" finish start

[2017-08-04 00:24:10.763] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "master-server-1" startup in 246 ms

[2017-08-04 00:24:10.778] [INFO] pomelo-admin - [ConsoleService] try to connect master: "chat", "127.0.0.1", 3005

[2017-08-04 00:24:10.828] [INFO] pomelo-admin - [ConsoleService] try to connect master: "connector", "127.0.0.1", 3005

[2017-08-04 00:24:10.834] [INFO] pomelo-admin - [ConsoleService] try to connect master: "gate", "127.0.0.1", 3005

[2017-08-04 00:24:10.858] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"chat-server-1","host":"127.0.0.1","port":6050,"serverType":"chat","pid":9524}

[2017-08-04 00:24:10.898] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/monitorwatcher.js] [master-server-1] receive addServer signal: {"action":"addServer","server":{"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"chat-server-1","host":"127.0.0.1","port":6050,"serverType":"chat","pid":9524}}

[2017-08-04 00:24:10.918] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"connector-server-1","host":"127.0.0.1","port":4050,"clientPort":3050,"frontend":"true","serverType":"connector","pid":9518}

[2017-08-04 00:24:10.922] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"gate-server-1","host":"127.0.0.1","clientPort":3014,"frontend":"true","serverType":"gate","pid":9530}

[2017-08-04 00:24:10.957] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/monitorwatcher.js] [master-server-1] receive addServer signal: {"action":"addServer","server":{"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"connector-server-1","host":"127.0.0.1","port":4050,"clientPort":3050,"frontend":"true","serverType":"connector","pid":9518}}

[2017-08-04 00:24:10.958] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/monitorwatcher.js] [master-server-1] receive addServer signal: {"action":"addServer","server":{"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"gate-server-1","host":"127.0.0.1","clientPort":3014,"frontend":"true","serverType":"gate","pid":9530}}

[2017-08-04 00:24:10.981] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/pomelo@2.2.5@pomelo/lib/application.js] "chat-server-1" enter after start...
[2017-08-04 00:24:10.982] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/
pomelo@2.2.5@pomelo/lib/application.js] "chat-server-1" finish start
[2017-08-04 00:24:10.982] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "chat-server-1" startup in 264 ms

[2017-08-04 00:24:11.041] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "connector-server-1" enter after start...

[2017-08-04 00:24:11.044] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "connector-server-1" finish start

[2017-08-04 00:24:11.044] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "connector-server-1" startup in 280 ms

[2017-08-04 00:24:11.046] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "gate-server-1" enter after start...

[2017-08-04 00:24:11.049] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "gate-server-1" finish start

[2017-08-04 00:24:11.050] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "gate-server-1" startup in 272 ms

[2017-08-04 00:24:11.090] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/watchdog.js] all servers startup in 572 ms

^C
suyuerun@ubuntu:~/chatofpomelo-websocket/game-server$ ^C
suyuerun@ubuntu:~/chatofpomelo-websocket/game-server$ pomelo start
[2017-08-04 00:25:24.426] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "master-server-1"

[2017-08-04 00:25:24.437] [INFO] pomelo-admin - [MqttServer] [MqttServer] listen on 3005

[2017-08-04 00:25:24.439] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/starter.js] Executing /home/suyuerun/.nvm/versions/node/v6.11.2/bin/node /home/suyuerun/chatofpomelo-websocket/game-server/app.js,env=development,id=connector-server-1,host=127.0.0.1,port=4050,clientPort=3050,frontend=true,serverType=connector locally

[2017-08-04 00:25:24.443] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/starter.js] Executing /home/suyuerun/.nvm/versions/node/v6.11.2/bin/node /home/suyuerun/chatofpomelo-websocket/game-server/app.js,env=development,id=chat-server-1,host=127.0.0.1,port=6050,serverType=chat locally

[2017-08-04 00:25:24.447] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/starter.js] Executing /home/suyuerun/.nvm/versions/node/v6.11.2/bin/node /home/suyuerun/chatofpomelo-websocket/game-server/app.js,env=development,id=gate-server-1,host=127.0.0.1,clientPort=3014,frontend=true,serverType=gate locally

[2017-08-04 00:25:24.467] [INFO] pomelo-admin - [ConsoleService] try to connect master: "master", "127.0.0.1", 3005

[2017-08-04 00:25:24.558] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"id":"master-server-1","host":"127.0.0.1","port":3005,"pid":9593}

[2017-08-04 00:25:24.636] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "chat-server-1"

[2017-08-04 00:25:24.636] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "connector-server-1"

[2017-08-04 00:25:24.660] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] application inited: "gate-server-1"

[2017-08-04 00:25:24.678] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "master-server-1" enter after start...

[2017-08-04 00:25:24.679] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "master-server-1" finish start

[2017-08-04 00:25:24.680] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "master-server-1" startup in 250 ms

[2017-08-04 00:25:24.699] [INFO] pomelo-admin - [ConsoleService] try to connect master: "chat", "127.0.0.1", 3005

[2017-08-04 00:25:24.734] [INFO] pomelo-admin - [ConsoleService] try to connect master: "connector", "127.0.0.1", 3005

[2017-08-04 00:25:24.760] [INFO] pomelo-admin - [ConsoleService] try to connect master: "gate", "127.0.0.1", 3005

[2017-08-04 00:25:24.786] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"chat-server-1","host":"127.0.0.1","port":6050,"serverType":"chat","pid":9609}

[2017-08-04 00:25:24.819] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"connector-server-1","host":"127.0.0.1","port":4050,"clientPort":3050,"frontend":"true","serverType":"connector","pid":9603}

[2017-08-04 00:25:24.826] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/monitorwatcher.js] [master-server-1] receive addServer signal: {"action":"addServer","server":{"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"chat-server-1","host":"127.0.0.1","port":6050,"serverType":"chat","pid":9609}}

[2017-08-04 00:25:24.828] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/monitorwatcher.js] [master-server-1] receive addServer signal: {"action":"addServer","server":{"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"connector-server-1","host":"127.0.0.1","port":4050,"clientPort":3050,"frontend":"true","serverType":"connector","pid":9603}}

[2017-08-04 00:25:24.838] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/masterwatcher.js] masterwatcher receive add server event, with server: {"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"gate-server-1","host":"127.0.0.1","clientPort":3014,"frontend":"true","serverType":"gate","pid":9615}

[2017-08-04 00:25:24.879] [DEBUG] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/modules/monitorwatcher.js] [master-server-1] receive addServer signal: {"action":"addServer","server":{"main":"/home/suyuerun/chatofpomelo-websocket/game-server/app.js","env":"development","id":"gate-server-1","host":"127.0.0.1","clientPort":3014,"frontend":"true","serverType":"gate","pid":9615}}

[2017-08-04 00:25:24.910] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "chat-server-1" enter after start...

[2017-08-04 00:25:24.911] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "chat-server-1" finish start

[2017-08-04 00:25:24.912] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "chat-server-1" startup in 272 ms

[2017-08-04 00:25:24.944] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "connector-server-1" enter after start...

[2017-08-04 00:25:24.947] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "connector-server-1" finish start

[2017-08-04 00:25:24.948] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "connector-server-1" startup in 277 ms

[2017-08-04 00:25:24.966] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/application.js] "gate-server-1" enter after start...

[2017-08-04 00:25:24.969] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/pomelo@2.2.5@pomelo/lib/application.js] "gate-server-1" finish start
[2017-08-04 00:25:24.970] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/
pomelo@2.2.5@pomelo/lib/application.js] "gate-server-1" startup in 268 ms

[2017-08-04 00:25:25.010] [INFO] pomelo - [/home/suyuerun/chatofpomelo-websocket/game-server/node_modules/_pomelo@2.2.5@pomelo/lib/master/watchdog.js] all servers startup in 580 ms

suyuerun 8-4 15:35 回复

@sss316 不好意思,昨天下班了,刚看到

sss316 8-5 12:49 回复

@suyuerun 确实没报错,连不上服务器,要么地址不对,要么端口被占用!剩下的就靠你自己了

suyuerun 8-7 09:55 回复

@sss316 好的,感谢

suyuerun 8-7 11:26 回复

@sss316 那个,同在Linux上连接上了,结果没有数据内容是怎么回事呢,大神

回到顶部