Sentinel 7.1.1 和更高版本包含 MongoDB 2.4.1 版本。MongoDB 2.4 需要删除数据库中重复的用户名。如果您要升级 7.1.1 之前的 Sentinel 版本,请校验是否存在重复用户,然后去除重复用户。
以 novell 用户身份登录到 Sentinel 7.1 或更早版本。
更改为以下目录:
cd opt/novell/sentinel/3rdparty/mongodb/bin
运行以下命令校验重复用户:
./mongo --port 27017 --host "localhost"
use analytics
db.system.users.find().count()
如果 count 大于 1,表明存在重复用户。