help icon indicating copy to clipboard operation
help copied to clipboard

Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary

Open Drjacky opened this issue 7 months ago • 8 comments

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.

Drjacky avatar Dec 15 '23 10:12 Drjacky

cc @RaisinTen can you advise

preveen-stack avatar Dec 15 '23 10:12 preveen-stack

why nobody doesn't care about the issue ?

YunusCorum avatar Jan 24 '24 21:01 YunusCorum

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

Drjacky avatar Jan 25 '24 12:01 Drjacky

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)

chengB12 avatar Jan 30 '24 15:01 chengB12

node v21 still keep this error

yisar avatar Feb 18 '24 06:02 yisar

still get this too v20.11.0

denzelios avatar Feb 22 '24 15:02 denzelios

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 avatar Mar 10 '24 12:03 HxShard

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

HxShard avatar Mar 10 '24 12:03 HxShard

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

nokazn avatar Apr 23 '24 17:04 nokazn