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

Fixed not being able to connect to mongo #2674

Merged
merged 1 commit into from Dec 2, 2019

Conversation

@JulyElektra
Copy link
Contributor

JulyElektra commented Nov 21, 2019

Problem: A short statement of the problem.
Unable to connect to mongodb from host machine

Solution

From version 3.6+ mongodb by default binds only to localhost (127.0.0.1) IP. That can be checked with "netstat -tulpn | grep LISTEN" command in container. It will return "127.0.0.1:27017 | 0.0.0.0:* | LISTEN | 15/mongod" for mongod. That causes inability to connect to running mongo from host machine. Proposed change allows mongo to bind to container network interface, thus allowing connections from host machine.

Issues Resolved

Resolves #2673

From version 3.6+ mongodb by default binds only to localhost (127.0.0.1) IP. That can be checked with "netstat -tulpn | grep LISTEN" command in container. It will return "127.0.0.1:27017 | 0.0.0.0:* | LISTEN | 15/mongod" for mongod. That causes inability to connect to running mongo from host machine. Proposed change allows mongo to bind to container network interface, thus allowing connections from host machine.
@codecov-io

This comment has been minimized.

Copy link

codecov-io commented Nov 21, 2019

Codecov Report

Merging #2674 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2674   +/-   ##
=======================================
  Coverage   93.41%   93.41%           
=======================================
  Files          46       46           
  Lines        2705     2705           
=======================================
  Hits         2527     2527           
  Misses        178      178
@davie-lab davie-lab merged commit 8647215 into bigchaindb:master Dec 2, 2019
1 check passed
1 check passed
Travis CI - Pull Request Build Passed
Details
@davie-lab

This comment has been minimized.

Copy link
Contributor

davie-lab commented Dec 2, 2019

Thanks for the pull request @JulyElektra !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.