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

frpc cannot connect, log as "send Login request to plugin error" #2011

Closed
MicyToy opened this issue Sep 26, 2020 · 6 comments
Closed

frpc cannot connect, log as "send Login request to plugin error" #2011

MicyToy opened this issue Sep 26, 2020 · 6 comments

Comments

@MicyToy
Copy link

MicyToy commented Sep 26, 2020

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

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

What operating system and processor architecture are you using (go env)?
Server is CentOS 7.8
Client Windows 10

Configures you used:
frps.ini

Steps to reproduce the issue:

  1. Configure a server listen on 7000, check 7000 is open.
  2. Configure a client web

frps.ini
bind_addr = 0.0.0.0
bind_port = 7000
kcp_bind_port = 7000
[plugin.user-manager]
addr = 127.0.0.1:9000
path = /handler
ops = Login

[plugin.port-manager]
addr = 127.0.0.1:9001
path = /handler
ops = NewProxy

Describe the results you received:
[E] [service.go:279] send Login request to plugin error
[W] [service.go:102] login to server failed: send Login request to plugin error
send Login request to plugin error

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

@fatedier
Copy link
Owner

fatedier commented Sep 27, 2020

Try this simple configures first if you are not familiar with frp: https://github.com/fatedier/frp#access-your-computer-in-lan-by-ssh

@MicyToy
Copy link
Author

MicyToy commented Sep 27, 2020

It worked, and also I can add "token" . It seems like the "plugin" issue.

@fatedier
Copy link
Owner

You can find how to use plugins on https://github.com/fatedier/frp/blob/dev/doc/server_plugin.md

@khs1994
Copy link

khs1994 commented Oct 9, 2020

frps.ini 中的 plugin 相关配置注释掉,因为你没有启动插件,所以 frps 连接不到插件,就报错了。

#[plugin.user-manager]
#addr = 127.0.0.1:9000
#path = /handler
#ops = Login

#[plugin.port-manager]
#addr = 127.0.0.1:9001
#path = /handler
#ops = NewProxy

@MicyToy
Copy link
Author

MicyToy commented Oct 13, 2020

Thanks to @khs1994 , comment it and it worked.
Might add plugin configuration comment before [plugin.user-manager], or comment it as default.
For user first use might be more kindly.

@fatedier
Copy link
Owner

@MicyToy Follow the document, not the full example configure file.

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

3 participants