Skip to content

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.

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 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:

Terminal window
printf 'mPaka API key: '
read -r -s MPAKA_API_KEY
printf '\n'
export MPAKA_API_KEY

In PowerShell, use a secure prompt:

Terminal window
$secureKey = Read-Host 'mPaka API key' -AsSecureString
$env:MPAKA_API_KEY = (New-Object System.Net.NetworkCredential('', $secureKey)).Password
Remove-Variable secureKey

Do 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.

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.

The CLI’s saved account session has expired or was revoked. Sign in again:

Terminal window
mpaka login --email user@example.com

An account session supports account and API-key management commands; it does not replace MPAKA_API_KEY for workload requests.

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.

Check all four request fields:

  • language is exactly python;
  • code is non-empty and no larger than 16 KiB;
  • timeout_ms is between 100 and 10,000; and
  • memory_mb is 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.

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.

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.

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.

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.

Wait until the environment is ready before using its ID in an execution:

Terminal window
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:

Terminal window
mpaka run --file script.py --idempotency-key <PRINTED_KEY>

The API returns the original execution if the first request was accepted.

Polling exhaustion does not cancel the execution. Use the execution ID printed by the CLI:

Terminal window
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.

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.

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.

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.

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 execution can be completed while the Python process returns a non-zero exit code. Inspect stderr and the program’s own error handling:

Terminal window
mpaka executions get <EXECUTION_ID>

Fix the program and submit the corrected source as a new logical execution with a new idempotency key.

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.

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.

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 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.