Closed wizardone closed 2 years ago
Hopefully this will help someone else out there: the problem with these versions was that the runtime config was not recognized. After some back and forth I managed to determine that I was trying to connect to my local db url, because the information in releases.exs
was not respected on the server.
Since then I've upgraded to the latest beta
versions of both mongo and mongo_ecto and the problem was solved 👍
Hi All, I know there's been a couple of issues around connectivity with Atlas, but this one seems to be slightly different. I have the following config available:
and a repo file, which doesn't do anything:
(inspecting was done to ensure I actually pass the correct ssl configuration) And on boot of my application I get a
failed to connect: ** (Mongo.Error) tcp connect: connection refused - :econnrefused
Why is this issue under Repo and not MongoDB? Well, I can hook into my running elixir app withbin/my_app remote
and successfully establish a connection like so:So the instance does not have any connectivity issues. Am I missing something completely obvious here? I've spent quite some time trying to debug the issue, but no luck so far. Hopefully I can get some help, thank you all.
mongodb_ecto, "0.2.1" mongodb, "0.4.9" elixir 1.10.4