【问题标题】:MarkLogic offline Data Hub deployment issueMarkLogic 离线数据中心部署问题
【发布时间】:2021-02-02 07:05:33
【问题描述】:

我一直在尝试重新部署我们用来部署到其他环境的现有数据中心项目,但在此我正在部署到新服务器。该项目被压缩,复制到一个 linux 机器并通过 gradle(包含在 zip 文件中)进行部署。

奇怪的是部署正常,然后我们得到错误。模块数据库存在,并且分配给它的有效应用服务器和端口与我们的其他服务器相同。

使用的命令:

 ./gradlew mlRedeploy --info  --offline

错误:

> Task :mlClearModulesDatabase FAILED
  Task ':mlClearModulesDatabase' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
  Clearing DHF modules from modules database
  Failed to clear user modules
  :mlClearModulesDatabase (Thread[Execution worker for ':' Thread 2,5,main]) completed. Took 1.063 secs.

   FAILURE: Build failed with an exception.

   * What went wrong:
   Execution failed for task ':mlClearModulesDatabase'.
   > Local message: delete failed: Not Found. Server Message: Server (not a REST instance?) did not 
   respond with an expected REST Error message.

作为部署的一部分,有一个离线存储库目录被复制到服务器上。

任何帮助表示赞赏....

【问题讨论】:

    标签: marklogic


    【解决方案1】:

    mlRedeploy 就是mlClearModulesDatabase + mlDeploy;该用例适用于已经部署应用程序并且您希望确保已从项目中删除并从模块数据库中删除的所有模块。但是,如果尚未部署应用程序,这将失败,我认为这里就是这种情况,因为您提到您正在部署到新服务器。

    所以只需运行mlDeploy

    【讨论】:

    • 谢谢 - 这有很大的不同。我现在收到一个内部服务器错误,我认为这可能是一个不同的问题。我将发布一个单独的问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-01
    相关资源
    最近更新 更多