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

Unable to create-service using instructions provided in README.md #19

Open
atishbits opened this issue Sep 5, 2017 · 0 comments
Open

Comments

@atishbits
Copy link

Hi

At the last step of creating the MongoDB service, I am getting the following error.
Environment: Macbook running BOSH v2 and CF CLI with BOSH and CF setup on VirtualBox. MongoDB running as standalone on Macbook on NAT network.

It seems that CF is not able to reach the mongodb server running on my macbook. I provided the correct MongoDB auth details and the ip address in the Manifest file.

~/workspace/cloudfoundry-service-broker> cf cs mongodb default mymongodb
Creating service instance mymongodb in org atg / space test-space as admin...
FAILED
Server error, status code: 502, error code: 10001, message: Service broker error: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=192.168.50.1:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]; nested exception is com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=192.168.50.1:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]

Your help will be really appreciated.

Thanks.

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

No branches or pull requests

1 participant