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.

starting from systemBinary does not work as documented

See original GitHub issue

Versions

  • NodeJS: v14.16.1
  • mongodb-memory-server-*: 7.2.1
  • mongodb(the binary version): 4.4.5
  • system: Manjaro Linux

package: mongo-memory-server

What is the Problem?

Starting the mongo memory server with

{
  instance: { port: 27017, dbPath: undefined },
  binary: { version: '4.4.7', systemBinary: '/usr/bin/mongod' }
}

or

{
  instance: { port: 27017, dbPath: undefined },
  binary: { systemBinary: '/usr/bin/mongod' }
}

leads the memory server to download and use the downloaded binary (4.4.7, 4.0.25 respectively), while it should use the specified one.

if im setting the environment variable MONGOMS_SYSTEM_BINARY=/usr/bin/mongod, the system binary is being used, but the output is:

getPath: MongoMemoryServer: Possible version conflict
  SystemBinary version: "4.4.5"
  Requested version:    "4.0.25"

  Using SystemBinary!

which in my eyes means that the start works as expected, but the output is kinda awkward because explicitly did not want to start 4.0.25, but the system binary. The output is a minor issue I don’t really care about - the ‘systemBinary’ having no effect is problematic.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hasezoeycommented, Jul 21, 2021

this issue may be fixed with 7.3.1, which should be published in some minutes

most likely commit bc89da33a4cddaa3b4dda8480a2ba480d3cd3051 fixed this

Edit: version 7.3.1 is now published (if its not fixed, please update to that version and provide new logs)

0reactions
boredlandcommented, Jul 21, 2021

tyvm, works like a charm now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Misreads mongo version from v4.2.19-latest #624 - GitHub
What is the Problem? Get a Error: Couldnt find an version from system binary output! error when attempting to run mongo-memory-server when ...
Read more >
File System Binary Storage - Cloud CMS
Read the Cloud CMS Documentation Manual to learn about working with File ... SaaS subscribers do not have the ability to adjust the...
Read more >
Microsoft Edge "This app can't open"
When I try to open Microsoft Edge browser I get an error message saying "This app can't open A problem with windows is...
Read more >
Ascd and Rest service can't start when restarting cluster - IBM
Problem. After restarting the cluster, there are the following error ... The reason is that curl system binary is not at default location....
Read more >
File System Binary Provider - JFrog Documentation
The root directory where Artifactory should store data files. fileStoreDir. Default: filestore. The root folder of binaries for the filestore.
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