Use this when Proxmox API or CLI automation fails because of tokens, locks or storage.
Proxmox Automation Troubleshooting
Troubleshoot Proxmox automation by checking API token privileges and paths, task logs in the UI or pvesh get /cluster/tasks, locked VMs (qm unlock), storage availability and cloud-init settings.
1. Failures: token permissions, privilege separation, TLS verification, locks (qm unlock), storage missing on node, task errors.
2. Read task logs.
3. Check ACLs.
4. Fix and rerun idempotently.
5. Add pre-checks.
automation → API → task → error
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Reading only the HTTP 200 of the API call; the task can still fail later.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Token privileges and paths cause many failures.
- VMs can be left locked after failed tasks.
- Task logs explain errors.
journalctl -u pveproxy -u pvedaemon --since -1h— API errorspvesh get /nodes/<node>/tasks --errors 1— failed tasks- Token privileges (pveum acl list) — permissions
ReferenceWhy it matters1 section · depth on demand
What it is
Proxmox automation failures usually come from API permissions, task errors (UPID) or cluster state. The task log shows the real error.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Most API calls start an asynchronous task identified by a UPID; the HTTP call returns immediately while the task may still fail. Automation should poll the task status and read its log before reporting success.
Example
pvesh get /nodes/pve1/tasks --limit 20
pvesh get /nodes/pve1/tasks/<UPID>/log
journalctl -u pvedaemon -u pveproxy --since -1h
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Proxmox Automation > Proxmox Automation Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/api-viewer/ · confidence 94%