Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Error: Could not figure out current Linux distro #196

Open
Beetix opened this issue Dec 8, 2021 · 3 comments
Open

Error: Could not figure out current Linux distro #196

Beetix opened this issue Dec 8, 2021 · 3 comments

Comments

@Beetix
Copy link

Beetix commented Dec 8, 2021

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
Copy link

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

@JBLeap
Copy link

JBLeap commented Jan 10, 2023

Same problem in ManjaroLinux

@TravisLeeRichardson
Copy link

TravisLeeRichardson commented May 30, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants