[GH-ISSUE #4622] login to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted #3650

Closed
opened 2026-05-05 14:20:37 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @rutie1978 on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4622

Describe the feature request

故障描述:
1.frps、frpc都是用docker安装
2.frps 正常启动,但dashboard 一直无法连接,日志如下:
2025-01-05 14:50:49.371 [I] [frps/root.go:105] frps uses config file: /etc/frp/frps.toml
2025-01-05 14:50:49.550 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:7000
2025-01-05 14:50:49.550 [I] [server/service.go:305] http service listen on 0.0.0.0:40800
2025-01-05 14:50:49.550 [I] [server/service.go:319] https service listen on 0.0.0.0:40443
2025-01-05 14:50:49.550 [I] [frps/root.go:114] frps started successfully
2025-01-05 14:50:49.550 [I] [server/service.go:351] dashboard listen on 127.0.0.1:7500

3.frpc 一直无法启动运行,日志如下:
[0mlogin to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted-- | --
stdout | 2025-01-05 12:56:42.410 [I] [sub/root.go:160] frpc service for config file [/etc/frp/frpc.toml] stopped
| stdout | 2025-01-05 12:56:42.410 [W] [client/service.go:298] connect to server error: dial tcp 0.0.0.0:7000: connect: connection refused
| stdout | 2025-01-05 12:56:42.410 [I] [client/service.go:295] try to connect to server...
2 | stdout | 2025-01-05 12:56:42.408 [I] [sub/root.go:142] start frpc service for config file [/etc/frp/frpc.toml]

公网服务器ECS 安全组、防火墙均已放行7000、7500、40800、40443端口

服务器公网IP,阿里云ECS frps.toml配置:

bindAddr = "0.0.0.0"
bindPort = 7000

vhostHTTPPort = 40800
vhostHTTPSPort = 40443

auth.method = "token"
auth.token = "token"

webServer.addr = "127.0.0.1"
webServer.port = 7500
webServer.user = "frps_user"
webServer.password = "pwd"

客户端群晖NAS,frpc.toml如下:
[common]
serverAddr = "0.0.0.0"
serverPort = 7000
auth.token = "token"
#log.to = "/docker/frpc_ali/log"

proxies
name = "web"
type = "http"
localPort = 82
customDomains = [""]
subdomain = "
*"

frpc Version

frp_0.61.1

frps Version

frp_0.61.1

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @rutie1978 on GitHub (Jan 6, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4622 ### Describe the feature request **故障描述:** 1.frps、frpc都是用docker安装 2.frps 正常启动,但dashboard 一直无法连接,日志如下: 2025-01-05 14:50:49.371 [I] [frps/root.go:105] frps uses config file: /etc/frp/frps.toml 2025-01-05 14:50:49.550 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:7000 2025-01-05 14:50:49.550 [I] [server/service.go:305] http service listen on 0.0.0.0:40800 2025-01-05 14:50:49.550 [I] [server/service.go:319] https service listen on 0.0.0.0:40443 2025-01-05 14:50:49.550 [I] [frps/root.go:114] frps started successfully 2025-01-05 14:50:49.550 [I] [server/service.go:351] dashboard listen on 127.0.0.1:7500 3.frpc 一直无法启动运行,日志如下: [0mlogin to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted-- | -- stdout | 2025-01-05 12:56:42.410 [I] [sub/root.go:160] frpc service for config file [/etc/frp/frpc.toml] stopped | stdout | 2025-01-05 12:56:42.410 [W] [client/service.go:298] connect to server error: dial tcp 0.0.0.0:7000: connect: connection refused | stdout | 2025-01-05 12:56:42.410 [I] [client/service.go:295] try to connect to server... 2 | stdout | 2025-01-05 12:56:42.408 [I] [sub/root.go:142] start frpc service for config file [/etc/frp/frpc.toml] 公网服务器ECS 安全组、防火墙均已放行7000、7500、40800、40443端口 **服务器公网IP,阿里云ECS frps.toml配置:** bindAddr = "0.0.0.0" bindPort = 7000 vhostHTTPPort = 40800 vhostHTTPSPort = 40443 auth.method = "token" auth.token = "token" webServer.addr = "127.0.0.1" webServer.port = 7500 webServer.user = "frps_user" webServer.password = "pwd" **客户端群晖NAS,frpc.toml如下:** [common] serverAddr = "0.0.0.0" serverPort = 7000 auth.token = "token" #log.to = "/docker/frpc_ali/log" [[proxies]] name = "web" type = "http" localPort = 82 customDomains = ["***"] subdomain = "****" **frpc Version** frp_0.61.1 **frps Version** frp_0.61.1 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jan 6, 2025):

connect to server error: dial tcp 0.0.0.0:7000: connect: connection refused

Network issue.

<!-- gh-comment-id:2572210318 --> @fatedier commented on GitHub (Jan 6, 2025): > connect to server error: dial tcp 0.0.0.0:7000: connect: connection refused Network issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3650
No description provided.