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: Version `GLIBC_2.32' not found #3411

Open
ammarsaf opened this issue Jan 27, 2025 · 4 comments
Open

🐛 BUG: Version `GLIBC_2.32' not found #3411

ammarsaf opened this issue Jan 27, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@ammarsaf
Copy link

ammarsaf commented Jan 27, 2025

Which Cloudflare product(s) does this pertain to?

Wrangler

What versions are you using?

3.105.1 [Wrangler[, v22.13.1 [Node.js]

What operating system and version are you using?

WSL , Ubuntu 20.04.4 LTS

Please provide a link to a minimal reproduction

No response

Describe the Bug

I just followed the tutorial from https://developers.cloudflare.com/workers/get-started/guide/, on the part of installing wrangler. I ran npx wrangler dev in my directory worker folder and got error of

<my-project-worker-path>/node_modules/@cloudflare/workerd-linux-64/bin/workerd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found <my-project-worker-path>/node_modules/@cloudflare/workerd-linux-64/bin/workerd)

I have tested

sudo apt update
sudo apt install libc6

But still not working

Please provide any relevant error logs

Error on my terminal

I got warning previously before I did the npx wrangler dev

npm warn deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

Then the following error during npx wrangler dev

<my-project-worker-path>/node_modules/@cloudflare/workerd-linux-64/bin/workerd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found <my-project-worker-path>/node_modules/@cloudflare/workerd-linux-64/bin/workerd)
@ammarsaf ammarsaf added the bug Something isn't working label Jan 27, 2025
@vicb
Copy link
Contributor

vicb commented Jan 27, 2025

Duplicate of cloudflare/workers-sdk#7911 - leaving this open as the bug is on a different platform

@u-na-gi
Copy link

u-na-gi commented Jan 27, 2025

I successfully built it using the node:22.13.1-bookworm Docker image.

root@48d638ff1920:/app/duable-objects-sample# ldd --version
ldd (Debian GLIBC 2.36-9+deb12u9) 2.36
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
root@48d638ff1920:/app/duable-objects-sample# 

@edmundhung edmundhung transferred this issue from cloudflare/workers-sdk Jan 27, 2025
@edmundhung edmundhung moved this from Untriaged to Backlog in workers-sdk Jan 27, 2025
@birjj
Copy link

birjj commented Jan 30, 2025

I am getting the same error on the same WSL setup (Ubuntu 20.04). As it turns out, the version of libc that's installable through Ubuntu's package system on 20.04 is libc6 2.31:

$ apt-get -s install libc6
...
libc6 is already the newest version (2.31-0ubuntu9.16).
...

Since workerd requires 2.32, this effectively drops support for Ubuntu 20.04. The good news is that Ubuntu 22.04 and beyond supports libc6 2.35, so upgrading to a newer version of Ubuntu (or installing it alongside your existing 20.04 install) should fix the problem.

[Edit] I can confirm that upgrading to Ubuntu 22.04, using the instructions here, the error is gone. The same is true after upgrading further to Ubuntu 24.04

@marcogeorgi
Copy link

Similar issue on RHEL9 since Wrangler 3.105.1:

/.../node_modules/@cloudflare/workerd-linux-64/bin/workerd: /lib64/libc.so.6: version `GLIBC_2.35' not found (required by /.../node_modules/@cloudflare/workerd-linux-64/bin/workerd)

Latest glibc for RHEL9 is ldd --version:

ldd (GNU libc) 2.34

which basically means that projects using Wrangler/workerd kind of stuck now with version 3.105.0, as there is no RHEL10 release yet. Not to mention the time an enterprise probably requires to migrate a build intrastructure from 9 to 10 once it's available.

However, I would understand such a change in OS support with a new Wrangler major release. But here it's a minor release (even a patch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

5 participants