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

"mongodb-runner start" failed because of no lsb_release on the system #157

Open
AurelienKun opened this issue Oct 10, 2019 · 1 comment
Open

Comments

@AurelienKun
Copy link

Hi everyone,
I try to setup a parse-server on my Synology NAS (arm) manually and so far i managed to install :

  • Node v8.9.4
  • parse-server v3.9.0
  • mongodb-runner v4.7.3

But when i run the command 'mongodb-runner start' I got this error
Error: Command failed: lsb_release -si /bin/sh: lsb_release: command not found
The thing is, Synology has customized the OS and some commands are not available. Is there a way to by-pass the use of this command ?

Here is the whole log :

$ mongodb-runner start
    Starting a MongoDB deployment to test against...
    /bin/sh: lsb_release: 
    command not found
    child_process.js:644
    throw err;
    ^
    Error: Command failed: lsb_release -si
    /bin/sh: lsb_release: command not found
    at checkExecSyncError (child_process.js:601:13)
    at execSync (child_process.js:641:13)
    at Object.lsbReleaseInfo (/volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/linuxDistro.js:20:20)
    at Object.getDistro (/volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/linuxDistro.js:9:30)
    at /volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/index.js:258:45
    at /volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/mongodb-download-url/index.js:113:5
    at /volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/mongodb-version-list/index.js:83:7
    at toCallback (/volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/downcache/index.js:254:2)
    at /volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/downcache/index.js:105:4
    at /volume1/homes/user/.npm-global/lib/node_modules/mongodb-runner/node_modules/graceful-fs/graceful-fs.js:115:16

Thank you for your help.

@AurelienKun AurelienKun changed the title mongodb-runner start failed because no lsb_release on the system "mongodb-runner start" failed because of no lsb_release on the system Oct 10, 2019
@RaschidJFR
Copy link

I just ran into this same issue while trying to use mongodb-runner in the Docker image for node:10, which uses Debian 9.

I'm not sure about the customized OS you are using @AurelienKun , but my work around was to install it:

apt-get update
apt-get install lsb-release

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

Successfully merging a pull request may close this issue.

2 participants