Giter Site home page Giter Site logo

ttautodeploy's Issues

teamtalk运行过程中遇到的问题

我在一台虚拟机上部署了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。

php编译不过去

./setup.sh: line 96: --with-zlib: command not found
/bin/sh /root/TT/nginx_php/php/php-5.6.3/libtool --silent --preserve-dup-deps --
mode=compile cc -I/root/TT/nginx_php/php/php-5.6.3/ext/fileinfo/libmagic -Iext/f
ileinfo/ -I/root/TT/nginx_php/php/php-5.6.3/ext/fileinfo/ -DPHP_ATOM_INC -I/root
/TT/nginx_php/php/php-5.6.3/include -I/root/TT/nginx_php/php/php-5.6.3/main -I/r
oot/TT/nginx_php/php/php-5.6.3 -I/root/TT/nginx_php/php/php-5.6.3/ext/date/lib -
I/root/TT/nginx_php/php/php-5.6.3/ext/ereg/regex -I/usr/include/libxml2 -I/root/
TT/nginx_php/php/php-5.6.3/ext/sqlite3/libsqlite -I/root/TT/nginx_php/php/php-5.
6.3/TSRM -I/root/TT/nginx_php/php/php-5.6.3/Zend -I/usr/include -g -O2 -fvisi
bility=hidden -c /root/TT/nginx_php/php/php-5.6.3/ext/fileinfo/libmagic/apprent
ice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: Internal error: Killed (program cc1)
Please submit a full bug report.
See http://bugzilla.redhat.com/bugzilla for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
Error: make php failed
Error: build php failed, stop install.

官方能不能给搭建一个测试的后台

官方能不能给搭建一个测试的后台,这样我们下载了客户端的代码就可以看看效果了,学习一下了,现在我们没法搭建后台就没法看到效果

这个项目完全不可用,完全是浪费别人的时间

问题太多了,花了两个半小时处理,到im_server这一步放弃,看了一下setup.sh脚本内容,不太认为能跑起来

  • 编译redis时报错
  • percona的下载地址过期,需要手工修正
  • percona在内存小的机器上无法启动
  • php在内存小的机器上无法编译
  • jdk需要自己下载,在readme中未提及
  • im_web缺少zip文件,需要自己去 https://github.com/mogutt/TTPHPServer 下载
  • im_server缺少tar.gz文件,对应的项目应该是TTServer

部分解决问题的链接:

http://www.webtrafficexchange.com/solved-mysql-crash-fatal-error-cannot-allocate-memory-buffer-pool

http://unix.stackexchange.com/questions/94479/jemalloc-and-other-errors-making-redis-on-centos-6-4

http://nbaiwan.blog.51cto.com/6286161/1425200

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.