`tag invalid: The image tag 'sha-a1b2c3d' already exists in the 'shack-api' repository and cannot be overwritten because the repository is immutable.`
IntermediateTroubleshootingCaching, Artifacts, Builds & Scans
Answer
Likely causes → A re-run or a second workflow pushes the same commit tag again; ECR tag immutability is on (good).
Diagnose →
aws ecr describe-images --repository-name shack-api --image-ids imageTag=sha-a1b2c3d
Fix → Make the push idempotent: skip build and push if the tag exists and output the existing digest; never push mutable tags like latest to an immutable repo.
Prevent → Check-then-push step at the start of the build job.
More on Caching, Artifacts, Builds & Scans
`Cache not found for input keys: npm-Linux-3f9a...` on every single run.Beginner`Failed to save: Unable to reserve cache with key npm-Linux-3f9a..., another job may be creating this cache.`BeginnerA cache restores but the build is still slow and reinstalls everything.Intermediate`Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run`Beginner`Error: Unable to download artifact(s): Artifact not found for name: build`Beginner`Warning: No files were found with the provided path: coverage/. No artifacts will be uploaded.` but tests ran.Beginner