You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
Upgraded from v0.27.1 to v0.28.4, after upgrade I was no longer able to download Terraform from my Artifactory mirror of hashicorp-releases
Reproduction Steps
Use Atlantis version v0.28.4
Set tf-download-url to use a url with a path - example--tf-download-url="https://myartifactory.company.com:443/artifactory/hashicorp-remote"
Run atlantis plan
Get error error downloading terraform version 1.9.2: failed to download ZIP archive from "https://myartifactory.company.com:443/terraform/1.9.2/terraform_1.9.2_linux_amd64.zip": 404 Not Found: Downloading terraform Version 1.9.2
I can manually download the correct version from my Artifactory cache without issue: wget -q https://myartifactory.company.com/artifactory/hashicorp-remote/terraform/1.9.2/terraform_1.9.2_linux_amd64.zip
Logs
Logs
2024/07/23 17:09:35 [DEBUG] GET https://myartifactory.company.com:443/artifactory/hashicorp-remote/terraform/1.9.2/index.json
2024/07/23 17:09:35 [DEBUG] GET https://myartifactory.company.com:443/artifactory/hashicorp-remote/terraform/1.9.2/terraform_1.9.2_SHA256SUMS.72D7468F.sig
2024/07/23 17:09:35 [DEBUG] GET https://myartifactory.company.com:443/artifactory/hashicorp-remote/terraform/1.9.2/terraform_1.9.2_SHA256SUMS
2024/07/23 17:09:35 [DEBUG] GET https://myartifactory.company.com:443/terraform/1.9.2/terraform_1.9.2_linux_amd64.zip
2024-07-23 10:09:35.724
{"level":"error","ts":"2024-07-23T17:09:35.724Z","caller":"events/instrumented_project_command_runner.go:78","msg":"Error running plan operation: error downloading terraform version 1.9.2: failed to download ZIP archive from \"https://myartifactory.company.com:443/terraform/1.9.2/terraform_1.9.2_linux_amd64.zip\": 404 Not Found: Downloading terraform Version 1.9.2
","json":{"repo":"repo_name","pull":"1"},"stacktrace":"github.com/runatlantis/atlantis/server/events.RunAndEmitStats
github.com/runatlantis/atlantis/server/events/instrumented_project_command_runner.go:78
github.com/runatlantis/atlantis/server/events.(*InstrumentedProjectCommandRunner).Plan
github.com/runatlantis/atlantis/server/events/instrumented_project_command_runner.go:38
github.com/runatlantis/atlantis/server/events.runProjectCmds
github.com/runatlantis/atlantis/server/events/project_command_pool_executor.go:48
github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).run
github.com/runatlantis/atlantis/server/events/plan_command_runner.go:263
github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run
github.com/runatlantis/atlantis/server/events/plan_command_runner.go:307
github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand
github.com/runatlantis/atlantis/server/events/command_runner.go:367"}
@Doormatty I've created a PR upstream in hc-install which should fix this. Once merged, hc-install version used in Atlantis go.mod will then need bumping.
Community Note
Overview of the Issue
Upgraded from v0.27.1 to v0.28.4, after upgrade I was no longer able to download Terraform from my Artifactory mirror of
hashicorp-releases
Reproduction Steps
--tf-download-url="https://myartifactory.company.com:443/artifactory/hashicorp-remote"
atlantis plan
error downloading terraform version 1.9.2: failed to download ZIP archive from "https://myartifactory.company.com:443/terraform/1.9.2/terraform_1.9.2_linux_amd64.zip": 404 Not Found: Downloading terraform Version 1.9.2
I can manually download the correct version from my Artifactory cache without issue:
wget -q https://myartifactory.company.com/artifactory/hashicorp-remote/terraform/1.9.2/terraform_1.9.2_linux_amd64.zip
Logs
Logs
Environment details
Service file:
The text was updated successfully, but these errors were encountered: