fastify / fastify/fastify-secure-session
ERR_DLOPEN_FAILED for Sodium native
- Dominant language
- JavaScript
- Stars
- 228
- Forks
- 54
- Avg merge
- 2d 3m
- Merged PRs (30d)
- 1
Description
### Prerequisites
- [x] I have written a descriptive issue title
- [x] I have searched existing issues to ensure the bug has not already been reported
### Fastify version
5.2.1
### Plugin version
8.1.0
### Node.js version
22.13.1
### Operating system
Linux
### Operating system version (i.e. 20.04, 11.3, 10)
arch
### Description
While importing the `@fastify/secure-session` plugin I get the following error:
```
Welcome to Node.js v22.13.1.
Type ".help" for more information.
> require("@fastify/secure-session")
Uncaught:
Error: /home//node_modules/sodium-native/prebuilds/linux-x64/sodium-native.node: cannot enable executable stack as shared object requires: Invalid argument
at Object..node (node:internal/modules/cjs/loader:1725:18)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Module.require (node:internal/modules/cjs/loader:1335:12)
at require (node:internal/modules/helpers:136:16)
at load (/home//node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object. (/home//node_modules/sodium-native/index.js:1:43) {
code: 'ERR_DLOPEN_FAILED'
}
```
I guess this is a sodium-native bug but this package is required by `@fastify/secure-session`.
### Link to code that reproduces the bug
---
### Expected Behavior
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.