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

无法连接到服务端 #78

Open
likesrt opened this issue Dec 28, 2024 · 6 comments
Open

无法连接到服务端 #78

likesrt opened this issue Dec 28, 2024 · 6 comments

Comments

@likesrt
Copy link

likesrt commented Dec 28, 2024

使用官方frps 正常连接

使用frpp

time="2024-12-28T12:19:55Z" level=info msg="pull client config success, clientID: [Prefix1683.c.yuyan-M5Plus-Debian-DEV@2], serverID: [Prefix1683.s.yuyan-JZY-48-NAT]" func=github.com/VaalaCat/frp-panel/biz/client.PullConfig file="github.com/VaalaCat/frp-panel/biz/client/rpc_pull_config.go:112"
time="2024-12-28T12:19:55Z" level=info msg="start to pull client config, clientID: [Prefix1683.c.yuyan-M5Plus-Debian-DEV@4]" func=github.com/VaalaCat/frp-panel/biz/client.PullConfig file="github.com/VaalaCat/frp-panel/biz/client/rpc_pull_config.go:20"
time="2024-12-28T12:19:55Z" level=info msg="client [Prefix1683.c.yuyan-M5Plus-Debian-DEV@4] for server [Prefix1683.s.yuyan-v5net-HK-1H1G] already exists, update if need" func=github.com/VaalaCat/frp-panel/biz/client.PullConfig file="github.com/VaalaCat/frp-panel/biz/client/rpc_pull_config.go:97"
time="2024-12-28T12:19:55Z" level=info msg="pull client config success, clientID: [Prefix1683.c.yuyan-M5Plus-Debian-DEV@4], serverID: [Prefix1683.s.yuyan-v5net-HK-1H1G]" func=github.com/VaalaCat/frp-panel/biz/client.PullConfig file="github.com/VaalaCat/frp-panel/biz/client/rpc_pull_config.go:112"
time="2024-12-28T12:19:55Z" level=info msg="start to run client" func="github.com/VaalaCat/frp-panel/services/client.(*Client).Run.func3" file="github.com/VaalaCat/frp-panel/services/client/frpc_service.go:122"
time="2024-12-28T12:20:05Z" level=error msg="run client error: login to the server failed: i/o deadline reached. With loginFailExit enabled, no additional retries will be attempted" func="github.com/VaalaCat/frp-panel/services/client.(*Client).Run.func3" file="github.com/VaalaCat/frp-panel/services/client/frpc_service.go:124"

已确认 客户端可以ping通服务端 服务端 防火墙已关闭

@VaalaCat
Copy link
Owner

提供一下server的日志呢

@likesrt
Copy link
Author

likesrt commented Dec 29, 2024

提供一下server的日志呢

目前仅测试到一台hk服务器出现该问题没有解决,所以已经解决服务器。其他服务端正常 暂时关闭

@likesrt likesrt closed this as completed Dec 29, 2024
@likesrt
Copy link
Author

likesrt commented Jan 13, 2025

我再次出现了该问题 防火墙开放 本地访问无问题 客户端无法连接到服务端

测试本地客户端可以联通服务端端口

image

server日志

time="2025-01-13T15:25:14Z" level=info msg="client get a server message, origin is: [event:EVENT_PING  client_id:\"Prefix1683.s.yuyan-hudi-HK\"  session_id:\"36fe0191-9bb5-4cd7-88a2-90faefde5585\"]" func=github.com/VaalaCat/frp-panel/biz/server.HandleServerMessage file="github.com/VaalaCat/frp-panel/biz/server/rpc_handler.go:23"
time="2025-01-13T15:25:14Z" level=info msg="client resp received: Prefix1683.s.yuyan-hudi-HK" func=github.com/VaalaCat/frp-panel/services/rpcclient.RunRPCClient.func1 file="github.com/VaalaCat/frp-panel/services/rpcclient/rpc_handler.go:95"
time="2025-01-13T15:25:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:25:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:26:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:26:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:26:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:26:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:27:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:27:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:27:28Z" level=info msg="client get a server message, origin is: [event:EVENT_PING  client_id:\"Prefix1683.s.yuyan-hudi-HK\"  session_id:\"e004b86f-0524-435b-b457-1aa241c7fb62\"]" func=github.com/VaalaCat/frp-panel/biz/server.HandleServerMessage file="github.com/VaalaCat/frp-panel/biz/server/rpc_handler.go:23"
time="2025-01-13T15:27:28Z" level=info msg="client resp received: Prefix1683.s.yuyan-hudi-HK" func=github.com/VaalaCat/frp-panel/services/rpcclient.RunRPCClient.func1 file="github.com/VaalaCat/frp-panel/services/rpcclient/rpc_handler.go:95"
time="2025-01-13T15:27:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:27:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:28:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:28:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:28:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:28:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:29:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:29:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:29:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:29:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:30:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:30:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:30:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:30:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:30:50Z" level=info msg="client get a server message, origin is: [event:EVENT_PING  client_id:\"Prefix1683.s.yuyan-hudi-HK\"  session_id:\"63811725-1e7a-4bbf-893b-3e8a598c12ab\"]" func=github.com/VaalaCat/frp-panel/biz/server.HandleServerMessage file="github.com/VaalaCat/frp-panel/biz/server/rpc_handler.go:23"
time="2025-01-13T15:30:50Z" level=info msg="client resp received: Prefix1683.s.yuyan-hudi-HK" func=github.com/VaalaCat/frp-panel/services/rpcclient.RunRPCClient.func1 file="github.com/VaalaCat/frp-panel/services/rpcclient/rpc_handler.go:95"
time="2025-01-13T15:31:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:31:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:31:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:31:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:32:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:32:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:32:31Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:32:31Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"
time="2025-01-13T15:33:01Z" level=info msg="start to pull server config, serverID: [Prefix1683.s.yuyan-hudi-HK]" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:17"
time="2025-01-13T15:33:01Z" level=info msg="server Prefix1683.s.yuyan-hudi-HK config not changed" func=github.com/VaalaCat/frp-panel/biz/server.PullConfig file="github.com/VaalaCat/frp-panel/biz/server/rpc_pull_config.go:54"

cilent日志

