Build Error: Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 #80
-
Hey Jannis, Thought best I should start by trying to build it. Are you able to offer any advice on my build error here? Google suggest it might be something to do with versions of node > v20.0.0 $ node --version
v20.12.2 $ yarn
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 9.75s.
$ ./configure ~/.local/bin
$ make install
mkdir -p build
rm -rf build/static.zip
zip -X -r build/static.zip static
adding: static/ (stored 0%)
adding: static/client.js (deflated 55%)
# ...
# Snip: ...A whole bunch of statics...
# ...
adding: static/katex/katex.css (deflated 85%)
adding: static/style.css (deflated 75%)
node_modules/.bin/webpack
asset bundle.js 3.26 MiB [emitted] [minimized] (name: main) 1 related asset
orphan modules 9.85 KiB [orphan] 15 modules
runtime modules 1.04 KiB 5 modules
modules by path ./node_modules/ 4.64 MiB
javascript modules 4.32 MiB 410 modules
json modules 324 KiB 13 modules
modules by path ./src/ 17.4 KiB
modules by path ./src/parser/*.ts 4.51 KiB 4 modules
modules by path ./src/routes/*.ts 7.66 KiB 3 modules
modules by path ./src/*.ts 3.94 KiB 2 modules
+ 1 module
optional modules 126 bytes [optional]
external "async_hooks" 42 bytes [optional] [built] [code generated]
external "bufferutil" 42 bytes [optional] [built] [code generated]
external "utf-8-validate" 42 bytes [optional] [built] [code generated]
+ 21 modules
WARNING in ./node_modules/express/lib/view.js 81:13-25
Critical dependency: the request of a dependency is an expression
@ ./node_modules/express/lib/application.js 22:11-28
@ ./node_modules/express/lib/express.js 18:12-36
@ ./node_modules/express/index.js 11:0-41
@ ./src/app.ts 17:34-52
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.92.1 compiled with 1 warning in 8570 ms
touch build/bundle.js
mkdir -p build/linux
rm -rf build/linux/vivify-server
node --experimental-sea-config sea-config.json
Wrote single executable preparation blob to build/sea-prep.blob
cp /usr/bin/node build/linux/vivify-server
chmod +w build/linux/vivify-server
node_modules/.bin/postject build/linux/vivify-server NODE_SEA_BLOB build/sea-prep.blob \
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
Start injection of NODE_SEA_BLOB in build/linux/vivify-server...
warning: Can't find string offset for section name '.note.cafe1a7e'
warning: Can't find string offset for section name '.note.100'
warning: Can't find string offset for section name '.note.100'
warning: Can't find string offset for section name '.note'
Error: Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary
make: *** [Makefile:69: build/linux/vivify-server] Error 1 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
Hello! We recently switched to Node SEA to compile Vivify into a single executable. This is still in beta, which is why there seem to be some build issues on some systems. We haven't seen this exact error yet. Could you verify your version again by adding the following to the Makefile (or a new one) and then running .PHONY: node-version
node-version:
$(shell command -v node) --version My first idea based on the error message is that the version of node that we try to inject into is different, maybe older, than what you get with If it's not that, I would suggest that you either use the CI builds until there are updates to Node SEA, or, if you really want to build it yourself, go through the example on the docs and see if you can get that to work, then we can figure out what the problem here could be :) Also note that for developing Vivify you don't actually need to be able to build it yourself: You can use |
Beta Was this translation helpful? Give feedback.
-
Sounds good to me, I wonder what it'll mean when it comes time to package for Fedora, but I'll let you know when I get there. @tuurep you familiar with node version manager? |
Beta Was this translation helpful? Give feedback.
-
Hi, noted and getting back to testing this but can't right now :) |
Beta Was this translation helpful? Give feedback.
-
Hey @jannis-baum @Tweekism yes this works! I used
where Thanks Tweekism this solves a pretty big problem we've had here! Finally I'm able to build for myself too 😄 |
Beta Was this translation helpful? Give feedback.
-
Nice, good work on figuring this out! I will close this discussion now then. Just to summarize: The error happens because some Linux distributions package |
Beta Was this translation helpful? Give feedback.
Nice, good work on figuring this out! I will close this discussion now then. Just to summarize:
The error happens because some Linux distributions package
node
with links to different shared libraries than what is required for Node SEA to work. To fix it, you can, for example, use a node version fromnvm
. @Tweekism is making sure this is documented in #91.