Skip to main content

Error Code Catalog

This document lists all error codes used by Phala Cloud API. Error codes follow the format ERR-{MODULE}-{CODE} where:
  • MODULE: Two-digit module identifier (01, 02, 03, …)
  • CODE: Three-digit sequential error number within the module

Modules

  • Module 01 - CVM API / Preflight
  • Module 02 - Inventory
  • Module 03 - CVM Operations
  • Module 04 - Workspace

Module 01: CVM API / Preflight

Error CodeException ClassMessage
ERR-01-001NodeNotFoundErrorThe requested node is not available
Raised when specified node is not found
ERR-01-002ComposeFileRequiredErrorThe request contains invalid parameters
Raised when compose_file is required but not provided
ERR-01-003InvalidComposeFileErrorThe Docker Compose file contains errors
Raised when Docker Compose file is invalid
ERR-01-004DuplicateCvmNameError(dynamic: A CVM with name ’…)
Raised when a CVM name already exists in the workspace (HTTP 409)
ERR-01-005HashRegistrationRequiredCompose hash registration required on-chain
Raised when compose hash needs to be registered on-chain (HTTP 465)
ERR-01-006HashInvalidOrExpiredThe provided compose hash is invalid or has expired
Raised when compose hash is invalid or expired (HTTP 466)
ERR-01-007TxVerificationFailedTransaction verification failed
Raised when transaction verification fails (HTTP 467)
ERR-01-008HashNotAllowedThe compose hash is not allowed by the on-chain contract
Raised when compose hash is not allowed by the contract (HTTP 468)

Module 02: Inventory

Error CodeException ClassMessage
ERR-02-001InstanceTypeNotFoundErrorThe requested instance type does not exist
Raised when a requested instance type is not found.
ERR-02-002ResourceNotAvailableErrorNo available resources match your requirements
Raised when no suitable resources are found
ERR-02-003InsufficientVcpuErrorThe selected node does not have enough CPU capacity
Raised when teepod has insufficient vCPU resources.
ERR-02-004InsufficientMemoryErrorThe selected node does not have enough memory
Raised when teepod has insufficient memory resources.
ERR-02-005InsufficientSlotsErrorThe selected node has reached its maximum capacity
Raised when teepod has no available CVM slots.
ERR-02-006GpuAllocationErrorThe selected node does not have enough GPU resources
Raised when GPU allocation fails
ERR-02-007InsufficientGpuErrorThe selected node does not have enough GPU resources
Raised when teepod has insufficient GPU resources.
ERR-02-008InvalidRequestErrorThe request contains invalid parameters
Raised when request parameters are invalid
ERR-02-009IncompatibleConfigurationErrorThe configuration parameters are not compatible with each other
Raised when resource configuration is not compatible
ERR-02-010ImageNotFoundErrorThe requested operating system image is not available
Raised when a requested OS image is not found.
ERR-02-011KmsNotFoundErrorThe requested security configuration is not available on this node
Raised when no matching KMS is found on teepod.
ERR-02-012TeepodNotAccessibleErrorThe requested node is not available
Raised when user doesn’t have permission to access a teepod.
ERR-02-013OsImageNotCompatibleErrorThe requested operating system image is not available
Raised when no compatible OS image is found.
ERR-02-014NodeCapacityNotConfiguredErrorThe requested node is not available
Raised when node capacity is not properly configured.
ERR-02-015QuotaExceededErrorYour account has reached its resource quota
Raised when team resource quota would be exceeded.

Module 03: CVM Operations

Error CodeException ClassMessage
ERR-03-001CvmNotFoundErrorThe requested CVM was not found
Raised when a CVM is not found by the given identifier.
ERR-03-002MultipleCvmsWithSameNameErrorMultiple CVMs have the same name in this workspace
Raised when multiple CVMs share the same name in a workspace.
ERR-03-005CvmAccessDeniedErrorThe requested CVM was not found
Raised when user lacks permission for CVM operation.

Module 04: Workspace

Error CodeException ClassMessage
ERR-04-001InsufficientBalanceErrorYour account balance is too low to create new resources
Raised when account balance is too low
ERR-04-002MaxCvmLimitErrorYour account has reached the maximum number of instances
Raised when VM count limit is reached
ERR-04-003ResourceLimitExceededErrorThe requested resources exceed your account limits
Raised when resource limits are exceeded