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.

Fails to run on Debian Buster (CURL_OPENSSL_3 not found)

See original GitHub issue

Debian Buster, the latest release of Debian GNU/Linux was released on 4th of July 2019.

I upgraded my developer virtual machine to Buster and the mongodb-memory-server hangs.

To test it out I ran this script:

const { MongoMemoryServer } = require('mongodb-memory-server')

async function main () {
  try {
    console.log('Start')
    const mongod = new MongoMemoryServer()
    console.log('Server created...')
    const uri = await mongod.getConnectionString()
    console.log('1')
    const port = await mongod.getPort()
    console.log('2')
    const dbPath = await mongod.getDbPath()
    console.log('3')
    const dbName = await mongod.getDbName()
    console.log('4')

    // some code
    //   ... where you may use `uri` for as a connection string for mongodb or mongoose

    // you may check instance status, after you got `uri` it must be `true`
    console.log('Getting Instance Info...')
    console.dir(mongod.getInstanceInfo())
    mongod.getInstanceInfo() // return Object with instance data

    // you may stop mongod manually
    await mongod.stop()

    // when mongod killed, it's running status should be `false`
    console.dir(mongod.getInstanceInfo())
    console.log('End')
  } catch (err) {
    console.error(err)
  }
}

main()

When running this script the console output displays:

Start
Server created...

After a few seconds the console prompt returns with no error output.

Am I missing something here?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
msanguineticommented, Oct 9, 2019

@grantcarthew I don’t know for you, but for me this is a major problem. Since debian 10 is now officially the ‘stable’ release and not having something like mongodb-memory-server supporting it is a bit of bummer. So, I will pin to version 5.2.7 and just pass in the config:

{
  "binary": {
    "version": "latest"
  }
}

@nodkz this is obviously not a trivial fix. But the ‘4.0.3’ hard-coded version trick might come back biting your hand. It would be preferable to leave my patch in (since Debian 10 is the stable version) and let it fail with a meaningful message such as: default version x.y.z not found. Please specify a version in the config

3reactions
grantcarthewcommented, Oct 10, 2019

Life saver! Thanks @msanguineti

I’ve got it working now.

For anyone else looking for a temporary fix, I used my package.json file with the following config:

{
  "config": {
    "mongodbMemoryServer": {
      "version": "latest"
    }
  },
  "devDependencies": {
    "mongodb-memory-server":  "5.2.7"
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

CURL_OPENSSL_3 not found for gitlab runner and Debian ...
Hi, I just upgraded my server from Debian 9 (stretch) to 10 (buster). Now if I'm trying to run my shell executor I...
Read more >
Version `CURL_OPENSSL_3' not found - Ask Ubuntu
I solved it removing my libcurl4-openssl-dev: sudo apt-get remove --auto-remove libcurl4-openssl-dev. And installing the previus version of ...
Read more >
Version CURL_OPENSSL_3 not found when upgrading the ...
I have a Raspberry PI3 running Domoticz Version: 2020.1 (build 11835 compiled from the sources). The configuration of the Domoticz Version ...
Read more >
Curl extension fails in Docker with error "CURL_OPENSSL_3 ...
try: sudo apt-get install libcurl3-openssl-dev.
Read more >
How to fix “curl: command not found” Error on Debian 10
Let's start. Installation of Curl Utility on Debian 10. Curl can be installed from the official APT package repository of the Debian 10...
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