Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading shared library ld-linux-x86-64.so.2 #126

Closed
meyfa opened this issue Oct 6, 2024 · 2 comments · Fixed by #136
Closed

Error loading shared library ld-linux-x86-64.so.2 #126

meyfa opened this issue Oct 6, 2024 · 2 comments · Fixed by #136

Comments

@meyfa
Copy link
Member

meyfa commented Oct 6, 2024

Version

0.4.1

Actual behavior (issue description)

Output when starting the container:

node:internal/modules/cjs/loader:1586
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^
Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /app/node_modules/sodium-native/prebuilds/linux-x64/sodium-native.node)
    at Module._extensions..node (node:internal/modules/cjs/loader:1586:18)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at load (/app/node_modules/node-gyp-build/node-gyp-build.js:22:10)
    at Object.<anonymous> (/app/node_modules/sodium-native/index.js:1:43)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32) {
  code: 'ERR_DLOPEN_FAILED'
}
Node.js v20.18.0

Expected behavior

No response

Steps to reproduce

On x86-64:

docker run --rm contane/foreman

Custom configuration

none

Additional information

No response

@meyfa
Copy link
Member Author

meyfa commented Oct 6, 2024

Appears to be caused by: holepunchto/sodium-native#202

@meyfa
Copy link
Member Author

meyfa commented Oct 6, 2024

Besides fixing this, we should consider adding a "smoke test". After building the image in CI, we could attempt to launch it and assert some expected output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant