Ignitify.dev
Errors and troubleshooting
Terraform

Errors and troubleshooting

When the API refuses a request, the error shows the HTTP status, the message and a reason code. This page lists the reasons the provider acts on, and what to do.

Access refusals

ReasonWhat it means and what to do
owner-requiredYou used a user key on an owner-only resource (ignitify_user, ignitify_group, ignitify_api_key). Apply the access module with the owner key.
permission-deniedThe key lacks a permission. The error names it (needed). Add it to a group of the key's user, then apply again.
user-not-foundA user in the request does not exist. Create the ignitify_user first, and refer to its name so Terraform orders them.
group-not-foundA group in the request does not exist.
name-takenA user or group with this name exists. Import it, or choose another name.
unknown-permissionA permission name is not in the fixed list. See the list on the ignitify_group page.

Missing objects

These answers mean one exact object is gone. A refresh drops it from the state, and a delete counts as done.

ReasonObject
key-not-foundAn ignitify_api_key.
secret-not-foundAn ignitify_secret.
task-not-foundAn ignitify_task.
deployment-not-foundAn ignitify_deployment.
hook-not-foundAn ignitify_hook.
schedule-not-foundAn ignitify_schedule.

Any other 404, such as a wrong endpoint or a proxy page, is an error. It never makes Terraform forget an object.

Conflicts

ReasonWhat it means and what to do
task-slug-takenA create used the slug of a live task. Import the task: terraform import ignitify_task.<name> <slug>.
secret-existsA create used the name of a secret that exists. Import it first, so a write does not overwrite its value.
idempotency-in-progressThe same write is still running on the server. The provider tries again by itself.
deployment-raceThe deployment a create joined was deleted at the same moment. The provider tries again by itself.

Limits and waits

ReasonWhat it means and what to do
rate-limitedA short limit. The provider waits as long as the server asks, up to 30 seconds, and tries again (4 tries at most). A longer wait fails, and the error names it.
auth-throttledThe key was refused too many times. The provider does not retry. Check that the key is right.

A 429 with a plan-limit reason (for example api-key-quota, secret-quota, deployment-quota, schedule-quota or monthly-compute-quota) fails at once. Free a slot, wait for the monthly reset, or use a bigger plan. ignitify_whoami shows your limits and usage.

Problems you may see in a plan

Message or signCause and fix
no API keyThe provider has no key. Set IGNITIFY_API_KEY, or api_key in the provider block.
endpoint must use httpsThe endpoint is plain http to another machine. Use https.
api_key and endpoint must be knownA provider argument comes from a value that Terraform computes during the apply. Set it from a variable or the environment.
Drift on a groupA permission or a member was added outside Terraform. The next apply removes it. Add it to the configuration if you want to keep it.
Secret shows a new updated_atThe value was written outside Terraform. Raise value_wo_version to write yours again.
A deployment is updated at every planIts status is not READY, or the files change at every run (for example a generated file in the folder). Exclude generated files with .ignitifyignore.
The build failsThe error shows the build reason. The old deployment stays live and the failed one is deleted. Fix the code and apply again.
A slot is missing for an updateAn update needs one free deployment slot. Delete a deployment you do not need, or use a bigger plan.
monthly-compute-quota on a deploymentA deployment that needs a build is refused when the monthly compute of your plan is spent. The old deployment keeps serving. Apply again after the allowance resets, or use a bigger plan.

Still stuck

Run ignitify whoami with the same key to check the key, its permissions and your plan. See Troubleshoot for the CLI side, and Errors for the API errors.