我有一个 Jhipster Spring Boot 项目。最近我从mlabs独立沙箱转移到 Atlas 集群沙箱 M0 免费层副本集。它甚至可以工作,我已经对它进行了一些数据库操作。但是现在由于某种原因然后出现了读取权限错误
Error creating bean with name 'mongobee' defined in class path resource [DatabaseConfiguration.class]: Invocation of init method failed; nested exception is com.mongodb.MongoQueryException: Query failed with error code 8000 and error message 'user is not allowed to do action [find] on [test.system.indexes]' on server ********-shard-00-01-mfwhq.mongodb.net:27017
Run Code Online (Sandbox Code Playgroud)
您可以在此处查看完整堆栈https://pastebin.com/kaxcr7VS
我搜索了高低,我能找到的只是 M0 层用户没有权限覆盖我没有做的管理数据库。
即使现在与 Mlabs DB 的连接工作正常,但在 Atlas DB M0 层上存在此问题。
Mongo 数据库版本:3.4
罐子和它的版本名称:'mongobee',版本:'0.10' 名称:'mongo-java-driver',版本:'3.4.2'
@Neil Lunn 我用来连接的用户 ID 是管理员的用户 ID,连接读写通过 shell 或 Robo3T(mongo …