Create failure kinds

The fixed error_kind words a failed sandbox or Space create sends, and what each means.

When a create fails, cua_space_create, cua_sandbox_created and cua_host_space_provided set error_kind to a fixed word for the cause. The program reads the error on your machine and sends only the word, never the error text.

error_kindCause
image_pull_not_foundThe image is not in the registry.
image_pull_authThe registry refused the download.
image_pull_networkThe network failed or timed out during the download.
image_pull_rate_limitedThe registry rate-limited the download.
image_pullThe download failed for another reason, or stopped partway.
insufficient_diskNot enough disk space.
runtime_missing, runtime_not_running, runtime_permissionThe local runtime (Docker, Lume, QEMU) is not installed, not running, or not allowed.
virtualization_unavailableThe machine cannot run VMs (no Virtualization.framework, KVM or hardware virtualization).
vm_limitThe Mac already runs the two macOS VMs Apple allows.
vm_boot_timeoutThe VM did not finish booting in time.
services_unreachableThe Space booted but its services never answered.
local_networkmacOS Local Network privacy blocked the connection to the new VM. cua_space_create says why in error_subclass: local_network_denied (Local Network access is off for the app) or local_network_vpn (access is on, but a VPN or firewall blocks the Mac's own VM network).
out_of_memoryThe machine ran out of memory for the guest.
port_in_useA port the Space needs is already taken.
file_accessA file or folder could not be written (access denied, in use, path too long).
networkThe machine could not reach the network (DNS, proxy, certificate) outside the image download.
quota_exceededThe account's quota, plan limit or credits ran out.
cloud_endedThe create asked for Cua Cloud, which has ended. The create is refused up front; it is not a failure to fix.
cancelledYou cancelled the create.

Otherwise it is the error's type (for example unauthenticated, timeout, runtime), and other only when nothing names the cause. A failed create never reports none.

Finer causes#

The Spaces app's cua_space_create also sets error_subclass where error_kind alone is too coarse. It is none when there is nothing finer to say.

error_subclassCause
runtime_startA local runtime did not start this time (the built-in Linux runtime, its Docker engine, Apple's container services, a microVM).
daemon_unresponsiveCua's background service did not take the create in time.
pull_interruptedThe image download stopped partway. Another try resumes it.
local_network_deniedmacOS Local Network privacy is off for the app or its service.
local_network_vpnA VPN routes the VM's private network away.
capacity_vmshost_capacity: this machine had no room and Cua VMs it runs hold the capacity (the error names them so the person can stop them). A VM left running by an earlier failed attempt shows up here.
capacity_otherhost_capacity: this machine had no room while no Cua VM runs there; other programs use its memory or CPUs, or its limits are too tight.
runtime_install_failedThe built-in runtime (Lume) could not be set up: its download, checksum or unpacking failed.
runtime_not_signedThe built-in runtime's signature did not verify.
runtime_unresponsiveThe runtime's service started and never answered.
runtime_too_oldThis Mac's own Lume is older than macOS Spaces need.
runtime_api_errorThe runtime's API answered with an error, or not at all.
vm_never_startedThe VM was created and never started, stopped while booting, or vanished while booting.
vm_config_invalidThe VM's configuration was refused.
host_command_failedA host command the create ran (lume, codesign) exited with an error.

Failed step#

cua_space_create also sets failed_step, the step inside failed_phase a failure stopped at. It is worked out on your device from the fixed words above (the phase, error_kind and error_subclass), never from the error text. It is none when the create worked or was cancelled.

failed_stepStep
check_hostThe checks before anything starts (this Mac can't run VMs, Local Network, disk).
start_runtimeThe local runtime: Lume, the container engine, the built-in Linux runtime.
reach_daemonCua's background service took no create.
resolve_imageFinding the image.
pull_imageDownloading the image.
clone_diskPreparing a VM's disk.
create_containerCreating a container.
configure_vmThe Space's settings were refused.
start_vmBooting the VM or container.
connect_servicesReaching the Space's own services once it booted.
unknownNothing narrows the phase down; these are what still need a name.

Automatic retry#

The Spaces app runs a create once more by itself, and says Retrying…, when it fails for a reason that usually passes: runtime_start, daemon_unresponsive, pull_interrupted, image_pull_network, vm_boot_timeout or services_unreachable. It never retries a lasting cause, such as insufficient_disk, runtime_permission, runtime_missing, runtime_not_running, unsupported, invalid_argument, local_network, out_of_memory or quota_exceeded.

cua_space_create is sent once per create, for its final outcome, with retry_attempt set to 1 when the app retried it. A retried create that worked sends outcome ok with the error_subclass of the failure it got past.