Troubleshooting
Every Mayadyn error has a code, a message and usually a hint. The
console shows a plain sentence for the code, with the server’s message and
hint under it. The CLI prints error: <code>: <message> and hint: <hint>.
Agents get the same as JSON. Follow the hint first; this page explains each
code.
A failed operation carries the same fields in its error. When asking for
help, give the operation id.
Error codes
Section titled “Error codes”Sign-in and account
Section titled “Sign-in and account”| Code | HTTP | Meaning | What to do |
|---|---|---|---|
invalid_credentials |
401 | “Email or password is wrong.” | Check both. Accounts created through Google have no password. |
unauthenticated |
401 | “Your session ended. Sign in again.” For tokens: the token is invalid, expired or revoked. | Sign in again, or create a new token. |
invalid_code |
401 | “The code is wrong or was already used.” | Enter the current code from your authenticator app, or an unused recovery code. |
invalid_challenge |
401 | “The sign-in expired. Start again.” (5 minutes or 5 wrong codes.) | Sign in again. |
invalid_state |
400 | “The sign-in expired or did not start in this browser. Start again.” | Start the Google, Microsoft or single sign-on sign-in again in the same browser. |
invalid_token |
400/401 | “This confirmation link is invalid, used or expired.” Also an identity provider token that is not valid. | Use Send the link again for a new confirmation link. |
email_unverified |
403 | “Confirm your email first, using the link we sent you.” | Open the confirmation link, then retry (needed to invite, accept invitations, turn on two-step sign-in). |
account_exists |
409 | “An account uses this email. Sign in with your password, then link this method under Security.” | Do that. |
no_account |
404 | “No account is linked to this sign-in. Create an account first, then link it under Security.” | Do that. |
not_linked |
403 | “This single sign-on account is not linked to a Mayadyn account.” | Sign in as usual, then link the workspace’s single sign-on under Security. |
not_member |
403 | “This workspace’s sign-on is for its members only. Ask an admin to invite you.” | Ask for an invitation, accept it, then link single sign-on. |
mfa_required |
403 | “This workspace requires two-step sign-in. Turn it on under Security, then sign in again.” Also for tokens created without it. | Turn it on, sign in with a code, create new tokens. |
sso_required |
403 | “This workspace requires its single sign-on.” Also for tokens not created through it. | Sign in through the workspace’s single sign-on; create new tokens from that session. |
csrf |
403 | The browser request lacked Mayadyn’s request header. | Reload the console. Scripts should use API tokens. |
tenant_required |
400 | “Choose a workspace first.” | Pick a workspace in the Workspace menu. |
Requests
Section titled “Requests”| Code | HTTP | Meaning | What to do |
|---|---|---|---|
invalid_input |
400 | “Some values are not valid.” The message names the value. | Fix it; for machines, re-run the dry run. |
permission_denied |
403 (424 from the cloud) | “You do not have permission for this.” Your role or token lacks a scope, or the action is console-only, or a project token tried a workspace-wide action. Also from your cloud: the service account or user lacks a permission. | Ask an admin for the role or a token with the scope; for cloud permissions see the hint. |
not_found |
404 | “Not found.” The id or name does not exist in this workspace (ids from other workspaces also give not_found). From your cloud: the resource is gone or a policy hides it. |
List again; the id may be stale. Run a sync. |
conflict |
409 | “This conflicts with the current state.” A name is taken; another operation is running on the machine or app (operation_id given); a connection still has machines; an idempotency key was reused for a different request; the last owner cannot leave. |
Read the message. Wait for the running operation, pick another name, or remove what blocks it. |
rate_limited |
429 | “Too many requests. Wait a moment and try again.” Also: too many sign-in attempts, invitations, verification emails, wrong codes, or 200 operations in flight in the workspace. From your cloud: its API rate limit. | Wait for Retry-After (seconds) when given, then retry with the same idempotency key. |
unsupported |
400 | The provider, image or feature is not available here (for example an image not offered on that cloud). | Pick another value; the hint lists the options. |
internal |
500 | Something failed inside Mayadyn. | Retry; if it fails again, contact support with the operation id. |
Default request limits per minute: 600 API requests per token or user, 3000 requests per network address, 10 sign-in and sign-up requests per network address.
Cloud and connections
Section titled “Cloud and connections”| Code | HTTP | Meaning | What to do |
|---|---|---|---|
auth_failed |
424 | “The provider rejected the credentials.” The stored key no longer works, or (keyless GCP) Google does not accept Mayadyn’s token. | Only a person with access to the cloud account can fix it: see connection problems. |
connection_not_bound |
424 | “Your cloud account does not trust this connection yet, or the trust was removed. Run the “Trust steps”, then check again.” (Keyless OCI.) | Apply the policy and compartment tag from Trust steps, then Check. |
connection_unhealthy |
424 | “The cloud account needs fixing before use.” Its last check failed. | Fix the account, Check the connection, retry. |
quota_exceeded |
422 | “Your cloud account is over its quota.” | Raise the limit in your cloud console, use a smaller size, or delete unused machines. |
capacity_unavailable |
422 | “The provider has no capacity right now.” | Retry later, or another size, region or zone. |
timeout |
504 | The cloud did not answer in time, or a machine is still changing state. | Retry, or sync later to see the final state. |
provider_error |
502 | “The provider could not be reached.” Or the cloud returned an unexpected error. | Retry; if it persists, Check the connection. |
| Code | Meaning | What to do |
|---|---|---|
deploy_failed |
“The release failed; the previous one is still running. Check the logs.” | See Apps: when a deploy fails. |
Connection problems
Section titled “Connection problems”A keyless OCI connection shows connection_not_bound
Section titled “A keyless OCI connection shows connection_not_bound”Mayadyn acts in a compartment only when its mayadyn-connection tag names
this connection. Check:
- The policy from Trust steps exists in the tenancy’s root compartment, with all six statements.
- The compartment has the freeform tag
mayadyn-connectionwith exactly the Trusted subject (mayadyn:<workspace id>:<connection id>). - The connection’s tenancy OCID is the compartment’s own tenancy.
- If you just changed the tag, Mayadyn may use its last reading for up to 5 minutes.
Then Check the connection. See Connect OCI.
A keyless GCP connection shows auth_failed
Section titled “A keyless GCP connection shows auth_failed”Google refused Mayadyn’s token. Check, against Trust steps:
- The pool and provider exist in the project whose number is in the Workload Identity provider.
- The provider’s issuer is
https://id.mayadyn.com, its allowed audience is the Audience shown, and its attribute condition names the Trusted subject. - The service account has the
roles/iam.workloadIdentityUserbinding for that subject.
Re-run the steps that are missing, then Check. See Connect GCP.
A connection with a stored key shows auth_failed
Section titled “A connection with a stored key shows auth_failed”- OCI: the user OCID, fingerprint and private key must match a key uploaded to that user; check the passphrase if the key has one.
- GCP: the service account key was deleted or is invalid; create a new key.
Then Replace credentials with a new key, or better, switch to keyless.
permission_denied from the cloud
Section titled “permission_denied from the cloud”- GCP: grant the service account
roles/compute.instanceAdmin.v1(androles/compute.networkAdmin,roles/compute.securityAdminfor the first machine), and enable the Compute Engine API. - OCI (API key): check the user’s policy for the compartment (manage
instance-familyandvirtual-network-family).
The default region is refused
Section titled “The default region is refused”invalid_input on adding or checking a connection with “the tenancy is not
subscribed to region …” (OCI) or “the project cannot use region …” (GCP).
The hint lists the regions the account can use. Subscribe the tenancy to the
region, or pick one of those.
quota_exceeded or capacity_unavailable
Section titled “quota_exceeded or capacity_unavailable”- Quota: raise the service limit (OCI console) or the quota (GCP IAM & Admin → Quotas), use a smaller size, or delete unused machines.
- Capacity: the cloud has no room for that shape now. Retry later, or try another size, region or (GCP) zone.
Machines are missing or stale
Section titled “Machines are missing or stale”Run a sync (Machines → Sync, or mayadyn connections sync <name>).
Machines made or deleted outside Mayadyn show up or disappear after a sync.
I cannot delete a connection
Section titled “I cannot delete a connection”The connection still has machines in the inventory (conflict). Delete its
machines and apps first. If they were already deleted in the cloud, sync
the connection, then delete it.
I cannot stop or delete a machine
Section titled “I cannot stop or delete a machine”conflict“… is the host of an app”: manage it through the app.conflict“another operation is in progress”: wait for it.- A machine in Error state: look at it in your cloud console; delete it and create it again.
App deploy failures
Section titled “App deploy failures”| Symptom | Likely cause | Fix |
|---|---|---|
deploy_failed, “did not answer on port …” |
The app listens on another port, or crashes at start. | Read the logs. Set the right Container port (--port on deploy) or fix the image. |
deploy_failed with a git clone error |
Wrong URL or ref, or a private repository without a token. | Check --git and --ref. For private repositories save a token with --git-token-file and --git-host. |
deploy_failed with a build error |
The Dockerfile fails to build, or the path is wrong. | Fix the Dockerfile; check --dockerfile. |
| The image cannot be pulled | Private registry without credentials, or a wrong reference. | Save registry credentials with mayadyn apps secrets … --registry …. |
timeout on the first deploy |
The host machine is still starting. | Check the logs; deploy again. |
invalid_input on deploy |
Both image and git given, or neither; a git URL that is not https:// or contains credentials. |
Give exactly one source; put tokens in the app’s secrets. |
connection_unhealthy |
The app’s connection failed its last check. | Fix and Check the connection. |
| The app does not see new environment variables | Secrets apply on the next deploy. | Deploy again (or roll back to the current release). |
| The URL stopped answering | The host stopped reporting (stopped or deleted in the cloud). Mayadyn withdraws the name after 3 minutes. | Do not manage the host in the cloud console. Deploy again to replace it, or start it again in the cloud. |