Skip to content
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

Citizen Module 404 #120

Open
JFryy opened this issue Jun 13, 2023 · 0 comments
Open

Citizen Module 404 #120

JFryy opened this issue Jun 13, 2023 · 0 comments

Comments

@JFryy
Copy link

JFryy commented Jun 13, 2023

Hi,

I am having issues getting modules from citizen that are uploaded. I am curious whether this is an issue particular to our configuration or something that has been observed by others. (or maybe I am doing something dumb that someone can point out).

Consider the following module call:

module "tags" {
  source = "my-registry.org/qc/terraform-tags/aws"
  version = "0.0.5"
}

On running init upgrade I get the following:

Upgrading modules...
2023-06-13T12:51:00.225-0700 [DEBUG] Module installer: begin tags
2023-06-13T12:51:00.225-0700 [DEBUG] tags listing available versions of my-registry.org/qc/terraform-tags/aws at my-registry.org
2023-06-13T12:51:00.225-0700 [DEBUG] Service discovery for my-registry.org at https://my-registry.org/.well-known/terraform.json
2023-06-13T12:51:10.847-0700 [DEBUG] fetching module versions from "https://my-registry.org/v1/modules/qc/terraform-tags/aws/versions"
2023-06-13T12:51:10.847-0700 [DEBUG] GET https://my-registry.org/v1/modules/qc/terraform-tags/aws/versions
2023-06-13T12:51:10.906-0700 [DEBUG] found available version "v0.0.3" for qc/terraform-tags/aws
2023-06-13T12:51:10.906-0700 [DEBUG] found available version "v0.0.4" for qc/terraform-tags/aws
2023-06-13T12:51:10.906-0700 [DEBUG] found available version "v0.0.5" for qc/terraform-tags/aws
Downloading my-registry.org/qc/terraform-tags/aws 0.0.5 for tags...
2023-06-13T12:51:10.906-0700 [DEBUG] looking up module location from "https://my-registry.org/v1/modules/qc/terraform-tags/aws/0.0.5/download"
2023-06-13T12:51:10.906-0700 [DEBUG] GET https://my-registry.org/v1/modules/qc/terraform-tags/aws/0.0.5/download
2023-06-13T12:51:10.971-0700 [ERROR] tags from my-registry.org/qc/terraform-tags/aws 0.0.5: module "my-registry.org/qc/terraform-tags/aws" version "0.0.5" not found
╷
│ Error: Error accessing remote module registry
│ 
│ Failed to retrieve a download URL for my-registry.org/qc/terraform-tags/aws 0.0.5 from my-registry.org: module
│ "my-registry.org/qc/terraform-tags/aws" version "0.0.5" not found
╵

╷
│ Error: Error accessing remote module registry
│ 
│ Failed to retrieve a download URL for my-registry.org/qc/terraform-tags/aws 0.0.5 from my-registry.org: module
│ "my-registry.org/qc/terraform-tags/aws" version "0.0.5" not found
╵

As you can see, the version list is correct, and I have verified the tarball exists in the s3 bucket the repository uses, further more, provider binary pulling definitely works for using citizen for me as well. I am curious what the nature of this issue is, and why the address with the version suffix of 0.0.5 is not found.

terraform version:

terraform --version
Terraform v1.3.7
on linux_amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant