文档首页> 数据复制服务 DRS> 故障排除> 失败案例> MongoDB->DDS实时迁移> 全量迁移失败报错,关键词“not authorized on *** to execute command {***}”
更新时间:2023-11-30 GMT+08:00

全量迁移失败报错,关键词“not authorized on *** to execute command {***}”

场景描述

MongoDB->DDS实时迁移场景,全量迁移报错,日志提示信息:service DATAMOVE failed, cause by: apply event=[type=table_data, batch_index_in_shard=1, table_schema=***, table_name=***, record_num=2720] occur error, msg=Command failed with error 13 (Unauthorized): 'not authorized on *** to execute command {***}。

可能原因

DRS使用的迁移账号在目标库无写入权限。

处理方法

  1. 参考Mongo数据库官方文档或DDS用户指南为DRS迁移账号赋权,使其具备目标库写入权限。
  2. 调整完成后,在任务列表中,单击任务对应操作列的“续传”,重新提交任务。