citizen icon indicating copy to clipboard operation
citizen copied to clipboard

Citizen Module 404

Open JFryy opened this issue 1 year ago • 0 comments

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

JFryy avatar Jun 13 '23 20:06 JFryy