更新时间:2024-03-14 GMT+08:00
分享

错误码

调用接口出错后,将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。 当调用出错时,HTTP请求返回一个HTTP状态码。返回的消息体中是具体的错误编码及错误描述信息。

当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。

表1 v3接口错误码

状态码

错误码

错误信息

描述

处理措施

422

DRS.M00002

The returned result is empty.

服务返回结果为空。

请检查请求参数或者任务状态。

422

DRS.M00004

Service is abnormal. Check logs.

服务异常,需要查看日志。

服务异常,请联系技术人员处理。

400

DRS.M00007

Invalid request parameter.

请求参数非法。

请检查请求参数。

403

DRS.M00100

Invalid token.

IAM鉴权不合法。

请检查请求的用户token信息。

404

DRS.M00101

The user role is empty.

用户角色为空。

请检查用户拥有的角色信息。

403

DRS.M00102

You do not have sufficient permissions.

用户权限不足。

请检查当前用户的DRS权限。

401

DRS.M00103

You do not have operation permissions. Check account permissions on IAM.

当前用户没有操作权限,请通过IAM检查账号权限。

请检查当前用户的DRS权限。

400

DRS.M00105

User restricted.

用户受限。

请检查当前用户的DRS权限。

400

DRS.M00200

Parameter error.

参数错误。

请检查请求参数。

400

DRS.M00201

The parameter %s is empty.

%s 参数为空。

请检查请求参数。

400

DRS.M00202

The value of parameter %s is invalid.

%s 取值不合法。

请检查请求参数。

400

DRS.M00210

The value of Page is invalid, %s

无效的Page值,%s。

请检查请求的page参数。

400

DRS.M00211

The value of Page exceeds the upper limit.

Page超过上限。

请检查请求的page参数。

403

DRS.M00261

Invalid project ID.

无效的项目ID。

请检查请求参数project ID。

400

DRS.M00269

The tag key must be unique.

标签键不能重复。

请检查请求参数中的标签键值。

400

DRS.M00270

The tag key or value is too long.

标签键或值过长。

请检查请求参数中标签键或值的长度。

400

DRS.M00271

The number of tags exceeds the limit.

标签个数超过限制。

请检查请求参数中的标签个数。

400

DRS.M00273

Invalid parameter. The parameter contains %s.

参数不合法,参数中存在%s。

请检查请求参数。

422

DRS.M00277

The task name already exists.

该任务名称已存在。

请更换任务名称。

400

DRS.M00298

Job does not exist, please check job id.

任务不存在,请检查任务id是否正确。

请检查请求参数。

400

DRS.M00299

Only one jobId is allowed.

只允许传入一个jobID。

请检查请求参数。

400

DRS.M00300

Invalid request, %s

请求无效,%s。

请检查请求参数。

400

DRS.M00301

There are duplicate %s in request.

请求里有重复的任务ID。

请检查请求参数。

400

DRS.M00302

The transfer schema is invalid, please refer to supported transfer schema.

迁移方案无效,请参考支持的方案。

请检查请求参数。

400

DRS.M00303

The corresponding parameter is not obtained from the cache.

未从缓存中获取对应参数。

请检查请求参数。

400

DRS.M00304

This API cannot be called in the current task status.

当前任务状态不能调用此API。

请检查当前任务状态。

400

DRS.M00305

Parameter error:%s

参数错误:%s。

请检查请求参数。

400

DRS.M00306

Start time can not same with end time.

开始时间不能与结束时间相同。

请检查请求参数。

400

DRS.M00307

Only subtasks can invoke this interface.

只有子任务能用该接口。

请更换任务ID。

400

DRS.M00308

Only parent tasks can invoke this interface.

只有父任务能用该接口。

请更换任务ID。

400

DRS.M00401

%s is not support re-editing of synchronization tasks.

%s 不支持重新编辑同步任务。

请更换任务ID。

400

DRS.M00402

The edit subtask already exists in the task.

子任务已存在。

请更换任务ID。

400

DRS.M00403

The job is not support modify the speed limit.

该任务不支持限速。

请更换任务ID。

422

DRS.M00414

The value for Logical Copy Slot Advance Interval must be between 1 and 999.

逻辑复制槽推进间隔的值必须在1到999之间。

请修改逻辑复制槽推进间隔的值。

422

DRS.M01501

Service error.

服务异常。

服务异常,请联系技术人员处理。

202

DRS.M01504

Another operation is being performed on the migration task or the migration task is abnormal.

该迁移任务正在进行其他操作或该迁移任务故障,无法执行该操作,请稍后重试。

请检查当前任务状态。

400

DRS.M05003

Task information not found.

查询不到任务信息。

请检查请求的任务ID。

400

DRS.M05004

The task has been deleted or the resource has been released.

任务已删除或资源已释放。

请检查当前任务状态。

422

DRS.M05006

Invalid RDS DB instance.

RDS实例非法。

请检查请求的RDS实例ID。

200

DRS.M05066

Failed to create instance!

创建实例失败。

请联系技术人员处理

400

DRS.M06007

The DB instance cannot be left blank.

数据库实例不能为空。

请检查请求的RDS实例ID。

422

DRS.M06011

Failed to obtain RDS information.

获取RDS信息失败。

请检查请求的RDS实例ID。

422

DRS.M06020

The destination DB instance has been set to read/write by the migration task %s and cannot be used.

目标库实例已被迁移任务%s设置为读写,无法使用该实例。

请更换请求的RDS实例ID。

422

DRS.M06021

The destination DB instance has been set to read/write by the synchronization task %s and cannot be used.

目标库实例已被同步任务%s设置为读写,无法使用该实例。

请更换请求的RDS实例ID。

400

DRS.M07000

The data transformation is already existed!

数据加工规则已存在。

请修改请求的数据加工规则。

200

DRS.KE0001

Failed to connect to the database network.

连接数据库网络失败。

请检查数据库与迁移实例的网络配置。

200

DRS.KE0002

The username or password is incorrect.

用户名或密码错误。

请检查用户名或者密码。

200

DRS.KE0003

The port cannot be accessed.

端口无法访问。

请检查数据库端口。

200

DRS.KE0004

Connection failed.Handling suggestion: Please check the security group/firewall/SSL configuration of the database.

连接失败。

请检查数据库的安全组/防火墙/SSL配置。

200

DRS.KE0005

The database user must allow remote connections.Handling suggestion: Run CREATE USER 'Account'@'%' IDENTIFIED BY 'Password' to create a user that allows remote connections. After the migration, delete this user.

数据库用户必须允许远程连接。

运行CREATE USER'Account'@'%' IDENTIFIED BY 'Password',创建允许远程连接的用户。迁移完成后,删除该用户。

200

DRS.KE0006

The remote connection permission is not configured in pg_hba.conf for the replication instance and database user.Handling suggestion: Add \"host all ***(dbuser) 0.0.0.0/0 password\" to the pg_hba.conf configuration file to grant the remote connection permission to the user and restart the database. After the migration is complete, delete this record and restart the database again.

pg_hba.conf中没有为复制实例和数据库用户配置远程连接权限。

在pg_hba.conf配置文件中添加\"host all ***(dbuser) 0.0.0.0/0 password\",赋予用户远程连接权限,并重新启动数据库。迁移完成后,删除该记录,然后重新启动数据库。

200

DRS.KE0007

The database user does not have the login permission.Handling suggestion: Run alter role *** (dbuser) login to grant the login permission.

数据库用户没有登录权限。

执行“修改角色*** (dbuser)登录”命令,赋予登录权限。

200

DRS.KE0008

The specified source database does not exist. Handling suggestion: Create a database or enter an existing database name.

指定的源数据库不存在。

创建数据库或输入现有数据库名称。

200

DRS.KE0009

The SSL CA certificate does not exist.Handling suggestion: Contact technical support.

SSL CA证书不存在。

请联系技术支持。

200

DRS.KE0010

SSL is not enabled or the certificate is invalid. Handling suggestion: Enable SSL or upload a valid SSL CA certificate.

SSL未启用或证书无效。

启用SSL或上传有效的SSL CA证书。

200

DRS.KE0011

The source database does not have the Microsoft SQL Server replication component installed.

源数据库未安装Microsoft SQL Server复制组件。

安装Microsoft SQL Server复制组件。

200

DRS.KE0012

The user does not have the permission to access the database.

用户没有访问数据库的权限。

给用户添加访问数据库的权限。

200

DRS.KE0013

Insufficient permissions.

权限不足。

给用户添加访问数据库的权限。

200

DRS.KE0014

Internal error.

内部错误。

请联系技术支持。

200

DRS.KE0015

The network connection between the replication instance and database is faulty.

迁移实例与数据库之间的网络连接故障。

请联系技术支持。

200

DRS.KE0016

Failed to connect to the database. In the postgresql.conf file, the listen_addresses parameter value or port number is incorrect.Handling suggestion: In postgres.conf, set listen_addresses to * or change the port number to the correct value. Then, restart the database for the modification to take effect.

连接数据库失败。postgresql.conf文件中,监听地址参数值或端口号不正确。

在postgres.conf中,将监听地址设置为*或将端口号修改为正确的值。然后重启数据库,使修改生效。

200

DRS.KE0017

The IP address cannot be pinged.Handling suggestion: See migration preparations in the DRS Best Practices.

无法ping通IP地址。

请参见DRS最佳实践中的迁移准备。

200

DRS.KE0018

Failed to resolve the domain name.

域名解析失败。

请参见DRS最佳实践中的迁移准备。

200

DRS.KE0019

Failure cause: The subnets of any of the source, destination, or replication (synchronization or disaster recovery) instances in different VPCs overlap.

源库、目标库以及迁移(同步、灾备)实例的其中任意两实例所属VPC的子网CIDR存在重叠

请参见DRS最佳实践中的迁移准备。

200

DRS.KE0020

Incorrect replica set name.

副本集名称错误。

请联系技术支持。

200

DRS.KE0021

The source database cannot connect to the port of the replication instance.Handling suggestion: Modify the firewall and security group configurations of the source and destination databases to enable the source database to connect to the port of the replication instance. See migration preparations in the DRS Best Practices.

源数据库无法连接到复制实例的端口。

修改源数据库和目标数据库的防火墙和安全组配置,使源数据库连接复制实例的端口。请参见DRS最佳实践中的迁移准备。

200

DRS.KE0022

The SSL certificate is incorrect.Handling suggestion: Upload a correct SSL certificate.

SSL证书错误。

上传正确的SSL证书。

200

DRS.KE0023

The DRS EIP is not in the whitelist of the source database.Handling suggestion: Add the DRS EIP to the whitelist of the source database.

DRS弹性公网IP不在源数据库的白名单中。

将DRS弹性公网IP添加到源数据库的白名单中。

200

DRS.KE0030

The service name is incorrect.Handling suggestion: Check whether the service name is correct before the connection test.

数据库服务名错误。

检查测试连接时输入的数据库服务名是否正确。

200

DRS.KE0031

Query failed.Handling suggestion: Check whether the migration account has sufficient permissions.

查询失败。

检查迁移账号是否有足够的权限。

200

DRS.KE0032

The Oracle certificate is incorrect.Handling suggestion: Upload a correct Oracle certificate.

Oracle证书错误。

上传正确的Oracle证书。

200

DRS.KE0033

The username, password, or authentication database of the source database is incorrect.Handling suggestion: Check that the input username, password, and authentication database for the connection test are correct.

源数据库的用户名、密码或鉴权数据库错误。

检查连接测试输入的用户名、密码和认证数据库是否正确。

200

DRS.KE0034

The username, password, or authentication database of the destination database is incorrect.Handling suggestion: Check that the input username, password, and authentication database for the connection test are correct.

目标数据库的用户名、密码或鉴权数据库错误。

检查连接测试输入的用户名、密码和认证数据库是否正确。

200

DRS.KE0035

The database middleware is not a MySQL sharding middleware.

数据库中间件不是MySQL分片中间件。

请联系技术支持。

200

DRS.KE0036

SSL must be enabled when the database password plugin caching_sha2_password is verified.Handling suggestion: Enable SSL or create a user.

验证数据库密码插件cache_sha2_password时,必须启用SSL。

启用SSL或创建用户。

200

DRS.KE0037

The username or password is incorrect.Handling suggestion: Check that the input username and password for the connection test are correct.

用户名或密码错误。

检查连接测试输入的用户名和密码是否正确。

200

DRS.KE0038

The account is locked.Handling suggestion: Contact technical support to unlock the account.

账号已锁定。

请联系技术支持人员解锁账号。

200

DRS.KE0039

The database cannot be connected because the client IP address is not in the whitelist.Handling suggestion: Use an account with the ALTER SYSTEM permission and execute the following SQL statement: alter system add hba entry (hostssl [Username] [Subnet of the RDS instance]);.

客户端IP地址不在白名单中,无法连接数据库。

使用具备ALTER SYSTEM权限账号,执行以下sql: alter system add hba entry (hostssl [用户名] [RDS实例所属的子网网段])

200

DRS.KE0040

The kafka brokers is not available.

Kafka节点不可用。

请联系技术支持。

200

DRS.KE0041

The kafka is not available.

Kafka不可用。

请联系技术支持。

200

DRS.KE0042

The kafka topic is not existed.

kafka主题不存在。

请联系技术支持。

200

DRS.KE0043

The user does not have the permission to create connections.Grant the required permission to the user and try again.

用户没有创建连接的权限。

为用户授予所需的权限,然后重试。

200

DRS.KE0044

The parameters for test connection contains non-ascii character. Handling suggestion: Please check test connection parameters, use user info without NON-ASCII characters to test connection.

测试连接的参数包含非ascii字符。

请检查测试连接参数,使用不带非ASCII字符的用户信息测试连接。

200

DRS.KE0045

The user account is locked.

用户账号已锁定。

请联系技术支持。

200

DRS.KE0046

The IP address that the user requested to establish a connection is not monitored by the database.

用户请求建立连接的IP地址不受数据库监控。

请联系技术支持。

200

DRS.KE0047

The queue name is not exist.Handling suggestion: Check that the input queue name for the connection test are correct.

队列名称不存在。

检查连接测试的输入队列名称是否正确。

200

DRS.KE0048

Failed to connect to the database.

连接数据库失败。

请联系技术支持。

200

DRS.KE0049

Database user privilege is not enough.

数据库用户权限不足。

请联系技术支持。

200

DRS.KE0050

The PDB database is not open.

PDB数据库未打开。

打开PDB数据库。

200

DRS.KE0051

The PDB database does not exist.

PDB数据库不存在。

请联系技术支持。

200

DRS.KE0052

Versions earlier than Oracle 12c do not support PDB.

Oracle 12c以下版本不支持PDB。

请联系技术支持。

200

DRS.KE0053

Entered Oracle user has insufficient permissions.

输入的Oracle用户权限不足。

请联系技术支持。

200

DRS.KE0054

Agent Connection Failed.Handling suggestion: Please check whether the logical replication agent is enabled or IP address and port number of the logical replication agent is correct.

Agent连接失败。

确认逻辑复制代理是否启用,或逻辑复制代理的IP、端口是否正确。

200

DRS.KE0055

Password has expired.Handling suggestion: Please reset the password.

密码过期。

请重置密码。

200

DRS.KE0056

The current instance does not support connections on multiple IP addresses during synchronization. Possible cause: The current instance is connected to a node through multiple IP addresses, which can cause a task to fail. Handling suggestion: Select a stable node, enter the single IP address of the node, and try to connect to the instance again.

当前实例的数据同步不支持用多IP方式进行连接。

请选择某个相对稳定的节点,填写该节点的单IP重新尝试连接。

200

DRS.KE0057

The Kafka user name or password is incorrect.

Kafka的用户名或密码不正确。

请检查用户名或者密码。

200

DRS.KE0058

The Kafka encryption certificate or certificate password is incorrect.

Kafka加密证书或证书密码不正确。

请检查用户名、密码或者证书。

200

DRS.KE0059

The connected DB engine does not match the DB engine supported by the task.

连接的数据库引擎与任务支持的数据库引擎不匹配。

请联系技术支持。

200

DRS.KE0060

Test connection is succeeded.Handling suggestion: The Oracle database is a RAC cluster. You are advised to use the SCAN IP address as the connection. For details, see here.

测试连接成功。

所提供的Oracle为RAC集群,建议使用SCAN IP作为连接。

200

DRS.KE0061

Possible reasons are:1. The node status is abnormal.2. The primary node information is not specified.3. The whitelist of pg_hba.conf is not configured.4.The network is abnormal.

测试连接失败。可能原因是:1、节点状态异常2、未填写主节点信息3、未配置pg_hba.conf白名单4、网络异常

请联系技术支持。

200

DRS.KE0062

The archived space is full, need to release.

归档空间已满,需要释放。

清理归档空间。

200

DRS.KE0063

The database query result is empty. The database does not have a table or does not have the SELECT permission on the table.

库查询结果为空,库不存在表或者没有表的SELECT等相关权限。

请联系技术支持。

200

DRS.KE0064

The account password has expired.Handling suggestion: Changing the Expired Status of a User to OPEN.Refer to the modification statement: UPDATE SYS.USER$ SET ASTATUS = 0 WHERE NAME = 'user_name'.

账号的密码过期。

修改用户过期状态为OPEN状态.参考修改语句:UPDATE SYS.USER$ SET ASTATUS = 0 WHERE NAME = 'user_name'.

200

DRS.KE0065

Database access denied. Handling suggestion: 1.Check whether the database name is correct before the connection test. 2.Check whether the DB2 database listening port number is correct. 3.Check whether the DB2 server is stopped. 4.Check whether the Firewall is stopped.

数据库访问被拒绝。

1.连接测试前检查数据库名称是否正确。2.检查DB2数据库的监听端口号是否正确。3.检查DB2服务器是否停止。4.检查防火墙是否关闭。

200

DRS.KE0066

The number of DRS task shards must be the same as the actual number of GaussDB shard nodes.

DRS任务分片数应与GaussDB实际的分片节点数保持一致。

请联系技术支持。

200

DRS.KE0067

Cannot open user default database.

无法打开用户默认数据库。

请联系技术支持。

200

DRS.KE0068

The GTID format is incorrect.

GTID格式不正确。

请联系技术支持。

200

DRS.KE0069

The specified point is unavailable, the specified point must be between the task start point and the current point.

指定位点不满足要求,需要处于任务启动位点和当前位点之间。

请联系技术支持。

200

DRS.KE0070

Connection failed.Handling suggestion: Please check the security group/firewall/SSL configuration/pg_hba.conf whitelist of the database.

连接失败。

请检查数据库的安全组/防火墙/SSL配置/pg_hba.conf白名单。

表2 v5接口错误码

状态码

错误码

错误信息

描述

处理措施

400

DRS.10000001

Failed

失败。

请联系技术人员处理。

400

DRS.10020000

Parameter error:%s

参数错误%s

请检查请求参数。

400

DRS.10020001

Parameter %s is null

参数%s为空。

请检查请求参数。

400

DRS.10020002

The value of parameter %s is invalid.

%s 参数取值不合法

请检查请求参数。

400

DRS.10000010

The task does not exist. Check the task ID.

任务不存在,请检查任务ID。

请检查任务ID。

400

DRS.10000011

The database is abnormal.

数据库异常。

请联系技术人员查看日志。

400

DRS.10000012

The start time cannot be the same as the end time.

开始时间不能与结束时间相同。

修改请求参数中的时间。

400

DRS.10010000

The start time cannot be the same as the end time.

开始时间不能与结束时间相同。

修改请求参数中的时间。

400

DRS.10010002

Async job param checking, Please wait param check complete and resubmit.

异步任务正在参数校验中, 请等待参数校验完成后再提交。

