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

Unknown command line arg --rest ?? #148

Closed
mikecann opened this issue Jan 16, 2019 · 5 comments
Closed

Unknown command line arg --rest ?? #148

mikecann opened this issue Jan 16, 2019 · 5 comments

Comments

@mikecann
Copy link

Hey,

Love the project have been using it for years. For some reason lately I have started getting the following error when starting:

Starting a MongoDB deployment to test against...mongodb-runner:bin:mongodb-runner-worker.js Unexpected error. Exiting. { Error: Command failed: mongod --smallfiles --noprealloc --setParameter enableTestCommands=1 --port 27017 --dbpath C:\mongodb\data\standalone --logpath C:\Users\mikec/.mongodb/runner/standalone.log --rest --nojournal
Error parsing command line: unrecognised option '--rest'
try 'mongod --help' for more information

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
  killed: false,
  code: 2,
  signal: null,
  cmd: 'mongod --smallfiles --noprealloc --setParameter enableTestCommands=1 --port 27017 --dbpath C:\\mongodb\\data\\standalone --logpath C:\\Users\\mikec/.mongodb/runner/standalone.log --rest --nojournal' }

I think I read something that the --rest argument was removed from the latest mongodb, perhaps why its started happening?

@mikecann mikecann changed the title Unknown command line arg --reset ?? Unknown command line arg --rest ?? Jan 16, 2019
@imlucas
Copy link
Contributor

imlucas commented Jan 16, 2019

@mikecann Thanks! You're correct. --rest and several other CLI flags were deprecated.

🤔 I updated to remove all of those last fall. What version of mongodb-runner are you on? We're now using latest, mongodb-runner@4.7.1, everywhere.

@mikecann
Copy link
Author

@imlucas ye thats the version of mongodb-runner im on too. I had to set an environment var to MONGODB_VERSION=3.2.22 to prevent the crashing 😄

@imlucas
Copy link
Contributor

imlucas commented Jan 17, 2019

Interesting...

What OS and version are you running this on?

@mikecann
Copy link
Author

Windows 10

imlucas added a commit to mongodb-js/mongodb-tools that referenced this issue Jan 18, 2019
imlucas added a commit that referenced this issue Jan 18, 2019
@imlucas
Copy link
Contributor

imlucas commented Jan 18, 2019

@mikecann Thanks. Looks like some other probs to bring in the new year... so I'll try to look at all of this over the weekend.

imlucas added a commit that referenced this issue Oct 10, 2019
* chore: Update mongodb-tools to latest

Trying to debug #148

* chore: Add DEBUG to figure out appveyor fail
@imlucas imlucas closed this as completed Oct 10, 2019
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

2 participants