Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

MongoDB - Missing Bash #87

Open
smyth64 opened this issue Dec 6, 2016 · 1 comment
Open

MongoDB - Missing Bash #87

smyth64 opened this issue Dec 6, 2016 · 1 comment

Comments

@smyth64
Copy link

smyth64 commented Dec 6, 2016

Hey guys,
I just noticed that the scripts in the mongodb config container are not working because /bin/bash is missing!

@sgrunt91
Copy link

sgrunt91 commented Jan 4, 2017

Hi @smith64fx

I don't think the scripts are not working because of /bin/bash because it is present in the MongoDB container (which is executing scripts).

But, I think it's not working because of this line: https://github.com/rancher/catalog-dockerfiles/blob/master/MongoDB/containers/0.1.0/mongodb-config/scaling.sh#L6

In my mongo-cluster containers MYIP variable is empty and slaves are never declared because rs.add()fail:

MongoDB shell version: 3.2.11 connecting to: 10.42.117.178:27017/test { "ok" : 0, "errmsg" : "FailedToParse: Empty host component parsing HostAndPort from \":27017\" for member:{ _id: 3.0, host: \":27017\" }", "code" : 93 }

If I change this line with:
MYIP=$(ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)

Am I wrong ?

@galal-hussein could you help us ? :)

EDIT: There is the pull request #91 about this

Regards,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants