question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error:25066067:DSO support routines:dlfcn_load:could not load the shared library

See original GitHub issue

Environment

  • Operating System version: Ubuntu 21.4
  • Firebase SDK version: firebase-admin@9.11.0
  • Firebase Product: admin.auth
  • Node.js version: 16.15
  • NPM version: 7.12.1
  • Yarn version: 1.12.19 (i use yarn)

The problem

import admin from 'firebase-admin'
admin.auth().createCustomToken(stringID, {
    id: stringID, 
}) // throws the error below
 Error: error:25066067:DSO support routines:dlfcn_load:could not load the shared library
    at Sign.sign (node:internal/crypto/sig:131:29)
    at ServiceAccountSigner.sign (/node_modules/firebase-admin/lib/utils/crypto-signer.js:65:37)
    at /node_modules/firebase-admin/lib/auth/token-generator.js:135:44
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    // removed unimportant error lines from my own code
  opensslErrorStack: [
    'error:0E076071:configuration file routines:module_run:unknown module name',
    'error:0E07506E:configuration file routines:module_load_dso:error loading dso',
    'error:25070067:DSO support routines:DSO_load:could not load the shared library'
  ],
  library: 'DSO support routines',
  function: 'dlfcn_load',
  reason: 'could not load the shared library',
  code: 'ERR_OSSL_DSO_COULD_NOT_LOAD_THE_SHARED_LIBRARY'
}

Steps to reproduce:

Unfornutately I cannot find a way to reproduce this issue accross platforms. I ran it in a different system, even with the same lock file, i cannot reproduce it. I do think that the problem is tied to my own system. I just dont know where to look.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

34reactions
k0d3dcommented, May 19, 2022

Hi Guys, I found a workaround while facing this issue using firebase-admin. Hence, we suggest you to comment out the lines providers = provider_sectin the file/etc/ssl/openssl.cnf` and restart application once.

I took it off https://help.zoho.com/portal/en/community/topic/cant-install-zoho-workdrive-app-in-ubuntu-22-04

7reactions
poodecommented, May 17, 2022

The same issue with me Operating System version: Ubuntu 22.04 Firebase SDK version: firebase-admin@6.5.0 Firebase Product: admin.auth Node.js version: 10.24.1 NPM version: 6.14.12

Read more comments on GitHub >

github_iconTop Results From Across the Web

error:25066067:DSO support routines:dlfcn_load:could not ...
Somehow it seems like if the config file defines any provider section (even if it does not define any providers) then it does...
Read more >
Node.js crypto fails to sign pem key string from file with error ...
I get this error message from the sign.sign() method. error:25066067:DSO support routines:dlfcn_load:could not load the shared library. The code ...
Read more >
error:25078067:DSO support routines:win32_load:could not ...
error:25078067:DSO support routines:win32_load:could not load the shared library. https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.
Read more >
error:25066067:DSO support routines :DLFCN_LOAD:could ...
So, I re-ran wpa_passphrase essid passphrase and copied the output to the wpa_supplicant.conf file. Reconnected and received the same messages. Did not work.......
Read more >
tmsh show running-config" does not work with an error ... - AskF5
Key management library returned bad status: -7, error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found