Posting to health store failed. Status code: InternalServerError
- Dominant language
- No language data
- Stars
- 21
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
We are attempting to deploy a session host using an image definition/version. The deployment always seems to fail. We've noticed that the VM gets deployed, but the agent status doesn't show up as "Ready". Opening up "C:\WindowsAzure\Logs\WaAppAgent.txt", we see multiple attempts to upload health pinger data.
> [00000005] 2024-01-17T19:43:53.897Z [ERROR] UploadHealthPingerData: UploadHealthPingerData failed. Exception: System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Net.WebRequest.Create(String requestUriString)
at Microsoft.WindowsAzure.GuestAgent.ContainerStateMachine.HealthStoreEndpoint.TryPostToHealthStore(HealthStoreDataRoot healthStoreData, Boolean logEventOnFailure)
at Microsoft.WindowsAzure.GuestAgent.ContainerStateMachine.HealthStore.UploadHealthPingerData(List`1 healthStoreObservations)
[00000008] 2024-01-17T19:43:55.615Z [INFO] WindowsAzureGuestAgent stopped successfully.
[00000006] 2024-01-17T19:44:07.446Z [INFO] WindowsAzureGuestAgent starting. Version 2.7.41491.1102
>[00000016] 2024-01-18T13:25:18.311Z [WARN] GetVmArtifactsProfile: Received new etag for VMArtifactsProfileBlob "0x8DC18272B10812D" with content length 8192
[00000016] 2024-01-18T13:25:18.311Z [WARN] Trying to download VMSettingsProfile with etag 8723054446394365427
[00000016] 2024-01-18T13:25:33.328Z [WARN] Trying to download VMSettingsProfile with etag 8723054446394365427
[00000008] 2024-01-18T13:25:48.354Z [WARN] Trying to download VMSettingsProfile with etag 8723054446394365427
[00000008] 2024-01-18T13:25:52.973Z [WARN] Posting to health store failed. Status code: InternalServerError
[00000008] 2024-01-18T13:25:52.973Z [INFO] UploadHealthPingerData: Retry Count 1
[00000008] 2024-01-18T13:25:53.977Z [WARN] Posting to health store failed. Status code: InternalServerError
[00000008] 2024-01-18T13:25:53.977Z [INFO] UploadHealthPingerData: Retry Count 2
[00000008] 2024-01-18T13:25:54.985Z [WARN] Posting to health store failed. Status code: InternalServerError
[00000008] 2024-01-18T13:25:54.985Z [INFO] UploadHealthPingerData: Retry Count 3
[00000008] 2024-01-18T13:25:55.995Z [WARN] Posting to health store failed. Status code: InternalServerError
[00000008] 2024-01-18T13:25:55.995Z [INFO] UploadHealthPingerData: Retry Count 4
[00000008] 2024-01-18T13:25:57.004Z [WARN] Posting to health store failed. Status code: InternalServerError
[00000008] 2024-01-18T13:25:57.004Z [INFO] UploadHealthPingerData: Retry Count 5
[00000008] 2024-01-18T13:25:58.017Z [WARN] Posting to health store failed. Status code: InternalServerError
[00000008] 2024-01-18T13:25:58.017Z [INFO] UploadHealthPingerData: Retry Count 6
[00000008] 2024-01-18T13:25:59.028Z [ERROR] UploadHealthPingerData: Uploading to health store failed. After RetryCount
Any assistance that you all can provide is appreciated.
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with C:\WindowsAzure\Logs\WaAppAgent.txt and trace the UploadHealthPingerData and TryPostToHealthStore entries shown in the report. Check how the session-host deployment configures the health-store request and compare the URI-format exception with the later InternalServerError retries. Done means identifying the cause of the failed health upload and confirming that the agent reaches Ready status.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100