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

🐛 panic: runtime error: on aws.eks.clusters {nodeGroup} #4257

Open
mm-weber opened this issue Jun 18, 2024 · 0 comments
Open

🐛 panic: runtime error: on aws.eks.clusters {nodeGroup} #4257

mm-weber opened this issue Jun 18, 2024 · 0 comments
Labels
aws bug Something isn't working

Comments

@mm-weber
Copy link
Contributor

cnquery> aws.eks.clusters {nodeGroups}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5f546a6]

goroutine 306 [running]:
go.mondoo.com/cnquery/v11/providers/aws/resources.(*mqlAwsEksNodegroup).diskSize(...)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers/aws/resources/aws_eks.go:262
go.mondoo.com/cnquery/v11/providers/aws/resources.(*mqlAwsEksNodegroup).GetDiskSize.func1()
	/home/manuel/go/src/go.mondoo.io/cnquery/providers/aws/resources/aws.lr.go:25463 +0x26
go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin.GetOrCompute[...](0xc00102bab8?, 0xc000f676a0)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers-sdk/v1/plugin/runtime.go:269 +0x37
go.mondoo.com/cnquery/v11/providers/aws/resources.(*mqlAwsEksNodegroup).GetDiskSize(0xc0005bb028?)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers/aws/resources/aws.lr.go:25462 +0x3f
go.mondoo.com/cnquery/v11/providers/aws/resources.init.func2551({0x7c581e0?, 0xc00102b8c8?})
	/home/manuel/go/src/go.mondoo.io/cnquery/providers/aws/resources/aws.lr.go:4314 +0x2d
go.mondoo.com/cnquery/v11/providers/aws/resources.GetData({0x7c581e0, 0xc00102b8c8}, {0xc0008f7208, 0x8}, 0x2710?)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers/aws/resources/aws.lr.go:4408 +0x16b
go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin.(*Service).GetData(0x6ab2b60?, 0xc0002c4070)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers-sdk/v1/plugin/service.go:189 +0x323
go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin.(*GRPCServer).GetData(0xa392530?, {0x6cb2780?, 0xc000f67990?}, 0x55c405?)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers-sdk/v1/plugin/grpc.go:129 +0x1e
go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin._ProviderPlugin_GetData_Handler({0x6cb2780, 0xc000acfb80}, {0x7cf3cc0, 0xc0011aff50}, 0xc000f4b900, 0x0)
	/home/manuel/go/src/go.mondoo.io/cnquery/providers-sdk/v1/plugin/plugin_grpc.pb.go:307 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00033c800, {0x7cf3cc0, 0xc0011afec0}, {0x7cfc180, 0xc000af2a80}, 0xc0011ad8c0, 0xc000574b70, 0xa631a50, 0x0)
	/home/manuel/.gvm/pkgsets/go1.22.0/global/pkg/mod/google.golang.org/grpc@v1.64.0/server.go:1379 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc00033c800, {0x7cfc180, 0xc000af2a80}, 0xc0011ad8c0)
	/home/manuel/.gvm/pkgsets/go1.22.0/global/pkg/mod/google.golang.org/grpc@v1.64.0/server.go:1790 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
	/home/manuel/.gvm/pkgsets/go1.22.0/global/pkg/mod/google.golang.org/grpc@v1.64.0/server.go:1029 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 26
	/home/manuel/.gvm/pkgsets/go1.22.0/global/pkg/mod/google.golang.org/grpc@v1.64.0/server.go:1040 +0x125
x plugin process exited error="exit status 2" id=1262670 plugin=/home/manuel/.config/mondoo/providers/aws/aws
1 error occurred:
	* 2 errors occurred:
	* the 'aws' provider crashed: rpc error: code = Unavailable desc = error reading from server: EOF
	* the 'aws' provider crashed: rpc error: code = Unavailable desc = connection error: desc = "transport: error while dialing: dial unix /tmp/plugin3354607917: connect: connection refused"
aws.eks.clusters: [
  0: {
    nodeGroups: 2 errors occurred:
	* the 'aws' provider crashed: rpc error: code = Unavailable desc = error reading from server: EOF
	* the 'aws' provider crashed: rpc error: code = Unavailable desc = connection error: desc = "transport: error while dialing: dial unix /tmp/plugin3354607917: connect: connection refused"

  }
]
@mm-weber mm-weber added bug Something isn't working aws labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant