NodeJS Nixpack - GLIBC_2.38 not found

AnonymousTRIAL

a year ago

pnpm install fails on some packages such as @sentry/cli and aws-crt while running their install scripts. It says /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.38' not found`.

Here is a snippet from the logs

#10 11.74 Progress: resolved 1554, reused 0, downloaded 1553, added 1554, done

#10 12.22 .../aws-crt@1.21.1/node_modules/aws-crt install$ node ./scripts/install.js

#10 12.28 .../node_modules/@sentry/cli install$ node ./scripts/install.js
#10 12.34 .../aws-crt@1.21.1/node_modules/aws-crt install: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/9fy9zzhf613xp0c3jsjxbjq6yp8afrsv-gcc-12.3.0-lib/lib/libstdc++.so.6)

#10 12.34 .../aws-crt@1.21.1/node_modules/aws-crt install: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/9fy9zzhf613xp0c3jsjxbjq6yp8afrsv-gcc-12.3.0-lib/lib/libstdc++.so.6)
#10 12.34 .../aws-crt@1.21.1/node_modules/aws-crt install: Failed
#10 12.34  ELIFECYCLE  Command failed with exit code 1.
#10 12.34 .../node_modules/@sentry/cli install: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/9fy9zzhf613xp0c3jsjxbjq6yp8afrsv-gcc-12.3.0-lib/lib/libstdc++.so.6)
#10 12.34 .../node_modules/@sentry/cli install: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/9fy9zzhf613xp0c3jsjxbjq6yp8afrsv-gcc-12.3.0-lib/lib/libstdc++.so.6)
#10 12.34 .../node_modules/@sentry/cli install: Failed

#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1

0 Replies

AnonymousTRIAL

a year ago

12e6dcd7-5c20-495b-bc51-c55e4971b90e


a year ago

I think it would be best to move to a Dockerfile based build as you won't have any glib errors with a dockerfile


AnonymousTRIAL

a year ago

that would be a good workaround indeed. but i have so many env vars i'll need to copy over to the dockerfile. i wanted to see if that could be avoided.

as i understand, docker can't just pick up the env vars from railway. i have to redeclare each and everyone.


a year ago

not true, you would only need to define the variables in your dockerfile that you need during build


AnonymousTRIAL

a year ago

ah so if it's a nextjs application, like in my case, then i only need to declare the NEXT_PUBLIC_ ones probably. thanks, i'll give that a shot


a year ago

sounds good!


AnonymousTRIAL

a year ago

awesome, it worked. i only needed to declare the NEXT_PUBLIC_ ones indeed. thanks


a year ago

no problem!


NodeJS Nixpack - GLIBC_2.38 not found - Railway Help Station