Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Mongo Connection Timeout

Hi,

I currently have some integration tests running which uses the following url to connect to the mongo database:

mongodb://127.0.0.1:27017

as recommended by this link Test with mongo. I also have the following pipelines file to show how I build and test with a mongo service running to aid my tests Screenshot 2020-06-15 at 16.09.10.pnghowever the connection cannot be made I am assuming it is related to the ip address used to access the mongo container but I have read about using localhost and 127.0.0.1 but neither appear to work any help would be appr

1 answer

@Billy_Mumby perhaps you want to try 0.0.0.0 host. I do not see anywhere in docs using localhost, if it is atlassian documentation, link it to us, please (that I found in the question is responding with 404).

Regards, Galyna

For services 127.0.0.1 is mentioned in the docs to use as IP for service containers (link worked for me).

Then let's investigate your case if it is still actual, @Billy_Mumby when you are running the pipeline, you have several tabs for services, you wrote down , so you also should have a tab with mongo on your pipeline. Check if everything is fine there and then share please exact output of your pipeline failure.

Regards, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

157 views 2 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you