[GH-ISSUE #4022] [service.go:290] connect to server error: tls: first record does not look like a TLS handshake #3183

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

Originally created by @miws on GitHub (Feb 23, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4022

Bug Description

[service.go:290] connect to server error: tls: first record does not look like a TLS handshake

frpc Version

0.54.0

frps Version

0.44.0

System Architecture

CentOS Linux release 7.9.2009 (Core)

Configurations

frps

[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 7000
vhost_https_port = 7000
bind_udp_port = 7000
token = mytoken

frpc

[common]
log_level = trace
#log_file = /etc/frp/log_0.log
#token = the-force.cn&zdh
server_addr = myserverip
server_port = 7000
token = mytoken
tls_enable = true
login_fail_exit = false

Logs

frpc logs

WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
2024/02/23 23:24:53 [I] [root.go:142] start frpc service for config file [/etc/frp/frpc.ini]
2024/02/23 23:24:53 [I] [service.go:287] try to connect to server...
2024/02/23 23:24:53 [W] [service.go:290] connect to server error: session shutdown
2024/02/23 23:24:56 [I] [service.go:287] try to connect to server...
2024/02/23 23:24:56 [W] [service.go:290] connect to server error: session shutdown
2024/02/23 23:25:00 [I] [service.go:287] try to connect to server...
2024/02/23 23:25:00 [W] [service.go:290] connect to server error: tls: first record does not look like a TLS handshake
2024/02/23 23:25:10 [I] [service.go:287] try to connect to server...
2024/02/23 23:25:10 [W] [service.go:290] connect to server error: session shutdown

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 @miws on GitHub (Feb 23, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4022 ### Bug Description [service.go:290] connect to server error: tls: first record does not look like a TLS handshake ### frpc Version 0.54.0 ### frps Version 0.44.0 ### System Architecture CentOS Linux release 7.9.2009 (Core) ### Configurations frps ``` [common] bind_addr = 0.0.0.0 bind_port = 7000 vhost_http_port = 7000 vhost_https_port = 7000 bind_udp_port = 7000 token = mytoken ``` frpc ``` [common] log_level = trace #log_file = /etc/frp/log_0.log #token = the-force.cn&zdh server_addr = myserverip server_port = 7000 token = mytoken tls_enable = true login_fail_exit = false ``` ### Logs frpc logs ``` WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2024/02/23 23:24:53 [I] [root.go:142] start frpc service for config file [/etc/frp/frpc.ini] 2024/02/23 23:24:53 [I] [service.go:287] try to connect to server... 2024/02/23 23:24:53 [W] [service.go:290] connect to server error: session shutdown 2024/02/23 23:24:56 [I] [service.go:287] try to connect to server... 2024/02/23 23:24:56 [W] [service.go:290] connect to server error: session shutdown 2024/02/23 23:25:00 [I] [service.go:287] try to connect to server... 2024/02/23 23:25:00 [W] [service.go:290] connect to server error: tls: first record does not look like a TLS handshake 2024/02/23 23:25:10 [I] [service.go:287] try to connect to server... 2024/02/23 23:25:10 [W] [service.go:290] connect to server error: session shutdown ``` ### 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 - [X] Others
Author
Owner

@miws commented on GitHub (Feb 23, 2024):

transport.tls.enable = true
transport.tls.disableCustomTLSFirstByte = false
已解决

<!-- gh-comment-id:1961732378 --> @miws commented on GitHub (Feb 23, 2024): transport.tls.enable = true transport.tls.disableCustomTLSFirstByte = false 已解决
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#3183
No description provided.