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

Centos8 error: "symbol lookup error: undefined symbol: argon2_ctx" #405

Closed
orbitlens opened this issue May 21, 2024 · 2 comments
Closed

Comments

@orbitlens
Copy link

orbitlens commented May 21, 2024

I'm having problems running this package on Centos8 server.
Error details:

/srv/api/src/index.js: symbol lookup error: /srv/stellar-trace-api/node_modules/.pnpm/argon2@0.40.1/node_modules/argon2/build/Release/argon2.node: undefined symbol: argon2_ctx

Environment

argon2 version: 0.40.1
OS: Centos8
Node: v20.2.0
Package manager: pnpm

I tested the code locally and it seems to be working without any issues on different operation systems. Tried to force rebuild the package with the command pnpm rebuild argon2 but it doesn't seem to actually run the sources compilation process and uses the pre-built binary instead.

With 0.31.2 everything works without any problems on the same environment.

@ranisalt
Copy link
Owner

Can you share a reproduction? Ideally within a Docker container, you can use the centos:centos8 image as a base.

With that said, considering CentOS 8 reached end-of-life over 2 years ago it's a bit hard to provide support - you really shouldn't be using it (dismiss the info if you're on CentOS Stream 8 instead)

You can force building from source on NPM setting the environment variable npm_config_build_from_source=true, try that with pnpm

@ranisalt
Copy link
Owner

#415 should fix this issue, can you try with v0.41.0 or newer?

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

No branches or pull requests

2 participants