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

No longer working on Debian 11 because of glibc version #1663

Closed
faulpeltz opened this issue Dec 12, 2022 · 8 comments · Fixed by #1664
Closed

No longer working on Debian 11 because of glibc version #1663

faulpeltz opened this issue Dec 12, 2022 · 8 comments · Fixed by #1664
Labels

Comments

@faulpeltz
Copy link

faulpeltz commented Dec 12, 2022

Issue Summary

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /builds/.../node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node)

Steps to Reproduce

node-sqlite3 stopped working withe the current 5.1.3 release on latest debian stable (11-bullseye) and Ubuntu 20.04 (focal-fossa),
both only have glibc 2.31 installed (but both are stable/LTS and still supported for a long time)

Not sure if this is intended? The ci build uses Ubuntu 22 which has a newer glibc version

Version

5.1.3

Node.js Version

18.12.1

How did you install the library?

npm on Debian 11

@faulpeltz faulpeltz added the bug label Dec 12, 2022
@faulpeltz faulpeltz changed the title No longer worker on Debian 11 because of glibc version No longer working on Debian 11 because of glibc version Dec 12, 2022
@chgeo
Copy link

chgeo commented Dec 12, 2022

Can confirm, same issue for me after upgrading to 5.1.3

If this GLIBC bump is intended and not a bug, it would be really helpful if such changes would not be done in a patch version of sqlite3. I would have expected at last a minor release here.

@Hiryus
Copy link

Hiryus commented Dec 12, 2022

Hello,

I have the same problem with official docker images.
Tested on image node:16 and node:16-bullseye-slim.

It worked fine with sqlite3 version 5.1.2 but version 5.1.3 throws the following error:

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /tests/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node)

@svetbg
Copy link

svetbg commented Dec 12, 2022

Can confirm, same issue for me after upgrading to 5.1.3

If this GLIBC bump is intended and not a bug, it would be really helpful if such changes would not be done in a patch version of sqlite3. I would have expected at last a minor release here.

+1

daniellockyer added a commit that referenced this issue Dec 12, 2022
fixes #1663

- Ubuntu 22.04 ships with a newer glibc so the prebuilt binaries end up
  being linked to a more recent version, removing compatibility with
  systems that ship with older variants
- this commit fixes that by downgrading the Ubuntu version
@daniellockyer
Copy link
Member

Hi all!

I am aware of this issue - currently testing CI on Ubuntu 20 and then I'll do another release soon 🙂

daniellockyer added a commit that referenced this issue Dec 12, 2022
fixes #1663

- Ubuntu 22.04 ships with a newer glibc so the prebuilt binaries end up
  being linked to a more recent version, removing compatibility with
  systems that ship with older variants
- this commit fixes that by downgrading the Ubuntu version
@maxballenger
Copy link

maxballenger commented Dec 12, 2022

Hi, thanks for fixing. It looks like I'm getting hit by this in my project, but I'm not sure exactly how. I am pinned to an older version. This is what my yarn.lock has:

sqlite3@^5.0.2:
  version "5.0.8"
  resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-5.0.8.tgz#b4b7eab7156debec80866ef492e01165b4688272"
  integrity sha512-f2ACsbSyb2D1qFFcqIXPfFscLtPVOWJr5GmUzYxf4W+0qelu5MWrR+FAQE1d5IUArEltBrzSDxDORG8P/IkqyQ==
  dependencies:
    "@mapbox/node-pre-gyp" "^1.0.0"
    node-addon-api "^4.2.0"
    tar "^6.1.11"
  optionalDependencies:
    node-gyp "8.x"

I installed at about 14:35 GMT. Then I got this when trying to run on Ubuntu 18.04:

Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found

I'm thinking this will resolve soon as everything propagates through the pipelines, but I'm confused as to how I ended up getting a glibc 2.33 binary in the first place when I supposedly downloaded version 5.0.8.

Thanks!

@maxballenger
Copy link

OK it looks like I likely have some kind of problem with a different version of sqlite3 being installed by some other package manager - I think the problem is on my end.

@daniellockyer
Copy link
Member

daniellockyer commented Dec 13, 2022

The issue should now be fixed in v5.1.4. Apologies for that - it seems ubuntu-latest in GHA updated to Ubuntu 22.04 since the last release of node-sqlite3, and I missed it during the prebuild steps.

@Hiryus
Copy link

Hiryus commented Dec 13, 2022

I confirm it works. 👏
Thank you for your reactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants