mongodb-js / runner

Start all mongodb deployment types for testing
Apache License 2.0
89 stars 15 forks source link

Error: Could not figure out current Linux distro #196

Open Beetix opened 2 years ago

Beetix commented 2 years ago

Hi,

I have tried to run mongodb-runner start (version 4.8.3) but I am getting an error:

Starting a MongoDB deployment to test against...Error: Could not figure out current Linux distro (Arch, arch)
    at Object.getCurrentLinuxDistro (/usr/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/lib/linux-distro.js:66:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async parseTarget (/usr/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/lib/index.js:73:29)
    at async options (/usr/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/lib/index.js:239:31)
    at async getDownloadURL (/usr/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/lib/index.js:243:27)

I am running Arch Linux on x86 which seems recognised from Node.js's console:

Welcome to Node.js v16.13.1.
Type ".help" for more information.
> process.platform
'linux'
> process.arch
'x64'

Do you have an idea of why I am getting this error?

Thank you

Aidan-Eves commented 2 years ago

I'm running into the same problem, i'm currently running EndeavourOS and i get the same output.

JBLeap commented 1 year ago

Same problem in ManjaroLinux

TravisLeeRichardson commented 1 year ago

same problem with pop_os!

I believe the issue is that only a certain set of linux distros are mapped. In this linux-distro.js file, for instance, you can see Ubuntu, Debian, etc, but no support for the other distros mentioned in this thread...

image