`argocd app rollback web 12` fails with `rollback cannot be initiated when auto-sync is enabled`.
BeginnerTroubleshootingSync Operations, Hooks & Health
Answer
Likely causes → By design: with auto-sync on, Git is the only source of truth, so a rollback would be undone immediately.
Diagnose → argocd app get web -o yaml | yq '.spec.syncPolicy.automated'.
Fix → The GitOps way: git revert <bad-commit> and push. For an emergency, disable auto-sync (argocd app set web --sync-policy none), roll back, then fix Git and re-enable.
Prevent → Teach on-call that rollback means revert in Git; keep the emergency path in the runbook with a reminder to re-enable auto-sync.
More on Sync Operations, Hooks & Health
Sync fails with `one or more synchronization tasks are not valid` and `the server could not find the requested resource` for a custom resource.Intermediate`one or more objects failed to apply, reason: Deployment.apps "web" is invalid: spec.selector: Invalid value: ...: field is immutable`.BeginnerSync of a large CRD fails with `metadata.annotations: Too long: must have at most 262144 bytes`.BeginnerAn app has been stuck at `Syncing` for an hour with `waiting for completion of hook batch/Job/db-migrate`.IntermediateA PreSync hook fails with `jobs.batch "db-migrate" already exists`.BeginnerA PostSync smoke-test hook never runs, even though the sync says succeeded.Intermediate