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
CloudFoundry + MongoDB is broken #4363
Comments
No problem on Heroku (from what I can see with a smoke test of 3.9.1). Please let me know if there is something more subtle. EDIT I see why. The heroku generator references the Mongo URI (w/ credentials) in the |
I will commit a fix soon |
I will merge this with #4349 as it's related |
I made a comment on this "old issue" because I didn't see it resolved anywhere else.. is the circular reference fixed (or about to be?) I'm using bluemix because it offers a free (30 day trial), and I assumed that to use heroku with mongodb I would need to pay $18/month just to "try" it... heroku did NOT seem to work for me (out of the box), it was getting an error with a MONGODB environmental variable or some such.. so I assumed I needed to add the Mongo DB Compose or whatever.. if I don't need to do that, would appreciate help on this also.. don't have any attachment to bluemix (other than someone offers to pay for it and it give 30 days free). |
@ehillis it should work now on Cloud Foundry |
Yes I'm going to fix this for CloudFoundry, and test if it still works for Le 21 oct. 2016 8:33 AM, "ehillis" notifications@github.com a écrit : I made a comment on this "old issue" because I didn't see it resolved — |
Thanks! On Friday, October 21, 2016, Julien Dubois notifications@github.com wrote:
|
You need to wait for the next release, probably very soon |
Hi, mongodb: |
@vhiguita please, don't pollute old issues, with some other question. Have a look at our guidelines - for me this isn't a bug, you should go to StackOverflow |
From my stats, very few people are using CloudFoundry (10 times less than Heroku!), which is probably why we didn't see this.
Besides, there is only a "free" plan, which is very limited and not production-ready, on the CloudFoundry marketplace.
Choosing CloudFoundry + MongoDB doesn't work as we have both
CloudDatabaseConfiguration
andCloudMongoDbConfiguration
which get configured, and which configure the same bean, so Spring crashes at startup. This just cannot work!!It also seems Spring Cloud has changed its MongoDB support, so the
CloudMongoDbConfiguration
doesn't seem to work anymore: when using it, I have connection exceptions to the MongoDB database, so it's clear that the MongoDB configuration isn't automatically setup from Spring Cloud.Of course it works if you code directly database credentials in the
application-prod.yml
.I'm also pinging @jkutner as there might be the same kind of issue on Heroku, as it's very similar.
The text was updated successfully, but these errors were encountered: