terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[BUG]: RANDOMLY github_actions_variable can't be created - root object was present, but now absent

Open kborowiec-mag opened this issue 2 years ago • 3 comments

Expected Behavior

Variable for repository is created.

Howevever it randomly doesn't work and error occurs (described below)

Actual Behavior

github_actions_variable.repo, provider "provider["registry.terraform.io/integrations/github"]" produced an unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own

Terraform Version

Terraform 1.6.4 integrations/github v5.42.0

Affected Resource(s)

  • github_actions_variable

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

github_actions_variable.repo,
provider "provider[\"registry.terraform.io/integrations/github\"]" produced
an unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

kborowiec-mag avatar Dec 06 '23 10:12 kborowiec-mag

I am getting the same error as well but for adding/updating branch protection and collaborators.

Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to module.repos.github_repository_collaborators.repo_collaborators["api"], provider
│ "provider[\"registry.terraform.io/integrations/github\"]" produced an unexpected new value: Root resource was present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

This is with terraform 1.5.7 and github provider 5.43.0

CandiedCode avatar Jan 08 '24 04:01 CandiedCode

I have a similar error when trying to create multiple github_emu_group_mapping with a single team.

github_emu_group_mapping.DevOps["686806"]: Creation complete after 6s [id=teams/DevOps/external-groups]
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to github_emu_group_mapping.DevOps["686807"], provider "provider[\"registry.terraform.io/integrations/github\"]" produced an unexpected new value: Root object was
│ present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to github_emu_group_mapping.DevOps["686808"], provider "provider[\"registry.terraform.io/integrations/github\"]" produced an unexpected new value: Root object was
│ present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

RobertAlbus avatar Apr 30 '24 15:04 RobertAlbus

Same problem with github_actions_environment_variable:

Error: Provider produced inconsistent result after apply

When applying changes to
github_actions_environment_variable.my_variable, provider
"provider[\"registry.terraform.io/integrations/github\"]" produced an
unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

I've found a fix, going to create a PR for this resource only - but it might apply to all

marcoths avatar Sep 04 '24 20:09 marcoths

Hi, I also found this bug to occur for github_actions_variable and also github_repository_file.

699 │ Error: Provider produced inconsistent result after apply
700 │
701 │ When applying changes to github_actions_variable.RUNNER_HOM-variable,
702 │ provider "provider[\"registry.terraform.io/integrations/github\"]" produced
703 │ an unexpected new value: Root resource was present, but now absent.
704 │
705 │ This is a bug in the provider, which should be reported in the provider's
706 │ own issue tracker.
312 │ Error: Provider produced inconsistent result after apply
313 │
314 │ When applying changes to github_repository_file.codeowners, provider
315 │ "provider[\"registry.terraform.io/integrations/github\"]" produced an
316 │ unexpected new value: Root resource was present, but now absent.
317 │
318 │ This is a bug in the provider, which should be reported in the provider's
319 │ own issue tracker.
320 ╵

The error is very inconsistent as noted by the issue and sometime it occurs to multiple resources during a single apply.

fele-systems avatar Apr 29 '25 18:04 fele-systems