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
Unable to connect to MongoDB Atlas #8665
Comments
Looks like a Mongobee issue mongobee/mongobee#87, maybe mongock (a fork of mongobee) is something to look into if mongobee is no longer maintained. |
Thanks. Looks like Mongock isn’t a simple drop in replacement. Is there a way in jhipster to disable migration functionality that mongobee provides? |
Answered my own question...removing the |
Since Mongobee appears to have been abandoned, is there any interest in moving to Mongock? After a little tinkering I got it working, and would be happy to submit a PR. |
@michael-pratt : I think it deserves a specific ticket for that. Can you open a new one and describe it plz ? So we can discuss about it |
This is due to Mongobee having a bug that prevents it from working with Mongo Atlas correctly; jhipster/generator-jhipster#8665
After removing the @bean definition from public Mongobee mongobee(...) in DatabaseConfiguration.java, the app starts and I can create new users. But after creating new user the activation link using email is not sent to users and also I can not able to logged in ! |
Overview of the issue
Using JHipster 5, I am unable to connect to a MongoDB Atlas cluster (running version 4.0.3). This could be an issue with spring-data, but figured I'd start here.
Stack trace is:
Motivation for or Use Case
Cannot start application due to connection failure.
Reproduce the error
Start a free tier MongoDB atlas cluster. Here's the YAML I am using:
Error message is:
I have ensured the user I am connecting with has the
readWriteAnyDatabase@admin
roles in Atlas.Possibly related to this issue mentioned on StackOverflow:
https://stackoverflow.com/questions/49958635/mongodb-atlas-user-is-not-allowed-to-do-action-find-on-system-indexes
JHipster Version(s)
5.5.0
JHipster configuration
.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
git version 2.17.1 (Apple Git-112)
node: v9.11.1
npm: 6.4.1
yeoman: 2.0.5
Docker version 18.06.1-ce, build e68fc7a
docker-compose version 1.22.0, build f46880f
The text was updated successfully, but these errors were encountered: