温馨提示:本文翻译自stackoverflow.com,查看原文请点击:其他 - MarkLogic Admin interface does not accept credentials
admin-interface credentials marklogic

其他 - MarkLogic Admin界面不接受凭据

发布于 2020-03-27 10:26:14

我们正在使用MarkLogic 9.0.8.2

它运行良好,然后突然在多个节点上使用主目录林和副本林配置安全数据库故障转移时,我开始遇到不接受凭据的问题。

我查看了日志,发现安全数据库状态为打开

2019-07-03 09:48:36.465 Info: Forest security-01 state changed from recovering to open
2019-07-03 12:45:49.688 Info: Mounted forest security-02-replica remotely on ML03
2019-07-03 09:48:36.465 Info: Forest security-01 state changed from recovering to open
2019-07-03 12:45:49.691 Info: Mounted forest security-03 remotely on ML03
2019-07-03 12:45:49.699 Info: Mounted forest security-01-replica remotely on ML02
2019-07-03 12:45:49.700 Info: Mounted forest security-02 remotely on ML02.
2019-07-03 12:45:52.055 Info: Database Security is online with 3 forests

因此,看日志,似乎一切都很好。

所以我不确定为什么它不接受凭据。如何获取或重置管理员密码?

我认为,我已找到原因,已按照以下步骤在安全数据库上配置故障转移

  • 创建了3个主森林
  • 创建了3个副本
  • Attached new forests to database, clicked on attach & retire on old by default security forest
  • on configuration machine, deselect old security DB and kept selection on retire checkbox And this is where i think problem is, i did not waited for merging to finish :( MarkLogic service is running, will not merge in background?

I have already restarted service, VMs multiple times.

Now question, how to solve (already loaded around 15M data) this? How to attach old security forest for merge to happen

在此处输入图片说明

查看更多

查看更多

提问者
Manish Joisar
被浏览
117
Arnold 2019-07-04 15:06

From MarkLogic's knowledgebase

Multiple forests for Security database

我们不建议为安全性数据库配置多个目录林,因为这样做在升级和重新启动时可能导致故障转移问题。安全数据库应在所有主机上具有单个主目录林和副本,以确保高可用性。

https://help.marklogic.com/Knowledgebase/Article/View/601/0/multiple-forests-for-security-database

在将文档迁移到其他目录林之前,您似乎已经分离了安全数据库。MarkLogic在配置文件夹中维护一个“ databases.xml”文件,该文件包含有关附加的目录林的详细信息。较旧的版本也带有数字后缀,例如。'databases_1.xml','databases_2.xml'

您可以在每个节点上尝试以下操作:

  1. 停止ML服务
  2. 导航到ML的配置目录,并将“ databases.xml”重命名为“ databases_bad.xml”
  3. 将'databases_1.xml'重命名为'databases.xml'

最后,在所有节点上重新启动ML服务,并等待现有文档迁移。

PS:我没有在ML知识库上看到此内容,因此我不确定这是否是推荐的方法,但是我已经在本地尝试过,并且能够通过重命名数据库文件来恢复到以前的配置。