Noodara
Reference

Error codes

Every error code the Noodara API returns, with its HTTP status.

Every failed request returns a JSON body shaped like this:

{ "error": "<CODE>", "message": "<text>" }

error is always one of the codes below. message is a short, human-readable description, and nothing else — no internal detail is ever attached to it.

HTTP API errors

CodeHTTP statusMeaning
VALIDATION_FAILED400The request body does not match the endpoint's schema.
INVALID_CREDENTIAL400The submitted SSH credential (password or private key) is invalid, or the current password did not match on a re-authenticated action.
UNAUTHORIZED401There is no active session; sign in again.
FORBIDDEN_ORIGIN403The request's Origin header is not the panel's own origin.
NOT_FOUND404The requested resource does not exist.
NAME_TAKEN409Another server already uses that name.
HOST_TAKEN409Another server already uses that host and port.
SERVER_BUSY409The server has a connection or discovery run already in progress.
ALREADY_CONNECTING409A connect or discovery run for this server is already in progress.
SERVER_NOT_CONNECTED409The action requires the server to be connected first.
NO_PENDING_FINGERPRINT409There is no pending host-key fingerprint to trust.
FINGERPRINT_MISMATCH409The fingerprint you tried to trust no longer matches what the server has pending.
SERVER_NOT_TRUSTABLE409The server is not in a state that can trust a fingerprint right now.
CONFIRMATION_MISMATCH409The typed confirmation text did not match what the action required.
QUEUE_UNAVAILABLE503The background job queue is unavailable; try again shortly.
SSE_LIMIT_REACHED503Too many live event streams are already open.
INTERNAL_ERROR500An unexpected server error occurred.
EMAIL_DOMAIN_UNRESOLVABLE400The new email address's domain does not resolve.
EMAIL_DOMAIN_CHECK_UNAVAILABLE503The email domain check could not run; try again shortly.
REAUTH_LOCKED429Too many recent re-authentication attempts; wait before trying again.
SESSION_REVOKED_PASSWORD_CHANGED401The session was signed out because the account's password changed.
PROJECT_NAME_TAKEN409Another project already uses that name (names are compared case-insensitively).
ENVIRONMENT_NAME_TAKEN409The project already has an environment with that name.
PROJECT_NOT_ARCHIVED422The project must be archived before it can be deleted.
DELETE_CONFIRMATION_MISMATCH422The typed name did not exactly match the name of the resource being deleted.
ENVIRONMENT_NOT_EMPTY409DELETE /api/projects/:projectId/environments/:environmentId refused: the environment still has services. Delete them first; nothing was changed.
SERVICE_INPUT_INVALID422A service field failed validation; reason names the rule, such as REPOSITORY_URL_UNSUPPORTED_SCHEME or SERVICE_INPUT_UNSUPPORTED_FIELD.
SERVICE_NAME_TAKEN409The environment already has a service with that name.
PORT_IN_USE409The published port is already taken on that server, by another service or by the panel itself.
SERVER_DOCKER_UNAVAILABLE409Docker is not installed on the server; services need it.
SERVER_BUILDKIT_UNAVAILABLE409Dockerfile (git) services need Docker BuildKit on the server; use an image source or enable BuildKit.
SERVER_BUILDKIT_UNKNOWN409BuildKit support on the server was never detected (it was discovered before v0.2); re-run discovery on the server, then retry.
CREDENTIAL_SOURCE_MISMATCH409The credential does not fit the service's source: a deploy key needs an ssh repository URL, an HTTPS token an https:// one, a registry password an image source.
SERVICE_CREDENTIAL_INVALID422A credential field failed validation; reason names the rule. The submitted value is never echoed back.
SERVER_HAS_SERVICES409The server still runs services; blockingServices lists them. Move or delete them first.
DEPLOYMENT_IN_PROGRESS409The service already has a deployment in progress; wait for it to finish or cancel it.
ROLLBACK_TARGET_UNAVAILABLE422The rollback target has no usable image on the server; pick another deployment.
IDEMPOTENCY_KEY_INVALID400The Idempotency-Key header is malformed.
IDEMPOTENCY_KEY_REUSED422The Idempotency-Key was already used with a different request.
WEBHOOK_SOURCE_NOT_GIT422Webhooks only apply to services built from a Git repository; image-source services cannot enable one.
WEBHOOK_ALREADY_ENABLED409The webhook is already enabled; rotate its secret instead of enabling it again.
WEBHOOK_NOT_ENABLED409The service has no webhook enabled; enable it first.
WEBHOOK_HOOK_ID_CONFLICT409No unique webhook URL could be allocated; nothing was changed. Enable the webhook again.
WEBHOOK_DELIVERY_REJECTED422Webhook receiver (POST /webhooks/github/:hookId): the signed delivery was recorded but cannot be deployed; outcome says why, such as a push to another branch or repository.
RATE_LIMITED429Webhook receiver: too many deliveries for this hook id or source. AI assistant: too many questions in a short time. Retry after the Retry-After header.
DOMAIN_ALREADY_ASSIGNED409The hostname is already assigned to a service; remove it there first.
DOMAIN_RESERVED422The hostname is the panel's own host (NOODARA_PUBLIC_URL) and cannot be assigned to a service.
DOMAIN_LIMIT_REACHED422The service already has the maximum number of domains.
PROXY_PORT_IN_USE409Ports 80 or 443 are taken on the server; stop the other web server, then install the proxy again.
PROXY_INSTALL_FAILED502The proxy could not be installed; check Docker and image pulls on the server.
PROXY_UNAVAILABLE503The proxy on the server is not answering.
PROXY_IN_USE409Domains still route through the proxy; remove them before removing it.
PROXY_ROUTE_FAILED502The proxy did not accept the routes for the service.
METRICS_UNAVAILABLE503Metrics are not available yet. Check that the server is connected and try again in a minute.
LOG_SOURCE_UNAVAILABLE502Logs from this source could not be read. Check that the server is reachable and try again.
LOG_QUERY_INVALID422The log query is not valid. Check the sources, time range and search term.
AI_PROVIDER_NOT_CONFIGURED409No AI provider is configured. Add an API key in Settings to ask questions.
AI_PROVIDER_AUTH_FAILED422The AI provider rejected the API key. Replace the key in Settings.
AI_PROVIDER_UNAVAILABLE503The AI provider is not responding. Try again in a few minutes.
AI_PROVIDER_RATE_LIMITED429The AI provider is rate limiting requests. Wait a moment and try again.
AI_BUDGET_EXCEEDED422This question needed more steps than allowed. Ask a narrower question.
AI_TOOL_NOT_ALLOWED403The assistant tried a tool it is not allowed to use. Nothing was changed.
ENV_KEY_DUPLICATE409A variable with this key already exists in the scope.
ENV_VALUE_MULTILINE422The value has a line break or NUL byte; encode multi-line values as base64.
ENV_LIMIT_REACHED422The scope already has the maximum number of variables.
SECRET_NOT_FOUND422A <secret:name> reference names a secret that does not exist in any visible scope.
SECRET_IN_USE409Variables still reference the secret; remove the references before deleting it.
SECRET_NAME_DUPLICATE409A secret with this name already exists in the scope.
SECRET_LIMIT_REACHED422The scope already has the maximum number of secrets.
PROJECT_ARCHIVED409The project is archived; unarchive it to deploy its services.
DEPLOYMENT_INPUT_INVALID422The deploy request carried a field it does not accept; the body must be empty or {}.
DEPLOYMENT_NOT_CANCELLABLE409The deployment already ended; only a queued or running deployment can be cancelled.
ROLLBACK_IN_PROGRESS409The deployment is rolling back to the previous version and cannot be cancelled; wait for the rollback to finish.
SERVICE_OPERATION_INVALID422The service operation request carried a field it does not accept, or the delete confirmation was missing.
SERVICE_NOT_DEPLOYED409The service has never been deployed, so there is no container to stop, restart or remove.
SERVICE_OPERATION_IN_PROGRESS409Another stop, restart or remove for this service is already queued; wait for it to finish.
SERVER_UNREACHABLE502The panel could not reach the server over SSH (to clean up the service or read its logs); a delete removed nothing. Try again.
SERVICE_CLEANUP_FAILED502Removing the service's container, network, images or files on the server failed; nothing was deleted. Try again.
CONTAINER_NOT_FOUND409The service has no container on the server, so there are no runtime logs. Deploy the service first.
RUNTIME_LOG_TAIL_INVALID422tail must be a whole number from 1 to 10000.
RUNTIME_LOG_FOLLOW_LIMIT_REACHED429Too many live log streams are open for this server or account. Close one and try again.
RUNTIME_LOGS_FAILED502Docker on the server could not read the service logs. Try again or redeploy.
RUNTIME_LOGS_TIMEOUT504Reading the service logs timed out. Try again with a smaller tail.

A request the server cannot read at all gets one of three fixed codes with the same body shape: MALFORMED_REQUEST (400, the body is not valid JSON), PAYLOAD_TOO_LARGE (413) or UNSUPPORTED_MEDIA_TYPE (415, send application/json).

The AI assistant endpoints add their own codes, with the same body shape: AI_PROVIDER_INPUT_INVALID (422, the API key or model was refused before contacting the provider; reason is too_short, too_long, invalid_characters or model_not_allowed, and the key is never echoed back), AI_QUESTION_EMPTY (422, ask a question), AI_QUESTION_TOO_LONG (422, questions are limited to 4000 characters), AI_CONVERSATION_BUSY (409, the conversation is already answering a question) and AI_CONVERSATION_NOT_FOUND (404).

A stop, restart or remove runs in the background after its 202, so its failures never come back as an HTTP error. They appear only in the service's activity: SERVER_UNREACHABLE, SERVER_DOCKER_UNAVAILABLE, CONTAINER_NOT_FOUND (the container is gone; redeploy), SERVICE_OPERATION_FAILED (Docker rejected the operation) or SERVICE_OPERATION_TIMEOUT.

A deployment's own failures are recorded on the deployment, not returned as HTTP errors. Two of them concern the SSH host key of a Git host:

  • GIT_HOST_KEY_MISMATCH: the Git host offered a key that does not match the one Noodara trusts for it. GitHub, GitLab and Bitbucket keys ship with Noodara; any other host's key is stored per service on its first SSH clone and checked on every later clone. A changed key is never replaced automatically. If the host really rotated its key, verify the new fingerprint with the host's operator, then run noodara services reset-host-key <serviceId> and deploy again: the next clone stores the current key. Changing the service's repository URL to another host also forgets it.
  • GIT_HOST_KEY_UNAVAILABLE: the Git host's SSH key could not be read, so nothing was cloned.

