Troubleshooting
Start with the exact CLI message, HTTP status, API error code, and execution ID. Do not include an API key, password, session token, or submitted source when sharing diagnostics.
The console denies access
Section titled “The console denies access”mPaka is access-controlled during private beta. Contact the person or organization that issued your invitation and ask them to confirm access for the email address you are using. CLI registration alone does not grant console admission.
MPAKA_API_KEY is missing
Section titled “MPAKA_API_KEY is missing”mpaka run and mpaka executions stop before making a request when the
variable is absent or blank.
Create a key in the console, then enter it without putting the token in shell history:
printf 'mPaka API key: 'read -r -s MPAKA_API_KEYprintf '\n'export MPAKA_API_KEYIn PowerShell, use a secure prompt:
$secureKey = Read-Host 'mPaka API key' -AsSecureString$env:MPAKA_API_KEY = (New-Object System.Net.NetworkCredential('', $secureKey)).PasswordRemove-Variable secureKeyDo not pass the token as a command-line argument.
The CLI can also create a key with mpaka api-keys create --name development after
you sign in. It prints the token once to standard output and does not save it;
avoid capturing that output in logs, and store the value in a secret manager.
The API keys guide covers safe rotation and recovery.
mpaka api-keys uses your saved account session. If those commands report an
invalid session, sign in again with mpaka login; workload commands still need
MPAKA_API_KEY separately.
invalid_api_key
Section titled “invalid_api_key”The bearer credential is missing, invalid, revoked, or was replaced by a rotation. Confirm that the intended client received the current token and that the environment variable contains no surrounding whitespace. Create or rotate the key in the console when its value can no longer be trusted.
If the token was lost after creation or rotation, create another key or rotate the existing one and store the newly returned token. Rotation invalidates the old token.
invalid_session
Section titled “invalid_session”The CLI’s saved account session has expired or was revoked. Sign in again:
mpaka login --email user@example.comAn account session supports account and API-key management commands; it does
not replace MPAKA_API_KEY for workload requests.
registration_closed
Section titled “registration_closed”Self-registration is closed during the private beta. Contact the person or organization that issued your invitation and ask them to confirm account access. Creating an account with the CLI does not itself admit it to a beta workspace.
invalid_execution_parameters
Section titled “invalid_execution_parameters”Check all four request fields:
languageis exactlypython;codeis non-empty and no larger than 16 KiB;timeout_msis between 100 and 10,000; andmemory_mbis between 32 and 512.
The CLI validates the source before dispatch. Direct API integrations must
validate or handle the HTTP 400 response.
cpu_profile_conflict or memory_profile_conflict
Section titled “cpu_profile_conflict or memory_profile_conflict”Choose one value for each resource: use either cpu_profile or vcpu_count,
and either memory_profile or memory_mb. Read current supported values from
GET /v1/limits or mpaka limits before choosing a profile.
idempotency_key_required
Section titled “idempotency_key_required”Direct create requests must include a non-empty Idempotency-Key of at most
128 characters. The CLI generates one automatically unless you pass
--idempotency-key.
idempotency_conflict
Section titled “idempotency_conflict”The key was already used with different source or limits. Use the original request to recover the existing execution, or generate a new key for a new logical execution. Never change a request while retaining its idempotency key.
invalid_requirements
Section titled “invalid_requirements”Environment requirements must be a non-empty list of pinned
name==version values. The CLI accepts up to 32 requirements from its
requirements file. Confirm environment support is enabled for your API
deployment before retrying.
environments_unavailable
Section titled “environments_unavailable”Python environment building is not configured or available on this deployment.
Ask the workspace owner whether environments are enabled. You can still submit
code without an environment_id if the API accepts direct execution.
environment_not_ready
Section titled “environment_not_ready”Wait until the environment is ready before using its ID in an execution:
mpaka environments wait <ENVIRONMENT_ID>If the environment reaches failed, inspect it with
mpaka environments get <ENVIRONMENT_ID> and ask the workspace owner for help.
The request outcome is unclear after a network failure
Section titled “The request outcome is unclear after a network failure”Do not immediately submit with a new key. The CLI prints its generated idempotency key to standard error before sending the request. Retry the same source and limits with that key:
mpaka run --file script.py --idempotency-key <PRINTED_KEY>The API returns the original execution if the first request was accepted.
Polling reached its limit
Section titled “Polling reached its limit”Polling exhaustion does not cancel the execution. Use the execution ID printed by the CLI:
mpaka executions get <EXECUTION_ID>Increase --max-poll-attempts on a future run only when waiting longer in the
foreground is appropriate. Do not resubmit the same logical work just because
local polling ended.
For an asynchronous execution, use mpaka executions wait <EXECUTION_ID> and
inspect it later if the local deadline expires. CLI and MCP wait timeouts do
not cancel remote work; a timeout indicates only that the client stopped
waiting.
Quota and rate errors
Section titled “Quota and rate errors”| Code | Corrective action |
|---|---|
concurrency_quota_exceeded |
Wait for an active execution to become terminal, then retry the same logical request safely. |
daily_budget_exceeded |
Wait for the workspace budget window to reset or ask the workspace owner about its assigned quota. |
rate_limit_exceeded |
Slow the client, add backoff, and retry without a tight loop. |
resource_quota_exceeded |
Request fewer vCPUs or a lower CPU profile, or ask the workspace owner about the tenant’s resource quota. |
Keep the same idempotency key when retrying an identical create request after a transient rejection.
queue_full
Section titled “queue_full”The service cannot accept another execution at that moment. Back off before retrying the identical request with the same idempotency key. If the condition persists, stop automated retries rather than creating a request storm.
usage_unavailable or quota_unavailable
Section titled “usage_unavailable or quota_unavailable”The corresponding tenant metering or quota service is unavailable. Retry later or contact the workspace owner if it persists. Usage reports provisioned resource time; it is not a charge.
execution_not_found
Section titled “execution_not_found”Confirm the UUID, API key, and workspace. Execution IDs are scoped to the authenticated workspace, so a valid ID from another workspace is not visible.
The program exited non-zero
Section titled “The program exited non-zero”The execution can be completed while the Python process returns a non-zero
exit code. Inspect stderr and the program’s own error handling:
mpaka executions get <EXECUTION_ID>Fix the program and submit the corrected source as a new logical execution with a new idempotency key.
The status is failed
Section titled “The status is failed”Inspect the full execution for stderr, mode, and any available exit code.
Retain the execution ID when reporting a repeatable service failure. Do not
include credentials or private source in the report.
The status is timed_out
Section titled “The status is timed_out”Reduce the work performed or request a larger --timeout-ms value, up to
10,000 ms. A timeout is terminal; rerunning requires a new logical execution.
The status is cancelled
Section titled “The status is cancelled”Cancellation is terminal. If the workload is still needed, submit it again as a new logical execution. A cancellation request can race with completion, so always use the final state returned by a fresh inspection.
The mode is mock_no_code_execution
Section titled “The mode is mock_no_code_execution”The source was not executed. Treat the CLI’s non-zero exit status as correct; do not infer Python output or sandbox behavior from that record. Confirm that your admitted environment is configured for the execution mode you expect.
Review Limits and results for the complete success rule and the CLI reference for inspection commands.