TangSengDaoDao / TangSengDaoDaoServer

高颜值 IM 即时通讯,聊天
https://tsdaodao.com
Apache License 2.0
2.41k stars 338 forks source link

连接不上 #66

Closed kangsange closed 11 months ago

kangsange commented 11 months ago

现象

按照宝塔安装的方式安装好了 image

接口验证:正常,注册和登录都是OK的 image

但用jssdk就是连不上 image

5001 5100 5200 5300 8306 82 83 端口可以确保都已经放开,

日志

kangsange commented 11 months ago

我猜测是wukongium的ip是不是没绑定,但是docker pull的代码在哪里修改wk配置文件呢

kangsange commented 11 months ago

wukongim的log

{"level":"debug","time":"2023-12-25 00:03:32","msg":"【UserAPI】req","req":{"uid":"admin","token":"b55b7194fe994bd7b61d861662295a6f","device_flag":0,"device_level":1}} {"level":"debug","time":"2023-12-25 00:04:42","msg":"【Conn[[reactor-4]1]】max idle time exceeded, close the connection","maxIdle":2000,"lastActivity":2916,"conn":"Conn[1] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:04:42","msg":"【Dispatch】conn close for OnClose","conn":"Conn[1] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:04:42","msg":"【Processor】conn is close","conn":"Conn[1] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【ReactorSub-4】connection error","error":"handshake error: bad \"Connection\" header"} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Dispatch】conn close for OnClose","conn":"Conn[3] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Processor】conn is close","conn":"Conn[3] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【ReactorSub-4】connection error","error":"handshake error: bad \"Connection\" header"} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Dispatch】conn close for OnClose","conn":"Conn[4] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Processor】conn is close","conn":"Conn[4] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【ReactorSub-4】connection error","error":"handshake error: bad \"Connection\" header"} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Dispatch】conn close for OnClose","conn":"Conn[5] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Processor】conn is close","conn":"Conn[5] uid= fd={36} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【ReactorSub-1】connection error","error":"handshake error: bad \"Connection\" header"} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Dispatch】conn close for OnClose","conn":"Conn[2] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:06:10","msg":"【Processor】conn is close","conn":"Conn[2] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:07:22","msg":"【Conn[[reactor-1]6]】max idle time exceeded, close the connection","maxIdle":2000,"lastActivity":2946,"conn":"Conn[6] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:07:22","msg":"【Dispatch】conn close for OnClose","conn":"Conn[6] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:07:22","msg":"【Processor】conn is close","conn":"Conn[6] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:11:37","msg":"【Conn[[reactor-1]7]】max idle time exceeded, close the connection","maxIdle":2000,"lastActivity":2923,"conn":"Conn[7] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:11:37","msg":"【Dispatch】conn close for OnClose","conn":"Conn[7] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="} {"level":"debug","time":"2023-12-25 00:11:37","msg":"【Processor】conn is close","conn":"Conn[7] uid= fd={33} deviceFlag=APP deviceLevel=Slave deviceID="}

kangsange commented 11 months ago

上面log显示貌似没有用户名,但我本地打印一下是这样的 image

显示uid和token是都有的,单独装一个wukongim的话,又是正常的

kangsange commented 11 months ago

82 /83 也出错 如下图: image

image

tangtaoit commented 11 months ago

82 /83 也出错 如下图: image

image

api端口是 8090