You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
online-deployment issue "The Managed Inference service creation is taking longer than our normal time" #4088
Description of issue (in as much detail as possible)
Command:- az ml online-deployment create --name blue --endpoint advanced-ner-endpoint-demo -f deployment.yml --all-traffic
Exception details
Creating or updating online_deployments
Check: endpoint advanced-endpoint exists
The deployment request bhushan-workspace-advanced-ner-endpoint-demo-8612672 was accepted. ARM deployment URI for reference: https://ms.portal.azure.com/#blade/HubsExtension/DeploymentDetailsBlade/overview/id/%2Fsubscriptions%2F2b044625-9119-453a-8f50-53426430883b%2
Registering model version (ad2f42d3-xxxx-xxxx-be9f-2e20ef135c16 1 ) Done (1s)
Registering code version (c665e43f-xxxx-xxxx-a98d-a84911248e91 1 ) Done (1s)
Registering environment version (32890045-xxxx-48d3-a43c-6f2ec0323d08 1 ) Done (6s)
Creating deployment blue ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Code: ResourceDeploymentFailure
Message: The resource operation completed with terminal provisioning state 'Failed'.
Exception Details: (DeploymentTimedOut) The Managed Inference service creation is taking longer than our normal time.
Hi Bhushan Gholave (@bhushangholave)! We found an error stating that the operation timed out waiting for an image build to complete. If you check the Azure portal, are you able to find an image build error under operation details?
AzureML doesn't have access to the image build log because of the privacy. Though it is available for the user from the storage associated with the workspace or from the container registry associated with user workspace (ACR task runs). Timeout issue from the image build usually means poor environment specification, and pip fails to resolve the conflicts in user dependencies with a reasonable time.
Solution from the user end would be to inspect the dependencies and fix conflicts. Should be easily repro-ed locally by materializing environment from the conda spec.
Temporary workaround that might work is to pin pip<=20.2.4 to use older resolver that ignores some of the conflicts
Vivian Li (@vs-li) and vizhur thank you for your comments.
Looks like some timeout issue to me but it reproducing every time.
Error details in ARM deployments are
{
"status": "Failed",
"error": {
"code": "DeploymentTimedOut",
"message": "The Managed Inference service creation is taking longer than our normal time.",
"details": [],
"additionalInfo": []
}
}
Vivian Li (@vs-li) In Azure portal Environment tab it is still stuck at installing pip dependencies.
Same environment is working on our other workspace
Attaching logs and dependencies file
after 1HR30 m it timed out Installing pip dependencies: ...working...
Run ID: cf4 timed out after 1h30m0s Environment.log
. pipdependencies file.txt
Bhushan Gholave (@bhushangholave) you have dependencies conflict. Unfortunately conda swallows pip's log and you cannot see pips struggles. if you pip install -r requirements.txt with those deps with the latest pip you should see where pip gets stuck. There are a bunch of tuckets for pip for those kind of issues, feel free to file one too.
just to unblock yourself you can try to pin pip<=20.2.4 to use old resolver that ignores some of the conflicts
Activity
yonzhan commentedon Nov 9, 2021
route to service team
diondrapeck commentedon Nov 10, 2021
Acknowledged - beginning investigation and will reach out for more information if needed.
vs-li commentedon Nov 10, 2021
Hi Bhushan Gholave (@bhushangholave)! We found an error stating that the operation timed out waiting for an image build to complete. If you check the Azure portal, are you able to find an image build error under operation details?
vizhur commentedon Nov 10, 2021
AzureML doesn't have access to the image build log because of the privacy. Though it is available for the user from the storage associated with the workspace or from the container registry associated with user workspace (ACR task runs). Timeout issue from the image build usually means poor environment specification, and pip fails to resolve the conflicts in user dependencies with a reasonable time.
Solution from the user end would be to inspect the dependencies and fix conflicts. Should be easily repro-ed locally by materializing environment from the conda spec.
Temporary workaround that might work is to pin pip<=20.2.4 to use older resolver that ignores some of the conflicts
bhushangholave commentedon Nov 11, 2021
Vivian Li (@vs-li) and vizhur thank you for your comments.
Looks like some timeout issue to me but it reproducing every time.
Error details in ARM deployments are
bhushangholave commentedon Nov 11, 2021
Vivian Li (@vs-li) In Azure portal Environment tab it is still stuck at installing pip dependencies.
Same environment is working on our other workspace
Attaching logs and dependencies file
after 1HR30 m it timed out
Installing pip dependencies: ...working...
Run ID: cf4 timed out after 1h30m0s
Environment.log
.
pipdependencies file.txt
vizhur commentedon Nov 12, 2021
Bhushan Gholave (@bhushangholave) you have dependencies conflict. Unfortunately conda swallows pip's log and you cannot see pips struggles. if you pip install -r requirements.txt with those deps with the latest pip you should see where pip gets stuck. There are a bunch of tuckets for pip for those kind of issues, feel free to file one too.
just to unblock yourself you can try to pin pip<=20.2.4 to use old resolver that ignores some of the conflicts
bhushangholave commentedon Nov 12, 2021
vizhur you are right, corrected my dependencies file and it worked. But portal or deployment creation needs to throw correct error and logs for debug.
RakeshMohanMSFT commentedon Apr 22, 2022
Bhushan Gholave (@bhushangholave) Since the work around helped. Closing this thread for now.