等待参数校验完成后再提交。

400

DRS.10010004

Submit job failed.

提交任务失败。

请联系技术人员查看日志。

400

DRS.10010006

Create job failed.

创建任务失败。

请联系技术人员查看日志。

400

DRS.10010007

Test connection failed.

测试连接失败。

请联系技术人员查看日志。

400

DRS.10010009

Set policy config failed,%s

设置任务策略失败,%ss。

检查任务策略。

400

DRS.10010010

Set progressing data failed,%s

设置数据加工数据失败,%s。

检查数据加工规则。

400

DRS.10010011

Set user migration data failed,%s

设置用户迁移数据失败,%s。

检查用户迁移设置。

400

DRS.10010012

Precheck failed,%s

预检查失败,%s。

请联系技术人员查看日志。

400

DRS.10010013

Database param modify success, please restart the database.

数据库实例参数已修改,请重启数据库。

请重启数据库。

400

DRS.10010014

Start job failed,%s

启动任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010016

%s is an EPS system tag and cannot be added manually.

%s 是EPS系统标签,无法手动添加。

请检查标签参数。

400

DRS.10010024

Param check failed,%s

参数校验失败,%s。

请检查参数。

400

DRS.10010025

The current API does not support this %s engine type now.

当前API现在不支持此引擎类型。

请修改请求参数。

400

DRS.10010026

Reset job failed,%s.

重置任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010027

Restart job failed,%s.

重试任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010028

Pause job failed,%s.

暂停任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010029

Teminate job failed,%s.

结束任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010030

Delete job failed,%s.

删除任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010031

Test connection timeout.

测试连接超时。

请联系技术人员查看日志。

400

DRS.10010032

Failed to create the comparison task,%s.

创建对比任务失败,%s。

请联系技术人员查看日志。

400

DRS.10010033

Query progress failed,%s.

查询任务进度失败,%s。

请联系技术人员查看日志。

400

DRS.10020072

Invalid projectId.

无效的Project ID。

请检查项目ID。

400

DRS.10020077

Duplicate task name.

任务名称重复。

请检查任务名称。

400

DRS.10030000

Excel content is empty.

上传的Excel内容为空。

请检查上传的excel。

400

DRS.10030001

Excel file size is too large, exceeds the threshold %s.

上传的Excel大小超过阈值,阈值为:%s。

请检查上传的excel大小。

400

DRS.10030002

Excel has more than one sheet.

上传的Excel的sheet超过1个。

请检查上传的excel文件数量。

400

DRS.10030003

The object name is invalid.

对象名称不合法。

请检查对象名称。

400

DRS.10030004

Support the file name extension can be ZIP, JSON, TXT, or Excel 2007 or later (with the file name extension .xlsx/.xls).

支持导入ZIP、JSON、TXT、Excel 2007及以上版本(后缀名为.xlsx/.xls)

请检查导入excel格式。

400

DRS.10030005

Export excel fail.

导出excel文件失败。

请联系技术人员查看日志。

400

DRS.10030006

The file name format is %s.

文件名仅支持 %s。

请检查文件名称。

400

DRS.10030007

The supported file format is .xls or .xlsx. Please check.

支持的文件格式为.xls或.xlsx,请检查。

请检查文件格式。

400

DRS.10030008

Failed to download the file.

下载文件失败。

请联系技术人员查看日志。

400

DRS.10030009

Failed to export data, because %s.

因为%s,导出数据失败。

请联系技术人员查看日志。

400

DRS.10030010

The information of imported database is empty. Please check.

请检查,库信息为空。

请检查导入文件。

400

DRS.10030011

The number of selection database exceeds the limit of 5000.

选择数据库的数量超过了5000的限制。

请检查导入文件。

400

DRS.10030012

Failed to import the Excel file.

导入excel文件失败。

请联系技术人员查看日志。

400

DRS.10020111

The length exceeds %s.

超过限制的长度%s

请检查参数长度。

400

DRS.10060015

Task is waiting for running.

任务正在等待运行

请检查参数长度。

分享:

    相关文档

    相关产品