Tiproxy is not working

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tiproxy 无法使用

| username: ShawnYan

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot / Logs / Monitoring]

CentOS 7, downloaded the TiProxy binary package


Error when checking the version after extraction

$ ./tiproxy --version
./tiproxy: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./tiproxy)
./tiproxy: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./tiproxy)
| username: tidb菜鸟一只 | Original post link

ldd --version
Is the glibc version insufficient?

| username: ShawnYan | Original post link

Instant reply, it’s not enough, so

| username: tidb菜鸟一只 | Original post link

I guess we need to upgrade glibc, but this is very risky…

| username: ShawnYan | Original post link

Unacceptable, the operating environment requirements for tiproxy are a bit high.

| username: 有猫万事足 | Original post link

It should just be an issue with the glibc associated with this installation package.
I compiled it once, and as long as you add go to the PATH variable, a single make command will compile it.
At most, if you think the dependent go packages are downloading slowly, you can additionally set
export GO111MODULE=on
export GOPROXY=https://goproxy.io
and it will work.

| username: ShawnYan | Original post link

That’s right, there’s no problem with compiling it yourself. This is just to discover other issues in advance. Adding the operating system version to tiproxy’s asset would be better; just writing “linux” is too broad.

| username: redgame | Original post link

Boss, try installing this version as instructed and see if it works.

| username: ShawnYan | Original post link

I found that the package in the GitHub repo asset is compiled under the latest Ubuntu, with CGO_ENABLED=1 enabled by default. Also, the go mod is still using go 1.19. The tiproxy version update is a bit slow, and various versions are not aligned. I will explain in more detail later. Since it hasn’t reached GA, it’s normal to have issues. I believe these will be fixed later.

There are many similar issues, such as:

| username: 有猫万事足 | Original post link

Handsome :+1:

| username: ShawnYan | Original post link

Here you go:

TiDB Source Code Compilation: TiProxy Chapter - ShawnYan’s Column - 专栏 - TiDB 7.x 源码编译之 TiProxy 篇,及尝鲜体验 | TiDB 社区

| username: ShawnYan | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.