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

arm64架构的linux系统部署cat3.0时2280端口没有启动 #2342

Open
hillangle opened this issue Jul 26, 2024 · 8 comments
Open

arm64架构的linux系统部署cat3.0时2280端口没有启动 #2342

hillangle opened this issue Jul 26, 2024 · 8 comments

Comments

@hillangle
Copy link

如题,想确认一下cat是否支持arm64架构的linux系统部署,目前的部署状态是cat服务可正常启动,但是由于链接不上2280,导致服务自动停止

@qmwu2000
Copy link
Member

qmwu2000 commented Jul 26, 2024 via email

@hillangle
Copy link
Author

我没有试过,你自己可以查查错误日志,为什么系统侦听不了 2280 端口,正常情况下不应该有这个问题的。

On Jul 26, 2024, at 10:57, hillangle @.***> wrote: 如题,想确认一下cat是否支持arm64架构的linux系统部署,目前的部署状态是cat服务可正常启动,但是由于链接不上2280,导致服务自动停止 — Reply to this email directly, view it on GitHub <#2342>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE77OGGYCS7RYZIMKKJ3ZOG3JHAVCNFSM6AAAAABLPV4VTGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZTCMZRGI2DCOI. You are receiving this because you are subscribed to this thread.

问题是没有看到任何报错,只有提示服务连接不成功
image

@qmwu2000
Copy link
Member

qmwu2000 commented Jul 26, 2024 via email

@hillangle
Copy link
Author

看起来好像是 server 还没有绑定好端口,channel manager 就去连接了而不成功。后面应该还有重试逻辑吧?除非 server 一直没有绑定成功

On Jul 26, 2024, at 11:30, hillangle @.> wrote: 我没有试过,你自己可以查查错误日志,为什么系统侦听不了 2280 端口,正常情况下不应该有这个问题的。 … x-msg://9/# On Jul 26, 2024, at 10:57, hillangle @.> wrote: 如题,想确认一下cat是否支持arm64架构的linux系统部署,目前的部署状态是cat服务可正常启动,但是由于链接不上2280,导致服务自动停止 — Reply to this email directly, view it on GitHub <#2342 <#2342>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE77OGGYCS7RYZIMKKJ3ZOG3JHAVCNFSM6AAAAABLPV4VTGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZTCMZRGI2DCOI. You are receiving this because you are subscribed to this thread. 问题是没有看到任何报错,只有提示服务连接不成功 image.png (view on web) https://github.com/user-attachments/assets/38fd82ed-cc94-4802-bc96-6e2fc8fe1b83 — Reply to this email directly, view it on GitHub <#2342 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE76BKJLLUZ77LXPZ37TZOG7ERAVCNFSM6AAAAABLPV4VTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRHA4TGOBTGY. You are receiving this because you commented.

server绑定端口在哪里配置?我在appdata文件夹里的server.xml里面配置了remote-servers
image
18003是cat的服务端口,是指这里么?

@qmwu2000
Copy link
Member

qmwu2000 commented Jul 26, 2024 via email

@hillangle
Copy link
Author

Server 默认会自动绑定到 2280 端口,IP 地址是自动探测的。有一种可能是探测的 IP 地址不对引起了。 你可以用命令 'netstat -na | grep LISTEN | grep 2280’ 看看,到底CAT 绑定到了哪个 IP 地址。

On Jul 26, 2024, at 11:58, hillangle @.***> wrote: 看起来好像是 server 还没有绑定好端口,channel manager 就去连接了而不成功。后面应该还有重试逻辑吧?除非 server 一直没有绑定成功 … x-msg://10/# On Jul 26, 2024, at 11:30, hillangle @.> wrote: 我没有试过,你自己可以查查错误日志,为什么系统侦听不了 2280 端口,正常情况下不应该有这个问题的。 … x-msg://9/# On Jul 26, 2024, at 10:57, hillangle @.> wrote: 如题,想确认一下cat是否支持arm64架构的linux系统部署,目前的部署状态是cat服务可正常启动,但是由于链接不上2280,导致服务自动停止 — Reply to this email directly, view it on GitHub <#2342 <#2342> <#2342 <#2342>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE77OGGYCS7RYZIMKKJ3ZOG3JHAVCNFSM6AAAAABLPV4VTGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZTCMZRGI2DCOI. You are receiving this because you are subscribed to this thread. 问题是没有看到任何报错,只有提示服务连接不成功 image.png (view on web) https://github.com/user-attachments/assets/38fd82ed-cc94-4802-bc96-6e2fc8fe1b83 — Reply to this email directly, view it on GitHub <#2342 (comment) <#2342 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE76BKJLLUZ77LXPZ37TZOG7ERAVCNFSM6AAAAABLPV4VTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRHA4TGOBTGY. You are receiving this because you commented. server绑定端口在哪里配置?我在appdata文件夹里的server.xml里面配置了remote-servers image.png (view on web) https://github.com/user-attachments/assets/d3919bf0-5a9b-4618-8e1e-a8d958c12bcf 18003是cat的服务端口,是指这里么? — Reply to this email directly, view it on GitHub <#2342 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE75VDK7PU347WTQIOV3ZOHCN5AVCNFSM6AAAAABLPV4VTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRHEYTGMRSHE. You are receiving this because you commented.

我好像说漏了一个关键异常,我这边cat服务启动之后2280的端口就没有被占用,但是一直没找到2280端口的服务没有启动起来的原因

@qmwu2000
Copy link
Member

qmwu2000 commented Jul 26, 2024 via email

@jack-wqing
Copy link

如果你是mac[arm64] 我的场景
在mac系统[arm64]搭建的虚拟机部署Linux系统,然后搭建Cat集群
Cat中通过系统变量os.name来简单的判断是否为Linux开头,从而选择Netty中的NIO或Epoll模式;在mac[arm64]部署的Linux系统不支持Epoll所致端口2280起不来
解决:可以简单的修改com.dianping.cat.analysis.TcpSocketReceiver 中boolean linux = getOSMatches("Linux") || getOSMatches("LINUX");
这句代码的判断,手动选择Netty的IO模型

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

3 participants