HEALTHCHECK_FAILED and HEALTHCHECK_TIMEOUT: the new version did not pass its healthcheck, either by failing until the retries ran out or by exceeding the time budget. With automatic rollback on, the previous version is restored. A healthcheck setting outside its bounds is rejected up front as HTTP 400 VALIDATION_FAILED, with an issues entry at /healthcheck.

ENQUEUE_FAILED: the deployment was accepted but never reached the job queue (Redis or Postgres was unreachable at that moment), so nothing ran and the service is unchanged. The worker ends such a deployment FAILED once it has waited past the stale-queue threshold (default 2 minutes) with no queue job, which frees the service for a new deploy. Check that Redis and Postgres are reachable, then deploy again.

COMMIT_NOT_FOUND: the commit a push or redeploy asked for is not in the repository, even after a full fetch. The branch was most likely force-pushed past it; push again or deploy the branch head.

WORKSPACE_UNAVAILABLE: the deploy workspace could not be created or written. Each deployment works in ~/.noodara/deploy/<deploymentId> under the SSH user's home directory, so a non-root user in the docker group needs no other setup. Make sure that user has a home directory it can write to (and that ~/.noodara is a directory, not a file), then deploy again. A domain's certificate failures are recorded on the domain, not returned as HTTP errors: CERT_DNS_MISMATCH (the domain does not point at the server), CERT_ISSUANCE_FAILED (no certificate before the issuance timeout, usually port 80 unreachable) and CERT_PROXY_UNAVAILABLE (the proxy is not answering on port 443). See Domains and HTTPS.

Three deployment failures concern variables and routes. None of them carries a value:

  • SECRET_UNRESOLVED: a variable references a secret that does not exist. Add the secret or fix the reference (see Environment variables and secrets).
  • ENV_INJECTION_FAILED: the variables could not be written to the server. Check its disk and connection.
  • PROXY_ROUTE_FAILED: the proxy did not accept the service's routes. Check the proxy on the server.

On this page