[GH-ISSUE #2604] http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 640ms #2078

Closed
opened 2026-05-05 13:20:11 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @tiagogbarbosa on GitHub (Oct 6, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2604

Bug Description

I have a server with 520 clients, but when the 521 connect i get '500 Server Response' on dashboard

frp shows
2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 5ms
2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 10ms
2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 20ms
2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 40ms
2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 5ms
2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 10ms
2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 20ms
2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 40ms
2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 80ms
2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 5ms
2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 10ms
2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 20ms
2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 40ms
2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 80ms
2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 160ms
2021/10/06 11:10:12 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 320ms
2021/10/06 11:10:12 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 640ms

How can i fix this?

frpc Version

0.37.1

frps Version

0.36.2

System Architecture

linux/amd64

Configurations

[common]

A literal address or host name for IPv6 must be enclosed

in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]: 80"

#bind_addr = 0.0.0.0
bind_port = 5454
allow_ports = 40000-44000

log_file = /tmp/frps.log
log_level = debug
log_max_days = 3

authentication_method = token
token = ********

dashboard_port = 7501
dashboard_user = ******
dashboard_pwd = *******

assets_dir = /**************/frps/dist

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @tiagogbarbosa on GitHub (Oct 6, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2604 ### Bug Description I have a server with 520 clients, but when the 521 connect i get '500 Server Response' on dashboard frp shows 2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 5ms 2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 10ms 2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 20ms 2021/10/06 11:09:41 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 40ms 2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 5ms 2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 10ms 2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 20ms 2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 40ms 2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 80ms 2021/10/06 11:09:58 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 5ms 2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 10ms 2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 20ms 2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 40ms 2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 80ms 2021/10/06 11:10:11 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 160ms 2021/10/06 11:10:12 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 320ms 2021/10/06 11:10:12 http: Accept error: accept tcp [::]:7501: accept4: too many open files; retrying in 640ms How can i fix this? ### frpc Version 0.37.1 ### frps Version 0.36.2 ### System Architecture linux/amd64 ### Configurations [common] # A literal address or host name for IPv6 must be enclosed # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]: 80" #bind_addr = 0.0.0.0 bind_port = 5454 allow_ports = 40000-44000 log_file = /tmp/frps.log log_level = debug log_max_days = 3 authentication_method = token token = ******** dashboard_port = 7501 dashboard_user = ****** dashboard_pwd = ******* assets_dir = /**************/frps/dist ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@tiagogbarbosa commented on GitHub (Oct 6, 2021):

2021/10/06 11:33:29 [W] [control.go:440] [f2632180a*******] new proxy [user_0149] error: no available port

<!-- gh-comment-id:936357214 --> @tiagogbarbosa commented on GitHub (Oct 6, 2021): 2021/10/06 11:33:29 [W] [control.go:440] [f2632180a*******] new proxy [user_0149] error: no available port
Author
Owner

@tiagogbarbosa commented on GitHub (Oct 6, 2021):

Fixed!

https://github.com/fatedier/frp/pull/2467/commits/2cfba84e472c1de3e556049081fb24b5ffcc45a4

Ty

<!-- gh-comment-id:936440540 --> @tiagogbarbosa commented on GitHub (Oct 6, 2021): Fixed! https://github.com/fatedier/frp/pull/2467/commits/2cfba84e472c1de3e556049081fb24b5ffcc45a4 Ty
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#2078
No description provided.