Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

batch insights crashes with "invalid memory address or nil pointer dereference" #40

Open
zhuweid opened this issue Nov 4, 2019 · 1 comment

Comments

@zhuweid
Copy link

zhuweid commented Nov 4, 2019

i am getting the following error when starting batch insights in a node

System information:
OS: windows
Pool ID: weid-log-poc-6
Node ID: tvmps_bf84e465f618415c5d708b5f482b966099754c72da408d20f3817451c0ac7676_p
Instrumentation Key: xxxxx
context deadline exceeded
context deadline exceeded
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x6648d5]

goroutine 1 [running]:
github.com/Azure/batch-insights/pkg.AppInsightsService.UploadStats(0x752e40, 0xc0000052a0, 0xc0000d8090, 0x0, 0x0, 0x0, 0xc000030d20, 0x2, 0x2, 0x0, ...)
D:/a/1/s/pkg/appinsights.go:45 +0x465
github.com/Azure/batch-insights/pkg.ListenForStats(0xc0000140b0, 0xe, 0xc00000e140, 0x48, 0xc00000c150, 0x24)
D:/a/1/s/pkg/batchinsights.go:68 +0x353
main.main()
D:/a/1/s/main.go:32 +0x321

the pool was created in cloud service configuration
and i am sure i have provided the correct environment variables in the pool start task environment variables
new EnvironmentSetting("APP_INSIGHTS_INSTRUMENTATION_KEY", "xxx"),
new EnvironmentSetting("APP_INSIGHTS_APP_ID", "xxx"),
new EnvironmentSetting("BATCH_INSIGHTS_DOWNLOAD_URL", "https://github.com/Azure/batch-insights/releases/download/v1.0.0/batch-insights.exe")

@ransagy
Copy link

ransagy commented Nov 27, 2019

I get the same even locally on a Windows 10 1909 machine. Last version that worked for me is 1.2.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants