Skip to content
New issue

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

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

Already on GitHub? # to your account

MySQL listener doesn't support proxy protocol #6517

Closed
r0mant opened this issue Apr 20, 2021 · 0 comments · Fixed by #6594
Closed

MySQL listener doesn't support proxy protocol #6517

r0mant opened this issue Apr 20, 2021 · 0 comments · Fixed by #6594
Assignees
Labels
bug c-cx Internal Customer Reference database-access Database access related issues and PRs
Milestone

Comments

@r0mant
Copy link
Collaborator

r0mant commented Apr 20, 2021

This causes issues when Teleport is behind a load balancer with proxy protocol feature enabled, e.g. this is the case for Cloud customers.

In such cases mysql client fails to connect with an error like:

➜  mysql --defaults-group-suffix=_xxx
ERROR 2026 (HY000): SSL connection error: error:00000000:lib(0):func(0):reason(0)

And there are following logs on the proxy:

ERRO [DB:PROXY]  Failed to handle MySQL client connection. error:[
ERROR REPORT:
Original Error: *errors.fundamental invalid sequence 88 != 1
Stack Trace:
	/go/src/github.com/gravitational/teleport/lib/srv/db/mysql/proxy.go:119 github.com/gravitational/teleport/lib/srv/db/mysql.(*Proxy).performHandshake
	/go/src/github.com/gravitational/teleport/lib/srv/db/mysql/proxy.go:57 github.com/gravitational/teleport/lib/srv/db/mysql.(*Proxy).HandleConnection
	/go/src/github.com/gravitational/teleport/lib/srv/db/proxyserver.go:163 github.com/gravitational/teleport/lib/srv/db.(*ProxyServer).ServeMySQL.func1
	/opt/go/src/runtime/asm_amd64.s:1374 runtime.goexit
User Message: invalid sequence 88 != 1] db/proxyserver.go:165
@r0mant r0mant added bug database-access Database access related issues and PRs labels Apr 20, 2021
@r0mant r0mant self-assigned this Apr 20, 2021
@r0mant r0mant added this to the 6.2 "Buffalo" milestone Apr 26, 2021
@pschisa pschisa added the c-cx Internal Customer Reference label Apr 27, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug c-cx Internal Customer Reference database-access Database access related issues and PRs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants