我正在使用docker部署mongodb操作管理器,然后收到以下错误消息
The gen.key file at /etc/mongodb-mms/gen.key does not match the gen.key already used for this Ops Manager installation. The key file for this Ops Manager server must be copied from another server.我只在一个节点上部署了ops,我应该把这个文件复制到哪里?
发布于 2017-08-31 02:16:46
首先,确保您的密钥位于/etc/mongodb-mms/gen.key,并且权限正确,以便mongodb-mms服务的所有者可以读取密钥。
如果您已尝试启动mongodb-mms服务,则可能需要删除配置数据库,然后重试。
要做到这一点,使用shell、show dbs和连接到您的副本集(或者在您的情况下是单一的魔神),并删除每个不是admin或local的数据库。例如:
use mmsdbconfig
db.dropDatabase()
尝试重新启动操作管理器:
sudo service mongodb-mms start
https://stackoverflow.com/questions/44902105
复制相似问题