After the new railpack 0.12.0 we are getting a new error
boazcheung
PROOP

4 months ago

$ bunx serve
node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
error: script "serve" exited with code 127

This worked without issues on the exact same codebase before upgrading. No other changes were made on our side, so it seems related to the new railpack release.

Could you help us understand what changed in 0.12.0 and how to resolve this missing libatomic.so.1 dependency?

7 Replies

Duplicate of #node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such, perhaps forward your post there 😄


@rethegreat ^


yousefelgoharyx
PRO

4 months ago

same here


yaziciahmet
PRO

4 months ago

same here, one thing I have noticed is that as Packages 0.11 was just selecting bun, while 0.12 selects both bun and node


yaziciahmet

same here, one thing I have noticed is that as Packages 0.11 was just selecting bun, while 0.12 selects both bun and node

yaziciahmet
PRO

4 months ago

I fixed it by prefixing the build and start scripts in my package.json (which I specify as cmds in railway.toml) with bun --bun , now it looks like this

    "build": "bun --bun next build --turbopack",
    "start": "bun --bun next start",

Don't know if this should be the final solution, but works


4 months ago

Working on a fix for this, will be out by EOD! Will keep you posted.


4 months ago

This should be fixed as of 0.13.0 https://github.com/railwayapp/railpack/releases/tag/v0.13.0. Let me know if you run into any issues!


Loading...