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

奇怪的客户端错误,连接不上 #895

Closed
semigodking opened this issue Aug 18, 2018 · 3 comments
Closed

奇怪的客户端错误,连接不上 #895

semigodking opened this issue Aug 18, 2018 · 3 comments

Comments

@semigodking
Copy link

请问这会是什么原因
'''
# ./frpc -c frpc.ini
2018/08/18 21:36:15 [I] [proxy_manager.go:300] proxy removed: []
2018/08/18 21:36:15 [I] [proxy_manager.go:310] proxy added: [ssh]
2018/08/18 21:36:15 [I] [proxy_manager.go:333] visitor removed: []
2018/08/18 21:36:15 [I] [proxy_manager.go:342] visitor added: []
2018/08/18 21:36:15 [W] [control.go:113] login to server failed: net.DialUDP: dial udp xx.xx.xx.xx:5005: errno -89

'''

What version of frp are you using (./frpc -v or ./frps -v)?

0.21.0
What operating system and processor architecture are you using (go env)?
Linux (none) 3.4.11-rt19 #1 SMP PREEMPT Mon Apr 17 18:55:57 CST 2017 mips GNU/Linux

Configures you used:
'''
# cat ./frpc.ini
[common]
server_addr = xx.xx.xx.xx
server_port = 5005
protocol = kcp
token = xxxxxxxx
login_fail_exit = false

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 23
remote_port = 40001
'''
Steps to reproduce the issue:

  1. 运行客户端即报错

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):
试过tcp 方式,一样的结果

Can you point out what caused this issue (optional)

@azalpy
Copy link

azalpy commented Aug 25, 2018

我也一样的问题:

pi@raspberrypi:/frp/frp_0.20.0_linux_arm$ ./frpc -c frpc.ini
2018/08/24 21:24:28 [I] [proxy_manager.go:300] proxy removed: []
2018/08/24 21:24:28 [I] [proxy_manager.go:310] proxy added: [ssh]
2018/08/24 21:24:28 [I] [proxy_manager.go:333] visitor removed: []
2018/08/24 21:24:28 [I] [proxy_manager.go:342] visitor added: []
2018/08/24 21:24:28 [E] [control.go:236] authorization timeout
2018/08/24 21:24:28 [W] [control.go:113] login to server failed: authorization timeout
authorization timeout
pi@raspberrypi:
/frp/frp_0.20.0_linux_arm$ uname -a
Linux raspberrypi 4.4.9+ #884 Fri May 6 17:25:37 BST 2016 armv6l GNU/Linux
pi@raspberrypi:~/frp/frp_0.20.0_linux_arm$ ./frpc -v
0.20.0


试过0.19, 0.20, 0.21都是一样的问题,但是在同个网里的另外一台机器则没问题。

opi@orangepipc:/frp/frp_0.19.1_linux_arm$ uname -a
Linux orangepipc 4.14.14-sunxi #1 SMP Thu Jan 25 12:20:57 CET 2018 armv7l GNU/Linux
opi@orangepipc:
/frp/frp_0.19.1_linux_arm$ ./frpc -v
0.19.1


我的两台机器CPU都是ARM,一个是Broadcom v6l, 一个是Allwinner v7l,而楼主的是mips系列,是否问题出在这里?建议开发者分析一下。。。

@kasuganosoras
Copy link

kasuganosoras commented Nov 24, 2018

留意看 Wiki

出现这种情况是因为 frps 所在服务器和 frpc 所在服务器的系统时间相差较大。如果不希望在身份校验时加入系统时间,可以将 frps 配置文件中的 authentication_timeout 设置为 0 来解决这个问题。

frps.ini 里写入以下内容

authentication_timeout = 0

就行了

@fatedier
Copy link
Owner

fatedier commented Dec 8, 2018

mips 相关的问题,基本上是 golang 跨平台的问题,frp 本身无法解决这一类问题。

@fatedier fatedier closed this as completed Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants