runner icon indicating copy to clipboard operation
runner copied to clipboard

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

Open AurelienKun opened this issue 4 years ago • 1 comments

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 avatar Oct 10 '19 21:10 AurelienKun

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

RaschidJFR avatar Aug 23 '20 06:08 RaschidJFR