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

[Bug]: Empty or no provider information leads to error #1105

Closed
maggie44 opened this issue Dec 1, 2023 · 4 comments
Closed

[Bug]: Empty or no provider information leads to error #1105

maggie44 opened this issue Dec 1, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@maggie44
Copy link
Contributor

maggie44 commented Dec 1, 2023

Description

Does version 2.10.0 reintroduce this issue? I see in the changes the limits on the GitHub upper version was removed and now seeing the issue.

Terraform version 1.5.7 (latest doesn't work with S3 so having to stay on 1.5.7)

integrations/terraform-provider-github#2008 (comment)

Planning failed. Terraform encountered an error while generating this plan.

Error: Invalid provider configuration

Provider "registry.terraform.io/integrations/github" requires explicit
configuration. Add a provider block to the root module and configure the
provider's required arguments as described in the provider documentation.


Error: GET https://api.github.com/user: 401 Requires authentication []

  with provider["registry.terraform.io/integrations/github"],
  on <empty> line 0:
  (source code not available)

Kube.tf file

N/A

Screenshots

No response

Platform

Linux

@maggie44 maggie44 added the bug Something isn't working label Dec 1, 2023
@maximen39
Copy link

maximen39 commented Dec 1, 2023

+1 same problem, but I just reduced the count of nodes

@aleksasiriski
Copy link
Member

aleksasiriski commented Dec 2, 2023

Same here with Terraform v1.6.4-dev, will look into it now

EDIT: Setting this fixes the issue:

terraform {
  required_version = ">= 1.5.0"
  required_providers {
    hcloud = {
      source  = "hetznercloud/hcloud"
      version = ">= 1.43.0"
    }
    github = {
      source  = "integrations/github"
      version = ">= 5.38.0, < 5.41.0"
    }
  }
}

@mysticaltech And indeed the < 5.41.0 was reintroduces for some reason, I don't see it in any of the PRs so it must've been a direct push to staging/main branch. The issue for that is still open so it must've been an accident.

@mysticaltech
Copy link
Collaborator

@aleksasiriski My bad, it was part of #1104, I was over confident that it had been fixed, as I did a test deploy and it went through. Sorry folks! Fixing now.

@mysticaltech
Copy link
Collaborator

mysticaltech commented Dec 2, 2023

@maggie44 @maximen39 @aleksasiriski Fixed in v2.10.1. My bad again, will be more careful next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants