Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.51.1 https2http not working #3541

Closed
11 tasks
hq-git opened this issue Jul 22, 2023 · 6 comments · Fixed by #3549
Closed
11 tasks

0.51.1 https2http not working #3541

hq-git opened this issue Jul 22, 2023 · 6 comments · Fixed by #3549
Labels

Comments

@hq-git
Copy link

hq-git commented Jul 22, 2023

Bug Description

After I upgraded frp from 0.49.0 to 0.51.1, the https2http not working, I got no response for most of the static files.
When I using local nginx + frp tcp plugin, it works well.

frpc Version

0.51.1

frps Version

0.51.1

System Architecture

linux/amd64

Configurations

[web_virtualbox]
type = https
custom_domains = virtualbox.demo.com
plugin = https2http
plugin_local_addr = 127.0.0.1:8080
use_compression = true
plugin_crt_path = /etc/letsencrypt/live/star.demo.com/fullchain.pem
plugin_key_path = /etc/letsencrypt/live/star.demo.com/privkey.pem
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp

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
@hq-git
Copy link
Author

hq-git commented Jul 22, 2023

downgrade the frpc to 0.49.0 (still using frps 0.51.1) can solve the issue

@hq-git
Copy link
Author

hq-git commented Jul 22, 2023

frpc 0.51.0 also works well, while using frpc 0.51.1 will get '400 Bad Request' in browser.

@fatedier
Copy link
Owner

logs

@hq-git
Copy link
Author

hq-git commented Jul 24, 2023

@fatedier

-------------------------------> frps.log

2023/07/24 23:50:47 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:50:47 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:08 [D] [control.go:519] [c15e3fc1e27a0724] receive heartbeat
2023/07/24 23:51:13 [D] [proxy.go:265] [c15e3fc1e27a0724] [web_virtualbox] join connections closed
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15865]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15865])
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15867]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15867])
2023/07/24 23:51:13 [D] [proxy.go:265] [c15e3fc1e27a0724] [web_virtualbox] join connections closed
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15866]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15866])
2023/07/24 23:51:13 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:13 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:13 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15868]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15868])
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15869]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15869])
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15870]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15870])
2023/07/24 23:51:13 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:13 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:13 [D] [proxy.go:265] [c15e3fc1e27a0724] [web_virtualbox] join connections closed
2023/07/24 23:51:13 [D] [proxy.go:265] [c15e3fc1e27a0724] [web_virtualbox] join connections closed
2023/07/24 23:51:13 [D] [control.go:245] [c15e3fc1e27a0724] new work connection registered
2023/07/24 23:51:13 [D] [vhost.go:245] [c15e3fc1e27a0724] [web_virtualbox] new request host [virtualbox.demo.cn] path [] httpUser []
2023/07/24 23:51:13 [I] [proxy.go:199] [c15e3fc1e27a0724] [web_virtualbox] get a user connection [117.129.4.151:15871]
2023/07/24 23:51:13 [D] [control.go:274] [c15e3fc1e27a0724] get work connection from pool
2023/07/24 23:51:13 [D] [proxy.go:126] [c15e3fc1e27a0724] [web_virtualbox] get a new work connection: [117.129.4.151:15699]
2023/07/24 23:51:13 [T] [proxy.go:235] [c15e3fc1e27a0724] [web_virtualbox] handler user tcp connection, use_encryption: false, use_compression: true
2023/07/24 23:51:13 [D] [proxy.go:255] [c15e3fc1e27a0724] [web_virtualbox] join connections, workConn(l[192.168.0.133:7000] r[117.129.4.151:15699]) userConn(l[192.168.0.133:8443] r[117.129.4.151:15871])

-------------------------------> frpc.log
2023/07/24 23:48:47 [D] [proxy_wrapper.go:255] [c15e3fc1e27a0724] [web_virtualbox] start a new work connection, localAddr: 192.168.50.110:57129 remoteAddr: x.x.x.x:7000
2023/07/24 23:48:47 [T] [proxy.go:135] [c15e3fc1e27a0724] [web_virtualbox] handle tcp work connection, use_encryption: false, use_compression: true
2023/07/24 23:48:47 [D] [proxy.go:186] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin: https2http
2023/07/24 23:48:47 [D] [proxy.go:188] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin finished
2023/07/24 23:48:47 [D] [proxy_wrapper.go:255] [c15e3fc1e27a0724] [web_virtualbox] start a new work connection, localAddr: 192.168.50.110:57129 remoteAddr: x.x.x.x:7000
2023/07/24 23:48:47 [T] [proxy.go:135] [c15e3fc1e27a0724] [web_virtualbox] handle tcp work connection, use_encryption: false, use_compression: true
2023/07/24 23:48:47 [D] [proxy.go:186] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin: https2http
2023/07/24 23:48:47 [D] [proxy.go:188] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin finished
2023/07/24 23:48:47 [D] [proxy_wrapper.go:255] [c15e3fc1e27a0724] [web_virtualbox] start a new work connection, localAddr: 192.168.50.110:57129 remoteAddr: x.x.x.x:7000
2023/07/24 23:48:47 [T] [proxy.go:135] [c15e3fc1e27a0724] [web_virtualbox] handle tcp work connection, use_encryption: false, use_compression: true
2023/07/24 23:48:47 [D] [proxy.go:186] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin: https2http
2023/07/24 23:48:47 [D] [proxy.go:188] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin finished
2023/07/24 23:48:47 [D] [proxy_wrapper.go:255] [c15e3fc1e27a0724] [web_virtualbox] start a new work connection, localAddr: 192.168.50.110:57129 remoteAddr: x.x.x.x:7000
2023/07/24 23:48:47 [T] [proxy.go:135] [c15e3fc1e27a0724] [web_virtualbox] handle tcp work connection, use_encryption: false, use_compression: true
2023/07/24 23:48:47 [D] [proxy.go:186] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin: https2http
2023/07/24 23:48:47 [D] [proxy.go:188] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin finished
2023/07/24 23:48:47 [D] [proxy_wrapper.go:255] [c15e3fc1e27a0724] [web_virtualbox] start a new work connection, localAddr: 192.168.50.110:57129 remoteAddr: x.x.x.x:7000
2023/07/24 23:48:47 [T] [proxy.go:135] [c15e3fc1e27a0724] [web_virtualbox] handle tcp work connection, use_encryption: false, use_compression: true
2023/07/24 23:48:47 [D] [proxy.go:186] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin: https2http
2023/07/24 23:48:47 [D] [proxy.go:188] [c15e3fc1e27a0724] [web_virtualbox] handle by plugin finished
2023/07/24 23:49:08 [D] [control.go:296] [c15e3fc1e27a0724] send heartbeat to server
2023/07/24 23:49:08 [D] [control.go:329] [c15e3fc1e27a0724] receive heartbeat from server

@fatedier
Copy link
Owner

Can not reproduce in my env and the logs seems no error.

@fatedier fatedier added the bug label Jul 25, 2023
@fatedier
Copy link
Owner

When making concurrent requests, it is possible to reproduce the issue. It requires time to investigate the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants