首页 > 解决方案 > MarkLogic 内容泵 (MLCP) 错误 - 无法更新目录 URI 的服务器维护属性

问题描述

我正在运行 MLCP 将代码复制到模块数据库中,并收到以下“无法更新服务器维护的属性”错误:

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 / 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /marklogic.rest.resource/status/assets/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /marklogic.rest.resource/addProject/assets/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /marklogic.rest.resource/integrityCheck/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /Default/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /marklogic.rest.resource/docInventory/assets/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /marklogic.rest.resource/addDoc/assets/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /marklogic.rest.resource/deleteProject/ 设置文档属性时出错:无法更新服务器维护的属性

21/05/20 12:17:12 错误 contentpump.DatabaseContentWriter:为 /Default/rts-doc-api2/rest-api/options/ 设置文档属性时出错:无法更新服务器维护的属性

模块实际上已安装,因此看起来这是创建目录 URI 的问题。

上次修改的维护和上次修改的维护目录设置为 false,我不愿意设置-copy_properties false-copy_permissions false因为我不想为实际模块删除这些。

mlcp 脚本如下所示:

./mlcp.sh import -host localhost -port 8000 -username ___ -password ___ -mode local -database api-modules -input_file_path /backups/api-modules -input_file_type archive -input_compressed

标签: modulepropertiesmarklogicmlcp

解决方案


推荐阅读