Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlaunch does not quote --wiredTigerEngineConfigString parameter #683

Closed
p-mongo opened this issue Feb 25, 2019 · 0 comments
Closed

mlaunch does not quote --wiredTigerEngineConfigString parameter #683

p-mongo opened this issue Feb 25, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@p-mongo
Copy link
Contributor

p-mongo commented Feb 25, 2019

I ran:

 mlaunch --replicaset --name ruby-driver-rs --sslMode requireSSL --sslPEMKeyFile /home/me/apps/mongo/dev/cert/127.0.0.1.pem --sslAllowConnectionsWithoutCertificates --dir /mnt/zram/mongodb/4.0-ssl-rs --wiredTigerCacheSizeGB 0.25 --setParameter enableTestCommands=1 --setParameter diagnosticDataCollectionEnabled=false --wiredTigerEngineConfigString 'log=(prealloc=false,file_max=20MB)' --binarypath /usr/bin --port 27440

This yielded:

/bin/sh: 1: Syntax error: "(" unexpected


can't start process, return code 2. tried to launch: "/usr/bin/mongod" --replSet ruby-driver-rs --dbpath "/mnt/zram/mongodb/4.0-ssl-rs/ruby-driver-rs/rs1/db" --logpath "/mnt/zram/mongodb/4.0-ssl-rs/ruby-driver-rs/rs1/mongod.log" --port 27440 --fork  --wiredTigerCacheSizeGB 0.25 --setParameter enableTestCommands=1 --setParameter diagnosticDataCollectionEnabled=false --wiredTigerEngineConfigString log=(prealloc=false,file_max=20MB)  --sslMode "requireSSL" --sslPEMKeyFile "/home/me/apps/mongo/dev/cert/127.0.0.1.pem" --sslAllowConnectionsWithoutCertificates

Looks like the --wiredTigerEngineConfigString argument was not quoted when it was passed to the shell.

mlaunch still created the directory specified in `--dbpath``.

Environment

Software Version
mtools 1.5.3
MongoDB server 4.0
Operating system Debian
@stennie stennie added this to the 1.5.4 milestone Mar 6, 2019
@stennie stennie self-assigned this Jun 13, 2019
stennie added a commit to stennie/mtools that referenced this issue Dec 23, 2019
p-mongo pushed a commit to p-mongo/mtools that referenced this issue Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants