首页 > 解决方案 > restheart 插件骨架中的身份验证失败

问题描述

我正在使用插件框架创建一个 restheart 插件,但是在 docker-compose 之后,我得到了身份验证错误“restheart-plugin-skeleton_mongodb-initiate_1”容器。

容器日志:

MongoDB shell version v4.2.11
connecting to: mongodb://mongodb:27017/?compressors=disabled&gssapiServiceName=mongodb
2020-12-15T18:13:45.056+0000 E  QUERY    [js] Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:353:17
@(connect):2:6
2020-12-15T18:13:45.059+0000 F  -        [main] exception: connect failed
2020-12-15T18:13:45.059+0000 E  -        [main] exiting with code 1
MongoDB shell version v4.2.11
connecting to: mongodb://mongodb:27017/?compressors=disabled&gssapiServiceName=mongodb
2020-12-15T18:13:47.178+0000 E  QUERY    [js] Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:353:17
@(connect):2:6
2020-12-15T18:13:47.182+0000 F  -        [main] exception: connect failed
2020-12-15T18:13:47.182+0000 E  -        [main] exiting with code 1

标签: restheart

解决方案


这刚刚在上次提交中修复


推荐阅读