time="2025-01-13T23:34:40+08:00" level=info msg="client get a server message, origin is: [event:EVENT_UPDATE_FRPC client_id:\"[CLIENT_ID]\" session_id:\"[SESSION_ID]\" data:\"\\n\\\"[CLIENT_ID]@10\\x12\\x1a[SERVER_ID]\\x1a\\xe6\\x07{\\\"version\\\":\\\"\\\",\\\"auth\\\":{\\\"method\\\":\\\"token\\\",\\\"oidc\\\":{}},\\\"user\\\":\\\"[USER]\\\",\\\"serverAddr\\\":\\\"[SERVER_ADDR]\\\",\\\"serverPort\\\":10700,\\\"natHoleStunServer\\\":\\\"[STUN_SERVER]\\\",\\\"loginFailExit\\\":true,\\\"log\\\":{\\\"to\\\":\\\"console\\\",\\\"level\\\":\\\"info\\\",\\\"maxDays\\\":3},\\\"webServer\\\":{\\\"addr\\\":\\\"127.0.0.1\\\"},\\\"transport\\\":{\\\"protocol\\\":\\\"tcp\\\",\\\"dialServerTimeout\\\":10,\\\"dialServerKeepalive\\\":7200,\\\"poolCount\\\":1,\\\"tcpMux\\\":true,\\\"tcpMuxKeepaliveInterval\\\":30,\\\"quic\\\":{\\\"keepalivePeriod\\\":10,\\\"maxIdleTimeout\\\":30,\\\"maxIncomingStreams\\\":100000},\\\"heartbeatInterval\\\":-1,\\\"heartbeatTimeout\\\":-1,\\\"tls\\\":{\\\"enable\\\":true,\\\"disableCustomTLSFirstByte\\\":true}},\\\"udpPacketSize\\\":1500,\\\"metadatas\\\":{\\\"token\\\":\\\"[TOKEN]\\\",\\\"x-vaala-frp-client-id\\\":\\\"[CLIENT_ID]@10\\\"},\\\"proxies\\\":[{\\\"name\\\":\\\"[PROXY_NAME]\\\",\\\"type\\\":\\\"http\\\",\\\"transport\\\":{\\\"bandwidthLimit\\\":\\\"\\\"},\\\"loadBalancer\\\":{\\\"group\\\":\\\"\\\"},\\\"healthCheck\\\":{\\\"type\\\":\\\"\\\",\\\"intervalSeconds\\\":0},\\\"localIP\\\":\\\"127.0.0.1\\\",\\\"localPort\\\":38090,\\\"plugin\\\":null,\\\"subdomain\\\":\\\"test\\\",\\\"requestHeaders\\\":{},\\\"responseHeaders\\\":{}}]}\"]" func=github.com/VaalaCat/frp-panel/biz/client.HandleServerMessage file="/home/runner/work/frp-panel/frp-panel/biz/client/rpc_handler.go:23"
time="2025-01-13T23:34:40+08:00" level=info msg="update frpc, req: [client_id:\"[CLIENT_ID]@10\" server_id:\"[SERVER_ID]\" config:\"{\\\"version\\\":\\\"\\\",\\\"auth\\\":{\\\"method\\\":\\\"token\\\",\\\"oidc\\\":{}},\\\"user\\\":\\\"[USER]\\\",\\\"serverAddr\\\":\\\"[SERVER_ADDR]\\\",\\\"serverPort\\\":10700,\\\"natHoleStunServer\\\":\\\"[STUN_SERVER]\\\",\\\"loginFailExit\\\":true,\\\"log\\\":{\\\"to\\\":\\\"console\\\",\\\"level\\\":\\\"info\\\",\\\"maxDays\\\":3},\\\"webServer\\\":{\\\"addr\\\":\\\"127.0.0.1\\\"},\\\"transport\\\":{\\\"protocol\\\":\\\"tcp\\\",\\\"dialServerTimeout\\\":10,\\\"dialServerKeepalive\\\":7200,\\\"poolCount\\\":1,\\\"tcpMux\\\":true,\\\"tcpMuxKeepaliveInterval\\\":30,\\\"quic\\\":{\\\"keepalivePeriod\\\":10,\\\"maxIdleTimeout\\\":30,\\\"maxIncomingStreams\\\":100000},\\\"heartbeatInterval\\\":-1,\\\"heartbeatTimeout\\\":-1,\\\"tls\\\":{\\\"enable\\\":true,\\\"disableCustomTLSFirstByte\\\":true}},\\\"udpPacketSize\\\":1500,\\\"metadatas\\\":{\\\"token\\\":\\\"[TOKEN]\\\",\\\"x-vaala-frp-client-id\\\":\\\"[CLIENT_ID]@10\\\"},\\\"proxies\\\":[{\\\"name\\\":\\\"[PROXY_NAME]\\\",\\\"type\\\":\\\"http\\\",\\\"transport\\\":{\\\"bandwidthLimit\\\":\\\"\\\"},\\\"loadBalancer\\\":{\\\"group\\\":\\\"\\\"},\\\"healthCheck\\\":{\\\"type\\\":\\\"\\\",\\\"intervalSeconds\\\":0},\\\"localIP\\\":\\\"127.0.0.1\\\",\\\"localPort\\\":38090,\\\"plugin\\\":null,\\\"subdomain\\\":\\\"test\\\",\\\"requestHeaders\\\":{},\\\"responseHeaders\\\":{}}]}\"]" func=github.com/VaalaCat/frp-panel/biz/client.UpdateFrpcHander file="/home/runner/work/frp-panel/frp-panel/biz/client/update_tunnel.go:15"
time="2025-01-13T23:34:40+08:00" level=warning msg="client common config not changed" func=github.com/VaalaCat/frp-panel/biz/client.UpdateFrpcHander file="/home/runner/work/frp-panel/frp-panel/biz/client/update_tunnel.go:28"
time="2025-01-13T23:34:40+08:00" level=info msg="update client, id: [CLIENT_ID]@10] success, running" func=github.com/VaalaCat/frp-panel/biz/client.UpdateFrpcHander file="/home/runner/work/frp-panel/frp-panel/biz/client/update_tunnel.go:36"
time="2025-01-13T23:34:40+08:00" level=info msg="client resp received: [CLIENT_ID]" func=github.com/VaalaCat/frp-panel/services/rpcclient.RunRPCClient.func1 file="/home/runner/work/frp-panel/frp-panel/services/rpcclient/rpc_handler.go:95"
time="2025-01-13T23:34:41+08:00" level=info msg="client get a server message, origin is: [event:EVENT_GET_PROXY_INFO client_id:\"[CLIENT_ID]\" session_id:\"[SESSION_ID]\" data:\"\\n\\\"[CLIENT_ID]@10\\x12\\x1a[SERVER_ID]\\x1a\\x13[PROXY_NAME]\"]" func=github.com/VaalaCat/frp-panel/biz/client.HandleServerMessage file="/home/runner/work/frp-panel/frp-panel/biz/client/rpc_handler.go:23"
time="2025-01-13T23:34:41+08:00" level=error msg="cannot get proxy status, client: [CLIENT_ID]@10], server: [SERVER_ID], proxy name: [PROXY_NAME]" func=github.com/VaalaCat/frp-panel/biz/client.GetProxyConfig file="/home/runner/work/frp-panel/frp-panel/biz/client/get_proxy_info.go:28"
time="2025-01-13T23:34:41+08:00" level=error msg="handler error" func="github.com/VaalaCat/frp-panel/common.WrapperServerMsg[...]" file="/home/runner/work/frp-panel/frp-panel/common/helper.go:52" error="cannot get proxy status"
time="2025-01-13T23:34:41+08:00" level=info msg="client resp received: [CLIENT_ID]" func=github.com/VaalaCat/frp-panel/services/rpcclient.RunRPCClient.func1 file="/home/runner/work/frp-panel/frp-panel/services/rpcclient/rpc_handler.go:95"
time="2025-01-13T23:34:49+08:00" level=error msg="run client error: login to the server failed: i/o deadline reached. With loginFailExit enabled, no additional retries will be attempted" func="github.com/VaalaCat/frp-panel/services/client.(*Client).Run.func3" file="/home/runner/work/frp-panel/frp-panel/services/client/frpc_service.go:124"

@likesrt likesrt reopened this Jan 13, 2025
@VaalaCat
Copy link
Owner

@likesrt 看起来是连接时被阻断了一下,然后没有重复连接。试试在

  1. 在服务端中配置QUIC协议端口(是UDP,记得转发docker对应端口udp和打开安全组)
  2. "编辑客户端"->选择客户端和服务端->协议修改为quic

试试呢

@likesrt
Copy link
Author

likesrt commented Jan 25, 2025

@likesrt 看起来是连接时被阻断了一下,然后没有重复连接。试试在

  1. 在服务端中配置QUIC协议端口(是UDP,记得转发docker对应端口udp和打开安全组)
  2. "编辑客户端"->选择客户端和服务端->协议修改为quic

试试呢

貌似还是一样 客户端还是
time="2025-01-25T06:35:41Z" level=error msg="run client error: login to the server failed: deadline exceeded. With loginFailExit enabled, no additional retries will be attempted" func="github.com/VaalaCat/frp-panel/services/client.(*Client).Run.func3" file="github.com/VaalaCat/frp-panel/services/client/frpc_service.go:124"

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

2 participants