[SERVER-29765] bindIp parsing error in latest server version Created: 21/Jun/17  Updated: 24/Aug/17  Resolved: 17/Jul/17

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ryan Chipman Assignee: Jonathan Reams
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-29755 Unix socket not created with latest s... Closed
Operating System: ALL
Steps To Reproduce:

1. Spawn a windows host from evergreen
2. Run the following commands to setup and run mongo-orchestration:

 git clone git@github.com:mongodb-labs/drivers-evergreen-tools.git 
cd drivers-evergreen-tools 
export DRIVERS_TOOLS=$(pwd) 
export MONGODB_BINARIES=$(cygpath -m $DRIVERS_TOOLS/mongodb/bin) 
export MONGO_ORCHESTRATION_HOME=$(cygpath -m $DRIVERS_TOOLS/.evergreen/orchestration)
export MONGODB_VERSION=latest 
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" } }" > $MONGO_ORCHESTRATION_HOME/orchestration.config 
./.evergreen/run-orchestration.sh 

The script will hang after instructing mongo-orchestration to start a standalone mongod.

3. To examine the mongod log file, look for the line containing "Creating log file for /data/mci/drivers-evergreen-tools/mongodb/bin/mongod:" in .evergreen/orchestration/server.log

Participants:

 Description   

With the latest server version, mongo-orchestration is unable to start mongod, providing the following error: Failed to set up listener: BadValue: Bad listen address "localhostAn invalid argument was supplied.

It appears to be an error parsing the bindIp key in these options:

options: { config: "c:\cygwin\tmp\mongo-ggy8hy", net: { bindIp: "localhost,::1", ipv6: true, port: 27017 }, replication: { enableMajorityReadConcern: true, oplogSizeMB: 100 }, setParameter: { enableTestCommands: "1" }, storage: { dbPath: "c:\cygwin\tmp\mongo-skwhln", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "c:\cygwin\tmp\mongo-skwhln\mongod.log" } }



 Comments   
Comment by Jonathan Reams [ 26/Jun/17 ]

This should be fixed in master now, can you verify?

Comment by Ryan Chipman [ 21/Jun/17 ]

seems like this may be related to SERVER-29755

Generated at Thu Feb 08 04:21:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.