You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can be provided if needed, but I think the stack trace should be enough.
Expected Behavior
The apply should have completed successfully.
Actual Behavior
The apply failed with
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x11e9936]
goroutine 486 [running]:
github.com/hashicorp/go-tfe.(*stateVersions).Upload.func1()
/home/runner/go/pkg/mod/github.com/hashicorp/[email protected]/state_version.go:294 +0xb6
golang.org/x/sync/errgroup.(*Group).Go.func1()
/home/runner/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 26
/home/runner/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0x96
Steps to Reproduce
Set up a Terraform project with an Artifactory backend, and run
$ terraform apply
Additional Context
We are using Artifactory internally to hold our remote state, and to host some custom internal providers.
However, we don't believe these providers are the issue, since the stack trace does not reference them, and our changes are still being applied successfully even when Terraform crashes; it's only the remote state that does not get saved.
References
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting! This looks to be a known issue around handling upstream errors from the server when uploading state using the remote or cloud backends. That is to say, it's likely that your Artifactory instance returned a non-success error code when saving state, which unfortunately resulted in this panic rather than a more helpful error.
The fix has already been addressed in #34074 and should be released in v1.6.2.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
N/A
Debug Output
Can be provided if needed, but I think the stack trace should be enough.
Expected Behavior
The apply should have completed successfully.
Actual Behavior
The apply failed with
Steps to Reproduce
Set up a Terraform project with an Artifactory backend, and run
Additional Context
We are using Artifactory internally to hold our remote state, and to host some custom internal providers.
However, we don't believe these providers are the issue, since the stack trace does not reference them, and our changes are still being applied successfully even when Terraform crashes; it's only the remote state that does not get saved.
References
No response
The text was updated successfully, but these errors were encountered: