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 version in docker 2.35 - Latest is 2.39 [edit -> nixpacks?] #1969

Closed
DiiiaZoTe opened this issue Apr 12, 2024 · 6 comments
Closed

Comments

@DiiiaZoTe
Copy link

DiiiaZoTe commented Apr 12, 2024

Description

The current version of GLIBC in the docker containers created when using nixpacks is 2.35
Is there a way to get this up to the latest version?
This prevents quite a bit of things from running like the latest versions of headless chromium via puppeteer because it requires version 2.38

[EDIT]
So I did some digging because my production app has been unable to generate any PDF because of this...
I believe this is definitely a nix issue. I tried to downgrade coolify to a previous version to when it used to work before the nixpacks version was updated. It seems like even then, the lastest version of nixpacks is being used, ultimately giving me the same result.

Is there a way to add the ability to set the nixpacks version, or the ubuntu version of the container generated?

Minimal Reproduction (if possible, example repository)

Deploy a repo app using nixpacks.
Execute ldd --version inside the app's container

Result:
ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 2.35
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.

Exception or Error

/root/.cache/puppeteer/chrome/linux-123.0.6312.122/chrome-linux64/chrome: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/dnhl6kcdmhad5402v0irwx3mdfjyzf6i-util-linux-minimal-2.39.2-lib/lib/libmount.so.1)
/root/.cache/puppeteer/chrome/linux-123.0.6312.122/chrome-linux64/chrome: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/dnhl6kcdmhad5402v0irwx3mdfjyzf6i-util-linux-minimal-2.39.2-lib/lib/libmount.so.1)
/root/.cache/puppeteer/chrome/linux-123.0.6312.122/chrome-linux64/chrome: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/dnhl6kcdmhad5402v0irwx3mdfjyzf6i-util-linux-minimal-2.39.2-lib/lib/libblkid.so.1)
/root/.cache/puppeteer/chrome/linux-123.0.6312.122/chrome-linux64/chrome: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/dnhl6kcdmhad5402v0irwx3mdfjyzf6i-util-linux-minimal-2.39.2-lib/lib/libuuid.so.1)

Version

v4.0.0-beta.255

@DiiiaZoTe DiiiaZoTe changed the title [Bug]: GLIBC version in docker 2.35 - Latest is 2.39 [Bug]: GLIBC version in docker 2.35 - Latest is 2.39 [edit -> nixpacks?] Apr 12, 2024
@andrasbacsai andrasbacsai self-assigned this May 4, 2024
@ranaharoon3222
Copy link

+1

@AlexGodard
Copy link

Same issue, let me know if you have a workaround!

@peaklabs-dev
Copy link
Member

peaklabs-dev commented Oct 22, 2024

GLIBIC was upgraded to 2.39 in the latest Ubuntu LTS release Ubuntu 24.04 LTS (Noble Numbat) https://www.ubuntuupdates.org/package/core/noble/universe/updates/glibc. As, you should never manually upgrade GLIBIC, and there is no easy way to upgrade the Ubuntu version of Nixpacks (at least I think so) I created an Issue on their repo. Since this is not a bug in Coolify, I will close this issue.

@pierre-H
Copy link

I had the same error (for using prisma) and the workaround was to add the following post deployment command : unset LD_LIBRARY_PATH.

@zaini
Copy link

zaini commented Nov 1, 2024

there is no easy way to upgrade the Ubuntu version of Nixpacks

Would be great if there was!

People have had to switch to using Dockerfile to get around this: #2550

@peaklabs-dev
Copy link
Member

@zaini: Since we have no control over the Nixpacks repository, we cannot influence this, so the only option is to use a custom Dockerfile see this issue railwayapp/nixpacks#1205.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants