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
| Reason | What it means and what to do |
|---|---|
| owner-required | You 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-denied | The key lacks a permission. The error names it (needed). Add it to a group of the key's user, then apply again. |
| user-not-found | A user in the request does not exist. Create the ignitify_user first, and refer to its name so Terraform orders them. |
| group-not-found | A group in the request does not exist. |
| name-taken | A user or group with this name exists. Import it, or choose another name. |
| unknown-permission | A 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.
| Reason | Object |
|---|---|
| key-not-found | An ignitify_api_key. |
| secret-not-found | An ignitify_secret. |
| task-not-found | An ignitify_task. |
| deployment-not-found | An ignitify_deployment. |
| hook-not-found | An ignitify_hook. |
| schedule-not-found | An 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
| Reason | What it means and what to do |
|---|---|
| task-slug-taken | A create used the slug of a live task. Import the task: terraform import ignitify_task.<name> <slug>. |
| secret-exists | A create used the name of a secret that exists. Import it first, so a write does not overwrite its value. |
| idempotency-in-progress | The same write is still running on the server. The provider tries again by itself. |
| deployment-race | The deployment a create joined was deleted at the same moment. The provider tries again by itself. |
Limits and waits
| Reason | What it means and what to do |
|---|---|
| rate-limited | A 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-throttled | The 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 sign | Cause and fix |
|---|---|
| no API key | The provider has no key. Set IGNITIFY_API_KEY, or api_key in the provider block. |
| endpoint must use https | The endpoint is plain http to another machine. Use https. |
| api_key and endpoint must be known | A provider argument comes from a value that Terraform computes during the apply. Set it from a variable or the environment. |
| Drift on a group | A 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_at | The value was written outside Terraform. Raise value_wo_version to write yours again. |
| A deployment is updated at every plan | Its 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 fails | The 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 update | An update needs one free deployment slot. Delete a deployment you do not need, or use a bigger plan. |
| monthly-compute-quota on a deployment | A 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.