GitLab Pipelines/CI

**Q:** My branch pipeline fails with weird errors related to Terraform.

**A:** The very first thing you should try is clearing the runner caches.  Go to CI/CD → Pipelines → click the Clear Runner Cache button at the top.  Retry your pipeline.

**Q:** I get an error `HTTP remote state endpoint requires auth`  in the `init`  stage of my branch's pipeline.  I've already tried clearing caches.

**A:** The branch must be protected for the pipeline to succeed.  Go to Settings → Repository → Protected Branches and add yours (push by maintainers, merge by maintainers, no force push).  Retry your pipeline.

**Q:** I get an error `VM 000 not found`  in the `create`  stage of my branch's pipeline.  I've already tried clearing caches.

**A:** Terraform states are pushed to the GitLab server.  If the Terraform state gets out of sync with reality (did you delete a guest manually), this state must be reset,  In the project, go to Infrastructure → Terraform, find the state for your branch, and remove it.