[GH-ISSUE #4273] login to the server failed: session shutdown. #3368

Closed
opened 2026-05-05 14:10:22 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @bowencool on GitHub (Jun 9, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4273

Bug Description

frpc 连接不上。

frpc Version

0.58.1

frps Version

0.58.1

System Architecture

linux/amd64

Configurations

server 端启动没问题:
frps.toml

bindPort = x
vhostHTTPPort = x
vhostHTTPSPort = x

客户端启动总是报错,不知道为啥:
frpc.toml

serverAddr = "xx"
serverPort = xx

[[proxies]]
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

Logs

2024-06-09 22:44:14.040 [I] [sub/root.go:142] start frpc service for config file [./frpc.toml]
2024-06-09 22:44:14.040 [I] [client/service.go:294] try to connect to server...
2024-06-09 22:44:19.043 [W] [client/service.go:297] connect to server error: session shutdown
2024-06-09 22:44:19.043 [I] [sub/root.go:160] frpc service for config file [./frpc.toml] stopped
login to the server failed: session shutdown. With loginFailExit enabled, no additional retries will be attempted

一开始明明是对的,我就尝试加了个 token,然后就连不上了,还原配置也连不上了。

两端都重启过,甚至都删掉 frp_0.58.1_linux_amd64 目录,都重新配置 port 也没成功连接

我快要抓狂了,明明就这几行配置,咋过了几分钟就连不上了呢,实在是看不出来了,帮帮我

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 @bowencool on GitHub (Jun 9, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4273 ### Bug Description frpc 连接不上。 ### frpc Version 0.58.1 ### frps Version 0.58.1 ### System Architecture linux/amd64 ### Configurations server 端启动没问题: frps.toml ``` bindPort = x vhostHTTPPort = x vhostHTTPSPort = x ``` 客户端启动总是报错,不知道为啥: frpc.toml ``` serverAddr = "xx" serverPort = xx [[proxies]] name = "test-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ``` ### Logs ``` 2024-06-09 22:44:14.040 [I] [sub/root.go:142] start frpc service for config file [./frpc.toml] 2024-06-09 22:44:14.040 [I] [client/service.go:294] try to connect to server... 2024-06-09 22:44:19.043 [W] [client/service.go:297] connect to server error: session shutdown 2024-06-09 22:44:19.043 [I] [sub/root.go:160] frpc service for config file [./frpc.toml] stopped login to the server failed: session shutdown. With loginFailExit enabled, no additional retries will be attempted ``` 一开始明明是对的,我就尝试加了个 token,然后就连不上了,还原配置也连不上了。 两端都重启过,甚至都删掉 `frp_0.58.1_linux_amd64` 目录,都重新配置 port 也没成功连接 我快要抓狂了,明明就这几行配置,咋过了几分钟就连不上了呢,实在是看不出来了,帮帮我 ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner
<!-- gh-comment-id:2157716900 --> @xqzr commented on GitHub (Jun 10, 2024): https://github.com/fatedier/frp/issues/3778#issuecomment-1817034440
Author
Owner

@bowencool commented on GitHub (Jun 10, 2024):

出去玩了一天,回来没有改任何配置,自己就好了。。。

一直用 server ip 连接的,域名也早备案了而且没有过期。可能是外部因素吧。

<!-- gh-comment-id:2158877618 --> @bowencool commented on GitHub (Jun 10, 2024): 出去玩了一天,回来没有改任何配置,自己就好了。。。 一直用 server ip 连接的,域名也早备案了而且没有过期。可能是外部因素吧。
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#3368
No description provided.