Skip to content

Commit 4d2dfc1

Browse files
authored
More guidance on resource not ready error
1 parent ad5633f commit 4d2dfc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/machine-learning/how-to-troubleshoot-online-endpoints.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.subservice: mlops
88
author: dem108
99
ms.author: sehan
1010
ms.reviewer: mopeakande
11-
ms.date: 01/27/2023
11+
ms.date: 03/02/2023
1212
ms.topic: troubleshooting
1313
ms.custom: devplatv2, devx-track-azurecli, cliv2, event-tier1-build-2022, sdkv2, ignite-2022
1414
#Customer intent: As a data scientist, I want to figure out why my online endpoint deployment failed so that I can fix it.
@@ -439,12 +439,13 @@ Please check the pod status and logs to fix this issue, you can also try to upda
439439

440440
To run the `score.py` provided as part of the deployment, Azure creates a container that includes all the resources that the `score.py` needs, and runs the scoring script on that container. The error in this scenario is that this container is crashing when running, which means scoring can't happen. This error happens when:
441441

442-
- There's an error in `score.py`. Use `get-logs` to help diagnose common problems:
443-
- A package that was imported but isn't in the conda environment.
442+
- There's an error in `score.py`. Use `get-logs` to diagnose common problems:
443+
- A package that `score.py` tries to import isn't included in the conda environment.
444444
- A syntax error.
445445
- A failure in the `init()` method.
446446
- If `get-logs` isn't producing any logs, it usually means that the container has failed to start. To debug this issue, try [deploying locally](#deploy-locally) instead.
447447
- Readiness or liveness probes aren't set up correctly.
448+
- Container initialization is taking too long so that readiness or liveness probes fail beyond failure threshold. In this case, adjust [probe settings](reference-yaml-deployment-managed-online#probesettings) to allow longer time to initialize the container, or try a bigger VM SKU among [supported VM SKUs](reference-managed-online-endpoints-vm-sku-list) which will accelerate the initialization.
448449
- There's an error in the environment set up of the container, such as a missing dependency.
449450
- When you face `TypeError: register() takes 3 positional arguments but 4 were given` error, the error may be caused by the dependency between flask v2 and `azureml-inference-server-http`. See [FAQs for inference HTTP server](how-to-inference-server-http.md#1-i-encountered-the-following-error-during-server-startup) for more details.
450451

0 commit comments

Comments
 (0)