cloudfoundry-service-broker icon indicating copy to clipboard operation
cloudfoundry-service-broker copied to clipboard

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

Open atishbits opened this issue 7 years ago • 0 comments

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.

atishbits avatar Sep 05 '17 06:09 atishbits