mtools icon indicating copy to clipboard operation
mtools copied to clipboard

mlaunch: can't start process if base path name contains spaces

Open stennie opened this issue 2 years ago • 0 comments

For example, with base path of "/Users/bobbytables 1/" the space is not properly escaped:

mlaunch init --sharded 2 --replicaset --auth
Detected mongod version: 6.0.3
Generating keyfile: /Users/bobbytables 1/tmp/data/keyfile
b'/bin/sh: -c: line 0: unexpected EOF while looking for matching `"\'\n/bin/sh: -c: line 1: syntax error: unexpected end of file\n'

can't start process, return code 2. tried to launch: "mongod" --replSet shard01 --dbpath "/Users/bobbytables 1/tmp/data/shard01/rs1/db" --logpath "/Users/bobbytables 1/tmp/data/shard01/rs1/mongod.log" --port 27018 --fork   1/tmp/data/keyfile" --shardsvr --wiredTigerCacheSizeGB 1 
log: "/Users/bobbytables

stennie avatar Jan 19 '23 01:01 stennie