matrix-org / matrix-org/matrix-bifrost

`yarn genreg` tries to load GNU libc on a musl libc system (Alpine Linux)

Open
#377 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
187
Forks
38
PR merge metrics
No merged PRs in 30d

Description

$ yarn genreg -- -u http://localhost:9555
yarn run v1.22.22
(node:8723) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node lib/Program.js -r -c config.yaml -u http://localhost:9555
/home/server/matrix-bifrost/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js:308
    throw loadError
    ^

Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /home/server/matrix-bifrost/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/matrix-sdk-crypto.linux-x64-musl.node)
    at Object..node (node:internal/modules/cjs/loader:2040:18)
    at Module.load (node:internal/modules/cjs/loader:1596:32)
    at Module._load (node:internal/modules/cjs/loader:1398:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.require (node:internal/modules/cjs/loader:1619:12)
    at require (node:internal/modules/helpers:191:16)
    at Object.<anonymous> (/home/server/matrix-bifrost/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js:175:31)
    at Module._compile (node:internal/modules/cjs/loader:1873:14)
    at Object..js (node:internal/modules/cjs/loader:2013:10)
    at Module.load (node:internal/modules/cjs/loader:1596:32) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v26.2.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce yarn genreg -- -u http://localhost:9555 on Alpine Linux and compare it with a glibc-based system. Start at lib/Program.js and the native module loader shown in node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js; done means genreg starts without the missing ld-linux-x86-64.so.2 error on musl.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, node.js, typescript
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.