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.

[Windows] Incorrect `mongod` binary path

See original GitHub issue

Freshly installed on a new machine Windows10 x64

Autostarting MongoDB instance...
  Mongo[50146] Starting MongoDB instance with following options: {"port":50146,"dbName":"f63e96d0-2244-497d-a043-f608688a503d","uri":"mongodb://localhost:50146/f63e96d0-2244-497d-a043-f608688a503d","storageEngine":"ephemeralForTest","dbPath":"C:\\Users\\Username\\AppData\\Local\\Temp\\mongo-mem-6080BA3QCuF1h8UT"} +0ms
Downloading MongoDB: https://downloads.mongodb.org/win32/mongodb-win32-x86_64-3.4.4.zip
  Mongo[50146] renamed C:\Users\Username\.mongodb-binaries\mongodb-win32-x86_64-3.4.4.zip.downloading to C:\Users\Username\.mongodb-binaries\mongodb-win32-x86_64-3.4.4.zip +10s
  Mongo[50146] getDownloadMD5Hash content: 024a46524c856429d0fd9de0c7d04c5f  mongodb-win32-x86_64-3.4.4.zip
  Mongo[50146]  +557ms
  Mongo[50146] getDownloadMD5Hash extracted signature: 024a46524c856429d0fd9de0c7d04c5f +1ms
  Mongo[50146] extract(): C:\Users\Username\.mongodb-binaries\3.4.4 +581ms
(node:6080) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: MongoBinaryDownload: missing mongod binary in C:\Users\Username\.mongodb-binaries\mongodb-win32-x86_64-3.4.4.zip
(node:6080) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: MongoBinaryDownload: missing mongod binary in C:\Users\Username\.mongodb-binaries\mongodb-win32-x86_64-3.4.4.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
cmosghcommented, Oct 6, 2017

would be my first. I should try tho 😃

0reactions
ozanmuyescommented, Jan 29, 2019

For what is worth set the binary.systemBinary option (as listed at here) to point to the correct path on the filesystem (where npm postinstall actually downloads the binary). For me this systemBinary is “X:\Project\Root\node_modules\mongodb-memory-server\node_modules\.cache\mongodb-memory-server\mongodb-binaries\x.y.z\mongod.exe” (note the double slash on Windows). Hope this helps, because even version 3.0.0 of this package wasn’t working for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation process saves binary in wrong location · Issue #168
In version 5.0.1, when the package is installed the binary is not downloaded to the default location (.
Read more >
mongod and mongo commands not working on windows 10
01) Get path to bin, something like: C:\Program Files\MongoDB\Server\4.0\bin · 02) Press the Windows key, type env , select Edit the system ......
Read more >
Issue when installing locally on Windows 10 - MongoDB
The domain, user name and/or password are incorrect. Remember to use “.” for the domain if the account is on the local machine....
Read more >
Troubleshooting — MongoDB Manual
If your output includes a mix of mongodb-org and mongodb binaries, ... Generally, these errors indicate that the MongoDB data directory either doesn't...
Read more >
Windows10 Community version problem - MongoDB
I am having a problem of running MongoDM on my Windows 10 64bit machine. ... sure your PATH contains C:\Program Files\MongoDB\Server\4.4\bin.
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