nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary #4313

Closed Drjacky closed 1 month ago

Drjacky commented 6 months ago

Details

I followed these steps https://nodejs.org/api/single-executable-applications.html When I run

npx postject hello NODE_SEA_BLOB sea-prep.blob \
    --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
    --macho-segment-name NODE_SEA 

I get:

Error: Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary

Node.js version

21.3.0

Example code

No response

Operating system

macOS

Scope

Compile time

Module and version

Not applicable.

preveen-stack commented 6 months ago

cc @RaisinTen can you advise

YunusCorum commented 5 months ago

why nobody doesn't care about the issue ?

Drjacky commented 5 months ago

@preveen-stack @YunusCorum I used this archived https://github.com/vercel/pkg project and it worked.

chengB12 commented 5 months ago

My issue is "Error: Multiple occurences of sentinel "NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2" found in the binary"

for macos and node v20.10.0 (and v20.11.0 LTS too)

yisar commented 4 months ago

node v21 still keep this error

denzelios commented 4 months ago

still get this too v20.11.0

HxShard commented 3 months ago

stuck with this running v20.11.0 on darwin, eventually switched to v20.0.0 (https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-x64.tar.gz and https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-arm64.tar.gz) and it seems to be working.

HxShard commented 3 months ago

probably it wasn't quite right because I obtained that node's binary from a ".pkg"-distributed version UPD: sure, you still have to use most modern node version (since postject won't work otherwise), but fetch it as tar.gzarchive

nokazn commented 2 months ago

when I use moonrepo/proto to install node, I needed to run

cp $(proto bin node) hello

instead of

cp $(command -v node) hello

to copy a plain Node.js binary not a shim in step 4 of the guide.

Related: https://github.com/volta-cli/volta/issues/1594

ratatoeskr666 commented 1 month ago

My issue is "Error: Multiple occurences of sentinel "NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2" found in the binary"

for macos and node v20.10.0 (and v20.11.0 LTS too)

Same issue for me. It worked a couple of times but now I get this error. (Node 20.14.0)

RedYetiDev commented 1 month ago

The original author of this issue seems to have resolved their problem, if you are still experiencing an issue, I invite you to open a new issue.

Thank you!

Drjacky commented 1 month ago

The original author of this issue seems to have resolved their problem, if you are still experiencing an issue, I invite you to open a new issue.

Thank you!

Yup, that error is gone but still, it doesn't work:

Start injection of NODE_SEA_BLOB in hello... Error: Can't read and write to target executable

RedYetiDev commented 1 month ago

If you are experiencing a different issue, please open a new issue, as that makes tracking easier.

Thank you!