Help Center/ Data Replication Service/ Troubleshooting/ Failure Cases/ Real-Time Migration from MongoDB to DDS/ Full Migration Error: not authorized on *** to execute command {***}
Updated on 2024-11-30 GMT+08:00

Full Migration Error: not authorized on *** to execute command {***}

Scenarios

During real-time migration from MongoDB to DDS, an error is reported during full migration. The log information is as follows: 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 {***}.

Possible Causes

The migration account used by DRS does not have the write permission on the destination database.

Solution

  1. Grant the destination database write permission to the DRS migration account. For details, see the MongoDB official documents or DDS user guide.
  2. After the adjustment is complete, click Resume in the Operation column to resume the task.