-
Notifications
You must be signed in to change notification settings - Fork 268
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
Plugin crashed with invalid memory address or nil pointer dereference #1055
Comments
Even after upgrading the plugin version, i still get the following error:
i believe from looking at the code that it is mostly referring to ServiceEndpointProjectReferences being null. So, i want to understand, when would that be the case? where/how does it get its value from? |
@sonalm this might be the permission issue that not all the SE properties are returned by service. The flatten operation try to get the properties but get nil exception |
I am having the same issue. I have created the service connection manually with "Azure Resource Manager using Workload Identity federation with OpenID Connect (automatic)", this service connection is part of the "Project Collection Administrators" Azure DevOps group, and I have enabled it to use OIDC:
What exactly is the issue here? |
@clumsyhands @sonalm can you share your TF script? |
I am having the same issue. The TF script is
The message error that I received is:
Am I doing something wrong? |
Facing the same issue! |
Facing the same issue. Any idea why this is happening? |
I think it is a problem of go code. |
Facing similar issues. For me it started happening after I manually deleted a repository that was managed by Terraform, I guess that was a bad idea on my part. Then nothing worked at all even after commenting out all the code. However in my case I managed to solve it by removing that specific repository from state, then it worked again. So I suppose this error could happen if someone made a change (or deleted) a resource that is managed by Terraform. For your case it might be a serviceconnection/serviceendpoint:
For me it was repos: |
Can confirm, I deleted a test repository that I created via the provider and observed the same issue. |
Occured again for us, with the following culprit: I set up the initial Terraform configuration locally on my Windows machine, using PAT authentication to deploy. This is working as expected currently. When I run our CI/CD pipeline using Linux agent with a federated credentials service connection (with the exact same Terraform Version and providers) it crashes on Terraform Plan:
Seems to me there are issues using federated credentials with the DevOps provider, as others have mentioned using it as well |
@NikolaiKleppe about the second: you faced a simillar error, right? Just the message “invalid memory…” is the same. Is the reason different? |
Plugin crashes with following error:
Can you please highlight what could be the reason behind this error?
The text was updated successfully, but these errors were encountered: