Comments (5)
After the issue above, I did get another issue after running the command another two times, though not sure in what way it may be related to the original issue.
╰─➤ run-rs --version 4.0.0 1 ↵
Downloading MongoDB 4.0.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66.3M 100 66.3M 0 0 11.2M 0 0:00:05 0:00:05 --:--:-- 11.0M
x mongodb-osx-x86_64-4.0.0/README
x mongodb-osx-x86_64-4.0.0/THIRD-PARTY-NOTICES
x mongodb-osx-x86_64-4.0.0/MPL-2
x mongodb-osx-x86_64-4.0.0/GNU-AGPL-3.0
x mongodb-osx-x86_64-4.0.0/LICENSE-Community.txt
x mongodb-osx-x86_64-4.0.0/bin/mongodump
x mongodb-osx-x86_64-4.0.0/bin/mongorestore
x mongodb-osx-x86_64-4.0.0/bin/mongoexport
x mongodb-osx-x86_64-4.0.0/bin/mongoimport
x mongodb-osx-x86_64-4.0.0/bin/mongostat
x mongodb-osx-x86_64-4.0.0/bin/mongotop
x mongodb-osx-x86_64-4.0.0/bin/bsondump
x mongodb-osx-x86_64-4.0.0/bin/mongofiles
x mongodb-osx-x86_64-4.0.0/bin/mongoreplay
x mongodb-osx-x86_64-4.0.0/bin/mongod
x mongodb-osx-x86_64-4.0.0/bin/mongos
x mongodb-osx-x86_64-4.0.0/bin/mongo
x mongodb-osx-x86_64-4.0.0/bin/install_compass
mv: rename ./mongodb-osx-x86_64-4.0.0/bin to /Users/ajmas/npm/lib/node_modules/run-rs/src/4.0.0/bin: Directory not empty
Error: Command failed: mv ./mongodb-osx-x86_64-4.0.0/bin /Users/ajmas/npm/lib/node_modules/run-rs/src/4.0.0
mv: rename ./mongodb-osx-x86_64-4.0.0/bin to /Users/ajmas/npm/lib/node_modules/run-rs/src/4.0.0/bin: Directory not empty
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:653:13)
at download (/Users/ajmas/npm/lib/node_modules/run-rs/src/download.js:54:5)
at run (/Users/ajmas/npm/lib/node_modules/run-rs/index.js:80:20)
at run.next (<anonymous>)
at onFulfilled (/Users/ajmas/npm/lib/node_modules/run-rs/node_modules/co/index.js:65:19)
at /Users/ajmas/npm/lib/node_modules/run-rs/node_modules/co/index.js:54:5
at new Promise (<anonymous>)
at co (/Users/ajmas/npm/lib/node_modules/run-rs/node_modules/co/index.js:50:10)
at Object.<anonymous> (/Users/ajmas/npm/lib/node_modules/run-rs/index.js:30:1)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
from run-rs.
The same issue i install run-rs on travis cl
+ [email protected]
added 95 packages from 60 contributors in 5.419s
before_install.2
0.00s$ run-rs -v 4.0.0 &
install
6.01s$ npm install
Downloading MongoDB 4.0.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 67.3M 100 67.3M 0 0 54.8M 0 0:00:01 0:00:01 --:--:-- 54.8M
Copied MongoDB 4.0.0 to '/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/src/4.0.0'
Purging database...
Running '/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/4.0.0/mongod' [ 27017, 27018, 27019 ]
Starting replica set...
/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124
.toString()
^
TypeError: Cannot read property 'toString' of null
at ChildProcess.<anonymous> (/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124:14)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Socket.stream.socket.on (internal/child_process.js:336:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:561:12)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 876892 packages in 5.376s
found 0 vulnerabilities
from run-rs.
Same happened to me using 0.5.3 under Ubuntu.
Downgrading to 0.5.2 works fine.
from run-rs.
I am getting the same error, when I run command run-rs
Starting replica set...
/usr/local/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124
.toString()
^
TypeError: Cannot read property 'toString' of null
at ChildProcess. (/usr/local/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124:14)
at ChildProcess.emit (events.js:203:13)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:203:13)
at Pipe. (net.js:588:12)
After implementing ProtonGustave fix for wrong path, I am getting the following error.
Error: Command failed: mv ./mongodb-osx-x86_64-4.0.6/bin {mainScriptDir}/4.0.6
mv: rename ./mongodb-osx-x86_64-4.0.6/bin to {mainScriptDir}/4.0.6: No such file or directory
at checkExecSyncError (child_process.js:621:11)
at execSync (child_process.js:657:15)
at download (/usr/local/lib/node_modules/run-rs/src/download.js:56:5)
at run (/usr/local/lib/node_modules/run-rs/index.js:80:20)
at run.next (<anonymous>)
at onFulfilled (/usr/local/lib/node_modules/run-rs/node_modules/co/index.js:65:19)
at /usr/local/lib/node_modules/run-rs/node_modules/co/index.js:54:5
at new Promise (<anonymous>)
at co (/usr/local/lib/node_modules/run-rs/node_modules/co/index.js:50:10)
at Object.<anonymous> (/usr/local/lib/node_modules/run-rs/index.js:30:1)
at Module._compile (internal/modules/cjs/loader.js:868:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
at Module.load (internal/modules/cjs/loader.js:731:32)
at Function.Module._load (internal/modules/cjs/loader.js:644:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:931:10)
at internal/main/run_main_module.js:17:11
Please let us know how to resolve this. Thanks :)
from run-rs.
Should be fixed by #38 in 0.5.4
from run-rs.
Related Issues (20)
- Gets stuck on 'Starting replica set...' HOT 8
- MongoDB 4.4.2 fails to start HOT 1
- Unable to start or create replica set with mongodb 4.4.1 HOT 1
- Is it possible to configure the ports? HOT 2
- Warnings HOT 1
- Starting rs with --keep throws an error HOT 1
- Error: Server is unavailable HOT 8
- run-rs nuked my existing databases HOT 1
- colors dependecy attack through prettyjson
- How to uninstall the mongodb rs installed by run-rs in macos?
- moment.js security vulnerability
- --keep option, way to avoid logging entire db contents on start? HOT 1
- No mongod process found at mongod, check your --mongod option
- Error: spawn Unknown system error -86 HOT 2
- Changing default ports with --portStart flag does not work
- Support Apple Silicon
- Not Working with Node Version 18 HOT 1
- Invalid namespace specified error when adding document to collection with feathers-mongodb and run-rs
- mongoDB is no longer available for download for Ubuntu 16.04
- Error "Server is unavailable" with Node >= 17 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-rs.