@@ -12,7 +12,9 @@ ms.topic: troubleshooting
12
12
ms.custom : devx-track-python, event-tier1-build-2022
13
13
---
14
14
15
- # Troubleshooting Environment Image Builds using Troubleshooting Log Error Messages
15
+ # Troubleshooting environment image builds using troubleshooting log error messages
16
+
17
+ In this article, learn how to troubleshoot common problems you may encounter with environment image builds.
16
18
17
19
## Azure Machine Learning environments
18
20
@@ -75,9 +77,9 @@ Not all the vulnerabilities are exploitable, so you need to use your judgment wh
75
77
- ** [ Conda Issues During Build] ( #conda-issues-during-build ) ** <br >
76
78
- ** [ Pip Issues During Build] ( #pip-issues-during-build ) ** <br >
77
79
78
- ## * Environment Definition Problems *
80
+ ## * Environment definition problems *
79
81
80
- ### Environment Name Issues
82
+ ### Environment name issues
81
83
#### ** "Curated prefix not allowed"**
82
84
Terminology:
83
85
@@ -94,7 +96,7 @@ Terminology:
94
96
- Environment names can be up to 255 characters in length
95
97
- Consider renaming and shortening your environment name
96
98
97
- ### Docker Issues
99
+ ### Docker issues
98
100
To create a new environment, you must use one of the following approaches:
99
101
1 . Base image
100
102
- Provide base image name, repository from which to pull it, credentials if needed
@@ -175,7 +177,7 @@ do this, see [set_connection](https://aka.ms/azureml/environment/set-connection-
175
177
- The specified Dockerfile can't exceed the maximum Dockerfile size of 100KB
176
178
- Consider shortening your Dockerfile to get it under this limit
177
179
178
- ### Docker Build Context Issues
180
+ ### Docker build context issues
179
181
#### ** "Missing Dockerfile path"**
180
182
- In the Docker build context, a Dockerfile path must be specified
181
183
- This is the path to the Dockerfile relative to the root of Docker build context directory
@@ -203,7 +205,7 @@ environment definition:
203
205
- If the build context is stored in a storage account, the path of the build context must be specified as
204
206
- ` https://storage-account.blob.core.windows.net/container/path/ `
205
207
206
- ### Base Image Issues
208
+ ### Base image issues
207
209
#### ** "Base image is deprecated"**
208
210
- The following base images are deprecated:
209
211
- ` azureml/base `
@@ -229,12 +231,12 @@ It's best to use newer, non-deprecated versions.
229
231
- Digest
230
232
- See [ image with immutable identifier] ( https://aka.ms/azureml/environment/pull-image-by-digest )
231
233
232
- ### Environment Variable Issues
234
+ ### Environment variable issues
233
235
#### ** "Misplaced runtime variables"**
234
236
- An environment definition shouldn't contain runtime variables
235
237
- Use the ` environment_variables ` attribute on the [ RunConfiguration object] ( https://aka.ms/azureml/environment/environment-variables-on-run-config ) instead
236
238
237
- ### Python Issues
239
+ ### Python issues
238
240
#### ** "Python section missing"**
239
241
* V1*
240
242
@@ -289,7 +291,7 @@ conda_dep.add_conda_package("python==3.8")
289
291
- The provided Python version may have been formatted improperly or specified with incorrect syntax
290
292
- See [ conda package pinning] ( https://aka.ms/azureml/environment/how-to-pin-conda-packages )
291
293
292
- ### Conda Issues
294
+ ### Conda issues
293
295
#### ** "Missing conda dependencies"**
294
296
- The [ environment definition] ( https://aka.ms/azureml/environment/environment-class-v1 )
295
297
has a [ PythonSection] ( https://aka.ms/azureml/environment/environment-python-section )
@@ -328,7 +330,7 @@ environment definition
328
330
version of a package on subsequent builds of an environment. This can lead to unexpected errors and incorrect behavior
329
331
- See [ conda package pinning] ( https://aka.ms/azureml/environment/how-to-pin-conda-packages )
330
332
331
- ### Pip Issues
333
+ ### Pip issues
332
334
#### ** "Pip not specified"**
333
335
- For reproducibility, pip should be specified as a dependency in your conda specification, and it should be pinned
334
336
- See [ how to set a conda dependency] ( https://aka.ms/azureml/environment/add-conda-package-v1 )
@@ -342,15 +344,15 @@ image builds on the environment
342
344
- See [ conda package pinning] ( https://aka.ms/azureml/environment/how-to-pin-conda-packages )
343
345
- See [ how to set pip as a dependency] ( https://aka.ms/azureml/environment/add-conda-package-v1 )
344
346
345
- ### Deprecated Environment Property Issues
347
+ ### Deprecated environment property issues
346
348
#### ** "R section is deprecated"**
347
349
- The Azure Machine Learning SDK for R will be deprecated by the end of 2021 to make way for an improved R training and deployment
348
350
experience using Azure Machine Learning CLI 2.0
349
351
- See the [ samples repository] ( https://aka.ms/azureml/environment/train-r-models-cli-v2 ) to get started with the Public Preview edition of the 2.0 CLI
350
352
351
353
## * Image Build Problems*
352
354
353
- ### Miscellaneous Issues
355
+ ### Miscellaneous issues
354
356
#### ** "Build log unavailable"**
355
357
- Build logs are optional and not available for all environments since the image might already exist
356
358
@@ -359,7 +361,7 @@ experience using Azure Machine Learning CLI 2.0
359
361
- If your scenario involves a VNet, you may need to build images using a compute cluster
360
362
- See [ secure a workspace using virtual networks] ( https://aka.ms/azureml/environment/acr-private-endpoint )
361
363
362
- ### Docker Pull Issues
364
+ ### Docker pull issues
363
365
#### ** "Failed to pull Docker image"**
364
366
- Possible issues:
365
367
- The path name to the container registry might not be resolving correctly
@@ -376,7 +378,7 @@ experience using Azure Machine Learning CLI 2.0
376
378
- You haven't provided credentials for a private registry you're trying to pull the image from, or the provided credentials are incorrect
377
379
- Set [ workspace connections] ( https://aka.ms/azureml/environment/set-connection-v1 ) for the container registry if needed
378
380
379
- ### Conda Issues During Build
381
+ ### Conda issues during build
380
382
#### ** "Bad spec"**
381
383
- Failed to create or update the conda environment due to an invalid package specification
382
384
- See [ package match specifications] ( https://aka.ms/azureml/environment/conda-package-match-specifications )
@@ -448,7 +450,7 @@ from the provided conda specification
448
450
- Failed to create or update the conda environment because a package was specified on the command line using ">" or "<"
449
451
without using quotes. Consider adding quotes around the package specification
450
452
451
- ### Pip Issues During Build
453
+ ### Pip issues during build
452
454
#### ** "Failed to install packages"**
453
455
- Failed to install Python packages
454
456
- Review the image build log for more information on this error
0 commit comments