Error: Failed to query available provider packages

Hello, I can't start any workspaces anymore.
Initializing the backend...
Initializing modules...
Downloading registry.coder.com/modules/coder-login/coder 1.0.15 for coder-login...
- coder-login in .terraform/modules/coder-login
Downloading registry.coder.com/modules/dotfiles/coder 1.0.18 for dotfiles...
- dotfiles in .terraform/modules/dotfiles
Downloading registry.coder.com/modules/jetbrains-gateway/coder 1.2.0 for jetbrains_gateway...
- jetbrains_gateway in .terraform/modules/jetbrains_gateway
Downloading registry.coder.com/modules/personalize/coder 1.0.2 for personalize...
- personalize in .terraform/modules/personalize
Initializing provider plugins...
- Finding latest version of hashicorp/local...
- Finding hashicorp/http versions matching ">= 3.0.0"...
- Finding coder/coder versions matching ">= 0.12.0, >= 0.23.0, ~> 1.0.0, >= 2.5.0"...
- Finding latest version of kreuzwerker/docker...
- Finding latest version of coder/envbuilder...
- Installing hashicorp/local v2.5.3...
- Installed hashicorp/local v2.5.3 (signed by HashiCorp)
- Installing hashicorp/http v3.5.0...
- Installed hashicorp/http v3.5.0 (signed by HashiCorp)
- Installing kreuzwerker/docker v3.6.1...
- Installed kreuzwerker/docker v3.6.1 (self-signed, key ID BD080C4571C6104C)
- Installing coder/envbuilder v1.0.0...
- Installed coder/envbuilder v1.0.0 (signed by a HashiCorp partner, key ID 93C75807601AA0EC)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://developer.hashicorp.com/terraform/cli/plugins/signing
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider coder/coder:
no available releases match the given constraints >= 0.12.0, >= 0.23.0, ~>
1.0.0, >= 2.5.0
To see which modules are currently depending on coder/coder and what versions
are specified, run the following command:
terraform providers
Initializing the backend...
Initializing modules...
Downloading registry.coder.com/modules/coder-login/coder 1.0.15 for coder-login...
- coder-login in .terraform/modules/coder-login
Downloading registry.coder.com/modules/dotfiles/coder 1.0.18 for dotfiles...
- dotfiles in .terraform/modules/dotfiles
Downloading registry.coder.com/modules/jetbrains-gateway/coder 1.2.0 for jetbrains_gateway...
- jetbrains_gateway in .terraform/modules/jetbrains_gateway
Downloading registry.coder.com/modules/personalize/coder 1.0.2 for personalize...
- personalize in .terraform/modules/personalize
Initializing provider plugins...
- Finding latest version of hashicorp/local...
- Finding hashicorp/http versions matching ">= 3.0.0"...
- Finding coder/coder versions matching ">= 0.12.0, >= 0.23.0, ~> 1.0.0, >= 2.5.0"...
- Finding latest version of kreuzwerker/docker...
- Finding latest version of coder/envbuilder...
- Installing hashicorp/local v2.5.3...
- Installed hashicorp/local v2.5.3 (signed by HashiCorp)
- Installing hashicorp/http v3.5.0...
- Installed hashicorp/http v3.5.0 (signed by HashiCorp)
- Installing kreuzwerker/docker v3.6.1...
- Installed kreuzwerker/docker v3.6.1 (self-signed, key ID BD080C4571C6104C)
- Installing coder/envbuilder v1.0.0...
- Installed coder/envbuilder v1.0.0 (signed by a HashiCorp partner, key ID 93C75807601AA0EC)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://developer.hashicorp.com/terraform/cli/plugins/signing
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider coder/coder:
no available releases match the given constraints >= 0.12.0, >= 0.23.0, ~>
1.0.0, >= 2.5.0
To see which modules are currently depending on coder/coder and what versions
are specified, run the following command:
terraform providers
How can I fix this?
7 Replies
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
<#1381692931366191165>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Greenman999
Greenman999OP4mo ago
I am not using an airgapped system and when checking with curl internet seems to work. The same error appears when trying to push the template from my local machine. Okay It seems like I fixed it by setting the version of the required providers of coder/coder to be >= 2.5.0 in my template.
Phorcys
Phorcys4mo ago
@Greenman999 could you send your old version constraint? like the whole provider block
Greenman999
Greenman999OP4mo ago
terraform {
required_providers {
coder = {
source = "coder/coder"
version = "~> 1.0.0"
}
docker = {
source = "kreuzwerker/docker"
}
envbuilder = {
source = "coder/envbuilder"
}
}
}
terraform {
required_providers {
coder = {
source = "coder/coder"
version = "~> 1.0.0"
}
docker = {
source = "kreuzwerker/docker"
}
envbuilder = {
source = "coder/envbuilder"
}
}
}
Phorcys
Phorcys4mo ago
ah yeah 1.0.0 is crazy outdated one of our modules likely called to the new provider version so it made the version constraint impossible
Greenman999
Greenman999OP4mo ago
ok ty

Did you find this page helpful?