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

[bug] GLIBC not found with version 4.1.3 on ubuntu 20.04 focal #644

Closed
GregOriol opened this issue Apr 20, 2023 · 5 comments
Closed

[bug] GLIBC not found with version 4.1.3 on ubuntu 20.04 focal #644

GregOriol opened this issue Apr 20, 2023 · 5 comments

Comments

@GregOriol
Copy link

Hi,

On ubuntu 20.04, centrifugo version 4.1.3 installed via apt with the debs provided at https://packagecloud.io/FZambia/centrifugo (following the installation instructions here: https://centrifugal.dev/docs/getting-started/installation#rpm-and-deb-packages-for-linux) seem to have an issue when trying to run it:

$ centrifugo -c /etc/centrifugo/config.toml
centrifugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by centrifugo)
centrifugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by centrifugo)

Centrifugo version 4.1.2 installed the same way works well on the same system.

System is:

$ uname -a
Linux [...] 5.4.0-139-generic #156-Ubuntu SMP Fri Jan 20 17:27:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal
$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31

Is is possible that the build process has changed and uses a more recent version of ubuntu which tries to link glibc with a newer version?

@FZambia
Copy link
Member

FZambia commented Apr 20, 2023

Hello @GregOriol

Unfortunate :( Seems like it's a common trouble within the ecosystem:

The solution seems to be using CGO_ENABLED=0 in our deb/rpm build process. Could you please verify that the binary release centrifugo_4.1.3_linux_amd64.tar.gz:

https://github.com/centrifugal/centrifugo/releases/download/v4.1.3/centrifugo_4.1.3_linux_amd64.tar.gz

– loaded from https://github.com/centrifugal/centrifugo/releases/tag/v4.1.3 page works fine on your Ubuntu server (for those binaries CGO_ENABLED=0 is already used)

@GregOriol
Copy link
Author

@FZambia Yeah I don't know much about Go, but I've found the same links before opening the issue.

The file you link to https://github.com/centrifugal/centrifugo/releases/download/v4.1.3/centrifugo_4.1.3_linux_amd64.tar.gz works fine! Seems that CGO_ENABLED=0 is indeed the solution to this problem.

@FZambia
Copy link
Member

FZambia commented Apr 21, 2023

Fixed the build script, also manually triggered re-build and upload of DEB/RPM packages with the next iteration number - see on top of the list - 4.1.3-1. @GregOriol – could you please try it ?

@GregOriol
Copy link
Author

@FZambia It's good with version 4.1.3-1 :-)

@FZambia
Copy link
Member

FZambia commented Apr 21, 2023

Thanks for the report!

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

2 participants