You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法访问MarkLogic Admin UI及Query Console,恳请提供解决办法

解决MarkLogic因Security副本森林未挂载导致UI无法访问的问题

错误XDMP-FORESTMNT: Forest Security-4-replica-1 not mounted: disconnected的核心是Security数据库的副本森林处于未挂载状态,而Admin UI和Query Console依赖Security数据库完成身份验证与权限校验,因此直接导致端口无法访问。以下是分步解决方案:

  • 手动挂载目标森林
    如果MarkLogic的基础管理API仍可响应,优先尝试手动挂载:

    • 使用mlcmd工具(Windows环境示例):
      mlcmd.exe -U admin -P [你的管理员密码] -H localhost -C "forest-mount" -arg "Security-4-replica-1"
      
    • 或通过curl调用管理API:
      curl -X POST --user admin:[管理员密码] http://localhost:8001/manage/v2/forests/Security-4-replica-1/mount
      
  • 检查森林存储状态
    如果手动挂载失败,排查存储层面问题:

    • 定位该森林的存储目录(默认路径为[MarkLogic安装目录]/Data/Forests/Security-4-replica-1,或自定义路径),确认目录存在且MarkLogic运行账户拥有读写权限。
    • 若目录文件完整,尝试同步主森林数据到副本:
      mlcmd.exe -U admin -P [管理员密码] -H localhost -C "forest-replica-sync" -arg "Security-4-replica-1"
      
  • 重建副本森林
    若存储文件损坏或同步无效,考虑重建:

    1. 解除副本森林与Security数据库的关联:
      curl -X DELETE --user admin:[管理员密码] http://localhost:8001/manage/v2/databases/Security/forests/Security-4-replica-1
      
    2. 删除旧森林的存储目录,创建新的副本森林并关联:
      curl -X POST --user admin:[管理员密码] -H "Content-Type: application/json" -d '{
        "forest-name": "Security-4-replica-1",
        "host": "localhost",
        "database": "Security",
        "replica": true,
        "data-directory": "[指定新的存储路径]"
      }' http://localhost:8001/manage/v2/forests
      
    3. 挂载新创建的森林:
      curl -X POST --user admin:[管理员密码] http://localhost:8001/manage/v2/forests/Security-4-replica-1/mount
      
  • 验证结果
    完成以上操作后,重启MarkLogic服务,尝试访问8000(Query Console)和8001(Admin UI)端口,确认是否恢复正常。

内容的提问来源于stack exchange,提问作者Dharmendra Kumar Singh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 09:52:19