Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teamtalk运行过程中遇到的问题 #9

Open
oooodo opened this issue Feb 4, 2015 · 0 comments
Open

teamtalk运行过程中遇到的问题 #9

oooodo opened this issue Feb 4, 2015 · 0 comments

Comments

@oooodo
Copy link

oooodo commented Feb 4, 2015

我在一台虚拟机上部署了autodeploy项目的脚本,并且运行成功,各个服务正常启动,日志没有错误。

虚拟机的ip地址是:192.168.1.188
服务器端配置的情况是:
loginserver:

ClientListenIP=0.0.0.0 # can use multiple ip, seperate by ';'
ClientPort=8008
MsgServerListenIP=0.0.0.0 # can use multiple ip, seperate by ';'
MsgServerPort=8100

msgserver:

ListenIP=0.0.0.0
ListenPort=8200

HttpListenIP=0.0.0.0
HttpListenPort=8300
ConcurrentDBConnCnt=2
DBServerIP1=127.0.0.1
DBServerPort1=11000
DBServerIP2=127.0.0.1
DBServerPort2=11000

LoginServerIP1=127.0.0.1
LoginServerPort1=8100

RouteServerIP1=127.0.0.1
RouteServerPort1=8400

FileServerIP1=127.0.0.1
FileServerPort1=8500

IpAddr1=127.0.0.1 #电信IP
IpAddr2=127.0.0.1 #网通IP
MaxConnCnt=100000

msgserver启动后日志:一切正常。
2015-02-04, 20:28:26.561, <FileServConn.cpp>|<107>|,Connecting to FileServer 127.0.0.1:8500
2015-02-04, 20:28:26.561, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=8500
2015-02-04, 20:28:26.561, <DBServConn.cpp>|<55>|<init_db_serv_conn>,DB server connection index for login business: [0, 2), for other business: [2, 4)
2015-02-04, 20:28:26.561, <DBServConn.cpp>|<144>|,Connecting to DB Storage Server 127.0.0.1:11000
2015-02-04, 20:28:26.561, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=11000
2015-02-04, 20:28:26.563, <DBServConn.cpp>|<144>|,Connecting to DB Storage Server 127.0.0.1:11000
2015-02-04, 20:28:26.563, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=11000
2015-02-04, 20:28:26.563, <DBServConn.cpp>|<144>|,Connecting to DB Storage Server 127.0.0.1:11000
2015-02-04, 20:28:26.563, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=11000
2015-02-04, 20:28:26.563, <DBServConn.cpp>|<144>|,Connecting to DB Storage Server 127.0.0.1:11000
2015-02-04, 20:28:26.563, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=11000
2015-02-04, 20:28:26.563, <LoginServConn.cpp>|<97>|,Connecting to LoginServer 127.0.0.1:8100
2015-02-04, 20:28:26.563, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=8100
2015-02-04, 20:28:26.563, <RouteServConn.cpp>|<123>|,Connecting to RouteServer 127.0.0.1:8400
2015-02-04, 20:28:26.563, <BaseSocket.cpp>|<90>|,CBaseSocket::Connect, server_ip=127.0.0.1, port=8400
2015-02-04, 20:28:26.564, <FileServConn.cpp>|<132>|,connect to file server success
2015-02-04, 20:28:26.564, <DBServConn.cpp>|<169>|,connect to db server success
2015-02-04, 20:28:26.564, <DBServConn.cpp>|<169>|,connect to db server success
2015-02-04, 20:28:26.564, <DBServConn.cpp>|<169>|,connect to db server success
2015-02-04, 20:28:26.564, <DBServConn.cpp>|<169>|,connect to db server success
2015-02-04, 20:28:26.564, <LoginServConn.cpp>|<121>|,connect to login server success
2015-02-04, 20:28:26.580, <RouteServConn.cpp>|<152>|,connect to route server success
2015-02-04, 20:28:26.580, <FileServConn.cpp>|<240>|<_HandleFileServerIPRsp>,_HandleFileServerIPRsp -> 0.0.0.0 : 8500

pc客户端能够编译并且启动成功:

PC客户端的服务器端地址配置为:192.168.1.188:80

PHP管理系统配置如下:

loginServerIP:192.168.1.188:8200
Config Server IP:192.168.1.188:8300
PC客户端登录后:报如下错误:

[2015-02-04 18:06:31 P:7004 T:7008] LoginDialog DoLogin now
[2015-02-04 18:06:31 P:7004 T:7048] uname:C,LoginOperation begin,status:1
[2015-02-04 18:06:31 P:7004 T:7048] DoLoginServer::doLogin,address:192.168.1.188:8200
[2015-02-04 18:06:31 P:7004 T:7008] TcpClientSocket connected, 0
[2015-02-04 18:06:41 P:7004 T:7048] uname:C,LoginOperation login for loging server failed
[2015-02-04 18:06:41 P:7004 T:7008] uname:C,LoginDialog login for loging server faild!

loginserver收不到消息

msgserver收到的信息如下:
2015-02-04, 20:33:26.590, <MsgConn.cpp>|<53>|<msg_conn_timer_callback>,up_msg_cnt=0, up_msg_miss_cnt=0, down_msg_cnt=0, down_msg_miss_cnt=0
2015-02-04, 20:34:56.525, <MsgConn.cpp>|<152>|,Close client, handle=11, user_id=0

尝试过的方案:
修改系统配置,就是客户端通过http获得的接口地址,
到界面上显示的结果变为,消息服务器失败,或者登录服务器失败。
现在遇到的问题,
1,PHP管理系统里面的系统配置该怎么配置,才能让PC客户端Login?
2,msg_server 跟longin_server之间的关系,上面的配置是否正确?
3,PC客户端的问题,我该怎么排查,目前看各个服务都已经启动:redis,mysql,php-fpm,nginx,login_server,msg_server,route_server,file_server,msfs,im_db_proxy。

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

No branches or pull requests

1 participant