[SERVER-17733] Ubuntu package containts invalid bind_ip address Created: 25/Mar/15  Updated: 25/Mar/15  Resolved: 25/Mar/15

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

Type: Bug Priority: Major - P3
Reporter: Tugdual Grall Assignee: Ernie Hershey
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux dev01 3.16.0-31-generic #41~14.04.1-Ubuntu SMP Wed Feb 11 19:30:13 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


Operating System: ALL
Steps To Reproduce:

Follow the ubuntu install steps
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Participants:

 Description   

I am following the steps here:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

When I try to connect to my local instance

$mongo

it does not work, I receive the following error:

mongo
MongoDB shell version: 3.0.1
connecting to: test
2015-03-25T09:14:34.807+0000 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-03-25T09:14:34.808+0000 E QUERY    Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed

I looked into the conf file and it looks like the bind_ip entry is not valid, since it contains "spaces":

bind_id = 127.0.0.1

where it should be

bind_id=127.0.0.1



 Comments   
Comment by Ramon Fernandez Marina [ 25/Mar/15 ]

I'm not able to reproduce this problem. I created the following configuration file:

$ cat myconfig
bind_ip = 127.0.0.1
dbpath = .

which matches the syntax in the deb package. I then run mongod -f myconfig and had no trouble starting mongod, so I'm going to resolve this issue.

tugdual.grall, if this is still an issue for you please re-open the ticket and post the full mongod log from startup so we can investigate further.

Regards,
Ramón.

Comment by Ernie Hershey [ 25/Mar/15 ]

tugdual.grall can you post your mongod.log? I'd like to see what errors mongod gives about the bind_ip.

Comment by Tugdual Grall [ 25/Mar/15 ]

Sorry I forgot to mention it, added to the JIRA

Linux dev01 3.16.0-31-generic #41~14.04.1-Ubuntu SMP Wed Feb 11 19:30:13 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Comment by Ernie Hershey [ 25/Mar/15 ]

tugdual.grall are you sure mongod was started? Can you post your mongod.log? What version of Ubuntu are you running?

Generated at Thu Feb 08 03:45:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.