microsoft / showwhy

MIT License
200 stars 28 forks source link

Has anyone successfully build the app in Azure Portal using the AKS ARM Template ? #439

Closed hungha90 closed 3 months ago

hungha90 commented 3 months ago

Hi,

I am trying to deploy the app on Azure using the template but during the deployment process I got this error message

{ "code": "DeploymentFailed", "target": "/subscriptions/f5e981f8-18dd-4538-adbd-e9428e2bd81d/resourceGroups/show_why_deploy/providers/Microsoft.Resources/deployments/helmDeployment", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.", "details": [ { "code": "ResourceDeploymentFailure", "target": "/subscriptions/f5e981f8-18dd-4538-adbd-e9428e2bd81d/resourceGroups/show_why_deploy/providers/Microsoft.Resources/deployments/helmScripts", "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.", "details": [ { "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.", "details": [ { "code": "Conflict", "message": "{\r\n \"status\": \"failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"The provided script failed with multiple errors. First error:\r\nConnecting to get.helm.sh (152.199.39.108:443). Please refer to https://aka.ms/DeploymentScriptsTroubleshoot for more deployment script information.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Connecting to get.helm.sh (152.199.39.108:443)\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"saving to 'helm.tgz'\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"helm.tgz 100% |****| 13.8M 0:00:00 ETA\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"'helm.tgz' saved\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Downloading client to \\"/usr/local/bin/kubectl\\" from \\"https://storage.googleapis.com/kubernetes-release/release/v1.29.3/bin/linux/amd64/kubectl\\\"\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Please ensure that /usr/local/bin is in your search PATH, so the kubectl command can be found.\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Downloading client to \\"/tmp/tmpu3_qvndu/kubelogin.zip\\" from \\"https://github.com/Azure/kubelogin/releases/download/v0.1.1/kubelogin.zip\\\"\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Please ensure that /usr/local/bin is in your search PATH, so the kubelogin command can be found.\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Pulled: ghcr.io/microsoft/showwhy/causal-services:0.3.0\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Digest: sha256:ef0f374a74ccc57419b8b6aeedc4fa31ca9b66c854504a5fdb30e215ed270ce0\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Error: failed pre-install: timed out waiting for the condition\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}" } ] } ] } ] } >

{"code":"DeploymentFailed","target":"/subscriptions/f5e981f8-18dd-4538-adbd-e9428e2bd81d/resourceGroups/show_why_deploy/providers/Microsoft.Resources/deployments/helmDeployment","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/f5e981f8-18dd-4538-adbd-e9428e2bd81d/resourceGroups/show_why_deploy/providers/Microsoft.Resources/deployments/helmScripts","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"The provided script failed with multiple errors. First error:\r\nConnecting to get.helm.sh (152.199.39.108:443). Please refer to https://aka.ms/DeploymentScriptsTroubleshoot for more deployment script information.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Connecting to get.helm.sh (152.199.39.108:443)\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"saving to 'helm.tgz'\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"helm.tgz 100% |****| 13.8M 0:00:00 ETA\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"'helm.tgz' saved\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Downloading client to \\"/usr/local/bin/kubectl\\" from \\"https://storage.googleapis.com/kubernetes-release/release/v1.29.3/bin/linux/amd64/kubectl\\\"\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Please ensure that /usr/local/bin is in your search PATH, so the kubectl command can be found.\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Downloading client to \\"/tmp/tmpu3_qvndu/kubelogin.zip\\" from \\"https://github.com/Azure/kubelogin/releases/download/v0.1.1/kubelogin.zip\\\"\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Please ensure that /usr/local/bin is in your search PATH, so the kubelogin command can be found.\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Pulled: ghcr.io/microsoft/showwhy/causal-services:0.3.0\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Digest: sha256:ef0f374a74ccc57419b8b6aeedc4fa31ca9b66c854504a5fdb30e215ed270ce0\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Error: failed pre-install: timed out waiting for the condition\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}]}]}

Please check and tell me how can I fix it

Thank you

dayesouza commented 3 months ago

Hi! I just tested and it worked fine on my Azure. Did you used the Deploy to Azure button? It seems like a temporary helm problem maybe?

hungha90 commented 3 months ago

Hi! I just tested and it worked fine on my Azure. Did you used the Deploy to Azure button? It seems like a temporary helm problem maybe?

Hi @dayesouza , yes I used the deploy to Azure button (right in this link: https://github.com/microsoft/showwhy?tab=readme-ov-file#deployment ) but I got error when deploying helm (please see the image in attachment) z5304968324907_9bfabbc835edd1c51eec8480375e3128

Do you have any suggestion to fix that ?

Thank you

dayesouza commented 3 months ago

@hungha90 , By the 'conflict' it's written there, can you verify that it's not creating any resource name that you already have? In the first message is it the Error details or Operation details?

hungha90 commented 3 months ago

Hi @dayesouza ,

I just tried to deploy again but still got the same error

1 2

And when I click on "Error Detail", I got this {"code":"DeploymentFailed","target":"/subscriptions/f5e981f8-18dd-4538-adbd-e9428e2bd81d/resourceGroups/new_showwhy_resourcegroup/providers/Microsoft.Resources/deployments/helmDeployment","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/f5e981f8-18dd-4538-adbd-e9428e2bd81d/resourceGroups/new_showwhy_resourcegroup/providers/Microsoft.Resources/deployments/helmScripts","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"The provided script failed with multiple errors. First error:\\r\\nConnecting to get.helm.sh (152.199.39.108:443). Please refer to https://aka.ms/DeploymentScriptsTroubleshoot for more deployment script information.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Connecting to get.helm.sh (152.199.39.108:443)\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"saving to 'helm.tgz'\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"helm.tgz 100% |********************************| 13.8M 0:00:00 ETA\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"'helm.tgz' saved\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Downloading client to \\\"/usr/local/bin/kubectl\\\" from \\\"https://storage.googleapis.com/kubernetes-release/release/v1.29.3/bin/linux/amd64/kubectl\\\"\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Please ensure that /usr/local/bin is in your search PATH, so thekubectlcommand can be found.\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Downloading client to \\\"/tmp/tmp6yn0u74p/kubelogin.zip\\\" from \\\"https://github.com/Azure/kubelogin/releases/download/v0.1.1/kubelogin.zip\\\"\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Please ensure that /usr/local/bin is in your search PATH, so thekubelogincommand can be found.\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Pulled: ghcr.io/microsoft/showwhy/causal-services:0.3.0\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Digest: sha256:ef0f374a74ccc57419b8b6aeedc4fa31ca9b66c854504a5fdb30e215ed270ce0\"\r\n },\r\n {\r\n \"code\": \"DeploymentScriptError\",\r\n \"message\": \"Error: failed pre-install: timed out waiting for the condition\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}]}]}

3

And when I click on "Operation Details", I got this 4

5

6

7

I do not know how to fix it

Do you have any suggestion?

Thank you

dayesouza commented 3 months ago

@hungha90 I had a similar problem when deploying with a DNS name that already existed for that region.... but my error was exactly saying that. If it's not it, I wonder if it's any limitation on your azure subscription or account?

hungha90 commented 3 months ago

@hungha90 I had a similar problem when deploying with a DNS name that already existed for that region.... but my error was exactly saying that. If it's not it, I wonder if it's any limitation on your azure subscription or account?

Hi @dayesouza it looks like the issue got resolved . I have succussed in deploying the tool in Azure. Thank you for your concern