# 错误码
| 错误码   | 错误信息                                                        | 描述                                    | 处理措施                                                   |
|:---|:---|:---|:---|
| 01   | Missing necessary argument.                                  | 必要参数缺失                                | 请您对命令参数进行检查                                         |
| 02   | Invalid argument provided.                                  | 无效参数                                | 请您对命令参数进行检查                                           |
| 03    | File operation failure.                                        | 文件操作错误                               | 请您检查目标文件或目录是否存在                                       |
| 04   | Ioctl get sandbox capacity failure.                          | Ioctl获取sandbox capacity错误           | 请您联系技术支撑人员帮您处理                                        |
| 05    | Ioctl define sandbox failure.                                | Ioctl定义sandbox错误                     | 请您联系技术支撑人员帮您处理                                        |
| 06 | Invalid parameters provided in configuration file.            | 配置文件中存在无效参数                           | 请您检查对应配置文件                                            |
| 07   | Missing necessary parameters in configuration file.         | 配置文件中缺少必要参数                        | 请您检查对应配置文件                                             |
| 08  | Mmap memory failure.                                        | Mmap内存错误                              | 请您联系技术支撑人员帮您处理                                         |
| 09   | Ioctl add memory failure.                                     | Ioctl增加内存错误                          | 请您联系技术支撑人员帮您处理                                       |
| 10   | Load image failure because provided memory is too small.    | 加载镜像错误，可能是因为设置的内存大小不够               | 请您在启动QingTian Enclave时，增加内存参数设置                       |
| 11 | Ioctl add cpu failure.                                       | Ioctl增加vcpu错误                       | 请您联系技术支撑人员帮您处理                                       |
| 12   | Lock acquire failure.                                      | 请求锁失败                               | 请您检查qt CLI日志信息，查看对应锁文件权限是否正常                            |
| 13  | Socket initialization failure.                                | Socket初始化失败                         | 请您联系技术支撑人员帮您处理                                          |
| 14    | Socket binding failure.                                     | Socket绑定错误                            | 请您联系技术支撑人员帮您处理                                        |
| 15   | Socket listen failure.                                      | Socket监听错误                            | 请您联系技术支撑人员帮您处理                                        |
| 16   | Socket accept failure.                                     | Socket执行接收错误                        | 请您联系技术支撑人员帮您处理                                          |
| 17   | Write heartbeat to the enclave failure.                       | 给QingTian Enclave写入心跳信息出错             | 请您联系技术支撑人员帮您处理                                       |
| 18    | Read heartbeat from the enclave failure.                    | 读取QingTian Enclave心跳信息出错            | 请您联系技术支撑人员帮您处理                                        |
| 19   | Ioctl start an enclave failure.                             | Ioctl启动QingTian Enclave失败           | 请您联系技术支撑人员帮您处理                                       |
| 20    | Wait heartbeat timeout.                                      | 等待心跳信息超时                            | 请您在启动QingTian Enclave时，增加内存参数配置；如未能解决，请您联系技术支撑人员帮您处理 |
| 21    | Get json print object failure.                              | 获取json打印对象失败                         | 请您检查cjson库是否正常                                         |
| 22   | Write enclave's configuration file failure.                 | 生成QingTian Enclave配置文件失败             | 请您查看qt CLI日志信息，排查相关文件权限；如未能解决，请您联系技术支撑人员帮您处理          |
| 23    | Socket connection failure                                    | Socket连接错误                           | 请您联系技术支撑人员帮您处理                                        |
| 24    | Write cmd to the enclave server failure.                    | 向QingTian Enclave后台服务写入命令失败         | 请您联系技术支撑人员帮您处理                                       |
| 25   | Read message from the enclave server failure.                | 获取QingTian Enclave后台服务信息失败           | 请您联系技术支撑人员帮您处理                                          |
| 26 | Create cjson object failure.                                  | 创建cjson对象失败                         | 请您检查cjson库是否正常                                        |
| 27    | Create cjson array failure.                                  | 创建cjson数组失败                          | 请您检查cjson库是否正常                                       |
| 28  | The required enclave is not running.                         | 被请求的QingTian Enclave实例并没有在运行         | 请您使用qt enclave query命令查看目前正在运行的QingTian Enclave     |
| 29  | Invalid enclave pid.                                          | 无效的Enclave PID                      | 请您联系技术支撑人员帮您处理                                        |
| 30  | Add number into cjson object failure.                         | 向cjson打印对象中增加数字失败                    | 请您检查cjson库是否正常                                       |
| 31    | Add string into cjson object failure.                      | 向cjson打印对象中增加字符串失败                   | 请您检查cjson库是否正常                                        |
| 32  | The required enclave is not running in the debug mode.     | 被请求的QingTian Enclave实例没有运行在debug模式下 | 请您使用qt enclave query 查询该QingTian Enclave运行模式         |
| 33   | Enclave console read failure.                                | QingTian Enclave console命令读取失败       | 请您联系技术支撑人员帮您处理                                       |
| 34  | Write img header failure.                                    | 创建镜像时，写入镜像头文件失败                     | 请您联系技术支撑人员帮您处理                                       |
| 35   | Write cmdline failure.                                      | 创建镜像时，写入cmdline失败                    | 请您联系技术支撑人员帮您处理                                        |
| 36  | Write kernel failure.                                      | 创建镜像时，写入kernel失败                     | 请您联系技术支撑人员帮您处理                                      |
| 37  | Write initrd failure.                                         | 创建镜像时，写入initrd失败                    | 请您联系技术支撑人员帮您处理                                        |
| 38   | Write certificate failure.                                   | 创建镜像时，写入证书失败                          | 请您联系技术支撑人员帮您处理                                        |
| 39   | Get pcr failure.                                              | 获取PCR值失败                              | 请您联系技术支撑人员帮您处理                                        |
| 40 | Add signature failure.                                       | 创建镜像时，对镜像签名出错                        | 请您联系技术支撑人员帮您处理                                        |
| 41     | Check enclave image info failure while building an eif file. | 构建eif镜像时检查到enclave镜像信息异常              | 请您联系技术支撑人员帮您处理                                        |
| 42                              | The required enclave is in maintenance state.                                            | 被请求的QingTian Enclave实例正处于维护阶段                                    | 请您联系技术支撑人员帮您处理                                                                  |
| 43                                | The cid has already been used.                                                           | cid已经在使用中                                                      | 请您重新指定未在使用中的cid                                                                   |
   
