mlDeploy 使用 DHF 5.8 失败

问题描述 投票:0回答:1

执行

./gradlew mlDeploy -i
命令时遇到以下错误。

记录 HTTP 响应正文以协助调试: {“errorResponse”:{“statusCode”:“400”,“status”:“错误请求”, "messageCode":"管理无效的有效负载", "message":"MANAGE-INVALIDPAYLOAD: (err:FOER0000) 有效负载有错误 结构、内容类型或值。角色负载无效。"}} 错误 向 /manage/v2/roles 发送 POST 请求时发生;记录 请求正文以协助调试: {"role-name":"%%mlHubAdminRole%%","description":"可以部署的角色 模块到数据中心 实例。","角色":["rest-admin","manage-admin","tde-admin"],"privilege":[{"privilege-name":"xdmp:set-server-field", “操作”:“http://marklogic.com/xdmp/privileges/xdmp-set-server-field”,“种类”:“执行”},{“特权名称”:“xdmp:get-server-字段","action":"http://marklogic.com/xdmp/privileges/xdmp-get-server-field","kind":"执行"},{"privilege-name":"manage","操作":"http://marklogic.com/xdmp/privileges/manage","kind":"执行"},{"privilege-name":"xdmp:eval","action":"http:// marklogic.com/xdmp/privileges/xdmp-eval","kind":"执行"},{"privilege-name":"xdmp:eval-in","action":"http://marklogic.com/ xdmp/privileges/xdmp-eval-in","kind":"执行"},{"privilege-name":"xdmp:invoke","action":"http://marklogic.com/xdmp/privileges/ xdmp-invoke","kind":"执行"},{"privilege-name":"xdmp:invoke-in","action":"http://marklogic.com/xdmp/privileges/xdmp-invoke-在","kind":"执行"},{"privilege-name":"xdbc:invoke","action":"http://marklogic.com/xdmp/privileges/xdbc-invoke","kind" :“执行”},{“权限名称”:“xdbc:invoke-in”,“操作”:“http://marklogic.com/xdmp/privileges/xdbc-invoke-in”,“种类”:“执行"},{"权限名称":"xdbc:eval","操作":"http://marklogic.com/xdmp/privileges/xdbc-eval","kind":"执行"},{"权限名称":"xdbc:eval-in","action":"http://marklogic.com/xdmp/privileges/xdbc-eval-in","kind":"执行"},{"privilege- name":"xdmp:document-load","action":"http://marklogic.com/xdmp/privileges/xdmp-document-load","kind":"execute"},{"privilege-name" :"xdmp:get-server-field-names","action":"http://marklogic.com/xdmp/privileges/xdmp-get-server-field-names","kind":"执行"}, {"privilege-name":"unprotected-collections","action":"http://marklogic.com/xdmp/privileges/unprotected-collections","kind":"execute"},{"privilege-name" :"any-uri","action":"http://marklogic.com/xdmp/privileges/any-uri","kind":"执行"}]}

请建议如何解决此问题。我们成功地使用以下命令使用管理员凭据升级了“hubUpdate”。

./gradlew hubUpdate -i

marklogic datahub
1个回答
0
投票

根据记录的内容:

"role-name":"%%mlHubAdminRole%%"
,似乎
%%mlHubAdminRole%%
令牌并未替换为
mlHubAdminRole
的名称。

是否有可能

mlHubAdminRole
属性未按您的预期/意图定义?

要查看将用于替换的所有令牌,只需运行此任务:

gradle mlPrintTokens

https://github.com/marklogic/ml-gradle/wiki/Configuring-resources#new-in-version-320

© www.soinside.com 2019 - 2024. All rights reserved.