[GH-ISSUE #3876] failed after connect success on linux/arm64 #3080

Closed
opened 2026-05-05 13:59:41 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @axolo on GitHub (Dec 21, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3876

Bug Description

failed after connect success on linux/arm64

frpc Version

0.53.0

frps Version

0.53.0

System Architecture

linux/arm64

Configurations

{
  "serverAddr": "frp.server",
  "serverPort": 7000,
    "auth": {
      "method": "token",
      "token": "token"
    },
    "proxies": [{
      "name": "jhit-deepin",
      "type": "tcp",
      "localIP": "127.0.0.1",
      "localPort": 22,
      "remotePort": 50022
    }]
}

Logs

/etc/frp$ sudo ./frpc -c frpc.json

2023/12/21 19:02:10 [I] [root.go:141] start frpc service for config file [frpc.json]
2023/12/21 19:02:10 [I] [service.go:288] try to connect to server...
2023/12/21 19:02:15 [I] [service.go:279] [d70a69d35a2e3cf8] login to server success, get run id [d70a69d35a2e3cf8]
2023/12/21 19:02:15 [I] [proxy_manager.go:173] [d70a69d35a2e3cf8] proxy added: [jhit-deepin]
2023/12/21 19:02:15 [I] [service.go:288] [d70a69d35a2e3cf8] try to connect to server...
2023/12/21 19:02:16 [I] [control.go:169] [d70a69d35a2e3cf8] [jhit-deepin] start proxy success
2023/12/21 19:02:21 [I] [service.go:279] [d70a69d35a2e3cf8] login to server success, get run id [d70a69d35a2e3cf8]
2023/12/21 19:02:21 [I] [proxy_manager.go:173] [d70a69d35a2e3cf8] proxy added: [jhit-deepin]
2023/12/21 19:02:21 [I] [panic.go:884] frpc service for config file [frpc.json] stopped
panic: close of closed channel

goroutine 1 [running]:
github.com/fatedier/frp/client.(*Service).loopLoginUntilSuccess.func1()
        github.com/fatedier/frp/client/service.go:331 +0x498
github.com/fatedier/frp/pkg/util/wait.BackoffUntil(0x40001f99e0, {0x862b40, 0x40000e9710}, 0x1, 0x4000098420)
        github.com/fatedier/frp/pkg/util/wait/backoff.go:135 +0xe0
github.com/fatedier/frp/client.(*Service).loopLoginUntilSuccess(0x4000032460, 0x2540be400, 0x1)
        github.com/fatedier/frp/client/service.go:336 +0x164
github.com/fatedier/frp/client.(*Service).Run(0x4000032460, {0x868a10?, 0x40000340e0?})
        github.com/fatedier/frp/client/service.go:166 +0xf8
github.com/fatedier/frp/cmd/frpc/sub.startService(0x40001b8840, {0x4000189cf0, 0x1, 0x1}, {0xc99300, 0x0, 0x0}, {0xfffff4ffe47f, 0x9})
        github.com/fatedier/frp/cmd/frpc/sub/root.go:159 +0x2a0
github.com/fatedier/frp/cmd/frpc/sub.runClient({0xfffff4ffe47f, 0x9})
        github.com/fatedier/frp/cmd/frpc/sub/root.go:129 +0x138
github.com/fatedier/frp/cmd/frpc/sub.glob..func2(0xc57fc0?, {0x6be840?, 0x2?, 0x2?})
        github.com/fatedier/frp/cmd/frpc/sub/root.go:69 +0x4c
github.com/spf13/cobra.(*Command).execute(0xc57fc0, {0x4000030190, 0x2, 0x2})
        github.com/spf13/cobra@v1.8.0/command.go:983 +0x7b0
github.com/spf13/cobra.(*Command).ExecuteC(0xc57fc0)
        github.com/spf13/cobra@v1.8.0/command.go:1115 +0x364
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/fatedier/frp/cmd/frpc/sub.Execute()
        github.com/fatedier/frp/cmd/frpc/sub/root.go:100 +0x24
main.main()
        github.com/fatedier/frp/cmd/frpc/main.go:23 +0x1c

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 @axolo on GitHub (Dec 21, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3876 ### Bug Description failed after connect success on linux/arm64 ### frpc Version 0.53.0 ### frps Version 0.53.0 ### System Architecture linux/arm64 ### Configurations ```json { "serverAddr": "frp.server", "serverPort": 7000, "auth": { "method": "token", "token": "token" }, "proxies": [{ "name": "jhit-deepin", "type": "tcp", "localIP": "127.0.0.1", "localPort": 22, "remotePort": 50022 }] } ``` ### Logs ``` /etc/frp$ sudo ./frpc -c frpc.json 2023/12/21 19:02:10 [I] [root.go:141] start frpc service for config file [frpc.json] 2023/12/21 19:02:10 [I] [service.go:288] try to connect to server... 2023/12/21 19:02:15 [I] [service.go:279] [d70a69d35a2e3cf8] login to server success, get run id [d70a69d35a2e3cf8] 2023/12/21 19:02:15 [I] [proxy_manager.go:173] [d70a69d35a2e3cf8] proxy added: [jhit-deepin] 2023/12/21 19:02:15 [I] [service.go:288] [d70a69d35a2e3cf8] try to connect to server... 2023/12/21 19:02:16 [I] [control.go:169] [d70a69d35a2e3cf8] [jhit-deepin] start proxy success 2023/12/21 19:02:21 [I] [service.go:279] [d70a69d35a2e3cf8] login to server success, get run id [d70a69d35a2e3cf8] 2023/12/21 19:02:21 [I] [proxy_manager.go:173] [d70a69d35a2e3cf8] proxy added: [jhit-deepin] 2023/12/21 19:02:21 [I] [panic.go:884] frpc service for config file [frpc.json] stopped panic: close of closed channel goroutine 1 [running]: github.com/fatedier/frp/client.(*Service).loopLoginUntilSuccess.func1() github.com/fatedier/frp/client/service.go:331 +0x498 github.com/fatedier/frp/pkg/util/wait.BackoffUntil(0x40001f99e0, {0x862b40, 0x40000e9710}, 0x1, 0x4000098420) github.com/fatedier/frp/pkg/util/wait/backoff.go:135 +0xe0 github.com/fatedier/frp/client.(*Service).loopLoginUntilSuccess(0x4000032460, 0x2540be400, 0x1) github.com/fatedier/frp/client/service.go:336 +0x164 github.com/fatedier/frp/client.(*Service).Run(0x4000032460, {0x868a10?, 0x40000340e0?}) github.com/fatedier/frp/client/service.go:166 +0xf8 github.com/fatedier/frp/cmd/frpc/sub.startService(0x40001b8840, {0x4000189cf0, 0x1, 0x1}, {0xc99300, 0x0, 0x0}, {0xfffff4ffe47f, 0x9}) github.com/fatedier/frp/cmd/frpc/sub/root.go:159 +0x2a0 github.com/fatedier/frp/cmd/frpc/sub.runClient({0xfffff4ffe47f, 0x9}) github.com/fatedier/frp/cmd/frpc/sub/root.go:129 +0x138 github.com/fatedier/frp/cmd/frpc/sub.glob..func2(0xc57fc0?, {0x6be840?, 0x2?, 0x2?}) github.com/fatedier/frp/cmd/frpc/sub/root.go:69 +0x4c github.com/spf13/cobra.(*Command).execute(0xc57fc0, {0x4000030190, 0x2, 0x2}) github.com/spf13/cobra@v1.8.0/command.go:983 +0x7b0 github.com/spf13/cobra.(*Command).ExecuteC(0xc57fc0) github.com/spf13/cobra@v1.8.0/command.go:1115 +0x364 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.8.0/command.go:1039 github.com/fatedier/frp/cmd/frpc/sub.Execute() github.com/fatedier/frp/cmd/frpc/sub/root.go:100 +0x24 main.main() github.com/fatedier/frp/cmd/frpc/main.go:23 +0x1c ``` ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
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#3080
No description provided.