Skip to content

DSO support routines:dlfcn_load:could not load the shared library #826

Closed
@suyashmohan

Description

@suyashmohan

Description

Our working code has been throwing error on latest version of Fedora 36. Same error is also observed on Ubuntu 22.04 under WSL2.

Error Stack:
Error: error:25066067:DSO support routines:dlfcn_load:could not load the shared library
    at Sign.sign (node:internal/crypto/sig:131:29)
    at Object.sign (/home/#####/node_modules/jwa/index.js:152:45)
    at Object.jwsSign [as sign] (/home/#####/node_modules/jws/lib/sign-stream.js:32:24)
    at Object.module.exports [as sign] (/home/#####/node_modules/jsonwebtoken/sign.js:204:16)
    at Object.generateToken (/home/#####/services/jwt.service.js:8:16)
    at AuthController.login (/home/#####/controllers/auth.controller.js:71:25)

^ Used ##### to hide local folder path

return jwt.sign in following code snippet represents line number 8 in jwt.service.js from above error.

generateToken: (payload, { expiresIn = null } = {}) => {
    return jwt.sign(payload, privateKey, {
      algorithm: "RS256",
      ...(expiresIn ? { expiresIn } : {}),
    });
  },

Environment

  • Version Used: ^8.5.1
  • OS: Linux fedora 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Node: v16.15.0

I am guessing it has something to do with Node.js, OpenSSL and latest kernel. But positing here hoping someone can guide me in right direction to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions