Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux download for Ubuntu 18.04 fails #100

Closed
peter-snr opened this issue Nov 5, 2018 · 3 comments
Closed

Linux download for Ubuntu 18.04 fails #100

peter-snr opened this issue Nov 5, 2018 · 3 comments
Labels
released Pull Request released | Issue is fixed

Comments

@peter-snr
Copy link

Hi,

I have tried to run mongodb-memory-server (mongodb-memory-server@2.6.2) as a fresh npm install on Ubuntu 1804.

It is failing with an incorrect download location. Please see the following stack trace: -

Determining test suites to run... Mongo[40427] Starting MongoDB instance with following options: {"port":40427,"dbName":"jest","uri":"mongodb://127.0.0.1:40427/jest","storageEngine"
:"ephemeralForTest","dbPath":"/tmp/mongo-mem-15254m9v8farYN312"} +0ms
Mongo[40427] MongoBinary options: {"downloadDir":"/home/jenkins/.mongodb-binaries","platform":"linux","arch":"x64","version":"3.2.18"} +2ms
Mongo[40427] Downloading: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-3.2.18.tgz +27ms
Mongo[40427] renamed /home/jenkins/.mongodb-binaries/mongodb-linux-x86_64-ubuntu1804-3.2.18.tgz.downloading to /home/jenkins/.mongodb-binaries/mongodb-linux-x86_64-ubuntu1804-3.2.1
8.tgz +97ms
Mongo[40427] Downloading: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-3.2.18.tgz.md5 +1ms
Mongo[40427] renamed /home/jenkins/.mongodb-binaries/mongodb-linux-x86_64-ubuntu1804-3.2.18.tgz.md5.downloading to /home/jenkins/.mongodb-binaries/mongodb-linux-x86_64-ubuntu1804-3
.2.18.tgz.md5 +10ms
Mongo[40427] extract(): /home/jenkins/.mongodb-binaries/3.2.18 +1ms
Error: MongoBinaryDownload: missing mongod binary in /home/jenkins/.mongodb-binaries/mongodb-linux-x86_64-ubuntu1804-3.2.18.tgz
at /var/lib/jenkins/workspace/PrismIS/node_modules/mongodb-memory-server/lib/util/MongoBinaryDownload.js:207:15
at Generator.next ()
at asyncGeneratorStep (/var/lib/jenkins/workspace/PrismIS/node_modules/mongodb-memory-server/lib/util/MongoBinaryDownload.js:28:103)
at _next (/var/lib/jenkins/workspace/PrismIS/node_modules/mongodb-memory-server/lib/util/MongoBinaryDownload.js:30:194)
at

Trying this URL: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-3.2.18.tgz gives a 'permission denied'.

Kind regards.

Peter

@AJRdev
Copy link
Collaborator

AJRdev commented Nov 5, 2018

@peter-snr Did you specified the version 3.2.18 of MongoDB for the binary download ? Because it is an invalid version.
Because by default if the version wasn't specified, the download link would have been :
https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-latest.tgz

@nodkz nodkz closed this as completed in a978516 Nov 5, 2018
@nodkz
Copy link
Owner

nodkz commented Nov 5, 2018

For MongoDB 3.x absent binaries for Ubuntu 18.04, so will be used 16.04 binaries.
Fixed in mongodb-memory-serve@2.7.0

Awaiting success Travis build, after that will be published new version to npm

@nodkz
Copy link
Owner

nodkz commented Nov 5, 2018

🎉 This issue has been resolved in version 2.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nodkz nodkz added the released Pull Request released | Issue is fixed label Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Pull Request released | Issue is fixed
Projects
None yet
Development

No branches or pull requests

3 participants