MarkLogic 离线数据中心部署问题

MarkLogic offline Data Hub deployment issue

我一直在尝试重新部署我们用来部署到其他环境的现有数据中心项目,但在此我正在部署到新服务器。该项目被压缩,复制到 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.

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

感谢任何帮助....

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

所以只 运行 mlDeploy 代替。