Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cloud Run deploy failing due to missing 'terraform' dependency #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bryphe-coder opened this issue Feb 15, 2022 · 3 comments · Fixed by #319
Closed

Cloud Run deploy failing due to missing 'terraform' dependency #287

bryphe-coder opened this issue Feb 15, 2022 · 3 comments · Fixed by #319
Labels
api Area: HTTP API site Area: frontend dashboard
Milestone

Comments

@bryphe-coder
Copy link
Contributor

@jawnsy noticed that our deploy jobs are failing with:

Run gcloud run services update coder --image us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest --project coder-blacktriangle-dev --tag "git-$(git rev-parse --short HEAD)" --region us-central1
Deploying...
Creating Revision.................interrupted
Deployment failed
ERROR: (gcloud.run.services.update) Revision 'coder-00027-get' is not ready and cannot serve traffic.
Error: Process completed with exit code 1.

https://github.com/coder/coder/runs/5189079984?check_suite_focus=true#step:11:19

Looking at 'Cloud Run' logs, we found a panic on startup:

panic: terraform binary not found: exec: "terraform": executable file not found in $PATH goroutine 32 [running]: github.com/coder/coder/coderd/cmd.newProvisionerDaemon.func1() /home/runner/work/coder/coder/coderd/cmd/root.go:91 +0x107 created by github.com/coder/coder/coderd/cmd.newProvisionerDaemon /home/runner/work/coder/coder/coderd/cmd/root.go:83 +0x105

Seems like we need to add terraform to our docker image.

@bryphe-coder
Copy link
Contributor Author

This may be a contributing factor to some flakiness in the login behavior observed on https://proto.cdr.dev

@bryphe-coder bryphe-coder added this to the V2 Alpha milestone Feb 15, 2022
@bryphe-coder
Copy link
Contributor Author

Sounds like @jawnsy might be looking into this?

@bryphe-coder
Copy link
Contributor Author

We'll disable the deploy step for now and re-enable it once this is fixed.

bryphe-coder added a commit that referenced this issue Feb 15, 2022
Related to #287 

Temporarily disable the deploy action until we have a fix available.
bryphe-coder added a commit that referenced this issue Feb 18, 2022
Fixes #287 and re-enables our deploy at https://proto.cdr.dev

- Installs `terraform` in our `images/coder/Dockerfile`
- Re-enables our `deploy` GH action

Example of successful deploy run: https://github.com/coder/coder/runs/5241614008?check_suite_focus=true
@misskniss misskniss added api Area: HTTP API site Area: frontend dashboard labels Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API site Area: frontend dashboard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants