Skip to content

Commit bbb8667

Browse files
edebar01Larry Franks
andauthored
Apply suggestions from code review
Co-authored-by: Larry Franks <[email protected]>
1 parent 16ee878 commit bbb8667

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

articles/machine-learning/how-to-troubleshoot-environments.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ ms.topic: troubleshooting
1212
ms.custom: devx-track-python, event-tier1-build-2022
1313
---
1414

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.
1618

1719
## Azure Machine Learning environments
1820

@@ -75,9 +77,9 @@ Not all the vulnerabilities are exploitable, so you need to use your judgment wh
7577
- **[Conda Issues During Build](#conda-issues-during-build)**<br>
7678
- **[Pip Issues During Build](#pip-issues-during-build)** <br>
7779

78-
## *Environment Definition Problems*
80+
## *Environment definition problems*
7981

80-
### Environment Name Issues
82+
### Environment name issues
8183
#### **"Curated prefix not allowed"**
8284
Terminology:
8385

@@ -94,7 +96,7 @@ Terminology:
9496
- Environment names can be up to 255 characters in length
9597
- Consider renaming and shortening your environment name
9698

97-
### Docker Issues
99+
### Docker issues
98100
To create a new environment, you must use one of the following approaches:
99101
1. Base image
100102
- 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-
175177
- The specified Dockerfile can't exceed the maximum Dockerfile size of 100KB
176178
- Consider shortening your Dockerfile to get it under this limit
177179

178-
### Docker Build Context Issues
180+
### Docker build context issues
179181
#### **"Missing Dockerfile path"**
180182
- In the Docker build context, a Dockerfile path must be specified
181183
- This is the path to the Dockerfile relative to the root of Docker build context directory
@@ -203,7 +205,7 @@ environment definition:
203205
- If the build context is stored in a storage account, the path of the build context must be specified as
204206
- `https://storage-account.blob.core.windows.net/container/path/`
205207

206-
### Base Image Issues
208+
### Base image issues
207209
#### **"Base image is deprecated"**
208210
- The following base images are deprecated:
209211
- `azureml/base`
@@ -229,12 +231,12 @@ It's best to use newer, non-deprecated versions.
229231
- Digest
230232
- See [image with immutable identifier](https://aka.ms/azureml/environment/pull-image-by-digest)
231233

232-
### Environment Variable Issues
234+
### Environment variable issues
233235
#### **"Misplaced runtime variables"**
234236
- An environment definition shouldn't contain runtime variables
235237
- Use the `environment_variables` attribute on the [RunConfiguration object](https://aka.ms/azureml/environment/environment-variables-on-run-config) instead
236238

237-
### Python Issues
239+
### Python issues
238240
#### **"Python section missing"**
239241
*V1*
240242

@@ -289,7 +291,7 @@ conda_dep.add_conda_package("python==3.8")
289291
- The provided Python version may have been formatted improperly or specified with incorrect syntax
290292
- See [conda package pinning](https://aka.ms/azureml/environment/how-to-pin-conda-packages)
291293

292-
### Conda Issues
294+
### Conda issues
293295
#### **"Missing conda dependencies"**
294296
- The [environment definition](https://aka.ms/azureml/environment/environment-class-v1)
295297
has a [PythonSection](https://aka.ms/azureml/environment/environment-python-section)
@@ -328,7 +330,7 @@ environment definition
328330
version of a package on subsequent builds of an environment. This can lead to unexpected errors and incorrect behavior
329331
- See [conda package pinning](https://aka.ms/azureml/environment/how-to-pin-conda-packages)
330332

331-
### Pip Issues
333+
### Pip issues
332334
#### **"Pip not specified"**
333335
- For reproducibility, pip should be specified as a dependency in your conda specification, and it should be pinned
334336
- 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
342344
- See [conda package pinning](https://aka.ms/azureml/environment/how-to-pin-conda-packages)
343345
- See [how to set pip as a dependency](https://aka.ms/azureml/environment/add-conda-package-v1)
344346

345-
### Deprecated Environment Property Issues
347+
### Deprecated environment property issues
346348
#### **"R section is deprecated"**
347349
- 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
348350
experience using Azure Machine Learning CLI 2.0
349351
- 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
350352

351353
## *Image Build Problems*
352354

353-
### Miscellaneous Issues
355+
### Miscellaneous issues
354356
#### **"Build log unavailable"**
355357
- Build logs are optional and not available for all environments since the image might already exist
356358

@@ -359,7 +361,7 @@ experience using Azure Machine Learning CLI 2.0
359361
- If your scenario involves a VNet, you may need to build images using a compute cluster
360362
- See [secure a workspace using virtual networks](https://aka.ms/azureml/environment/acr-private-endpoint)
361363

362-
### Docker Pull Issues
364+
### Docker pull issues
363365
#### **"Failed to pull Docker image"**
364366
- Possible issues:
365367
- The path name to the container registry might not be resolving correctly
@@ -376,7 +378,7 @@ experience using Azure Machine Learning CLI 2.0
376378
- You haven't provided credentials for a private registry you're trying to pull the image from, or the provided credentials are incorrect
377379
- Set [workspace connections](https://aka.ms/azureml/environment/set-connection-v1) for the container registry if needed
378380

379-
### Conda Issues During Build
381+
### Conda issues during build
380382
#### **"Bad spec"**
381383
- Failed to create or update the conda environment due to an invalid package specification
382384
- See [package match specifications](https://aka.ms/azureml/environment/conda-package-match-specifications)
@@ -448,7 +450,7 @@ from the provided conda specification
448450
- Failed to create or update the conda environment because a package was specified on the command line using ">" or "<"
449451
without using quotes. Consider adding quotes around the package specification
450452

451-
### Pip Issues During Build
453+
### Pip issues during build
452454
#### **"Failed to install packages"**
453455
- Failed to install Python packages
454456
- Review the image build log for more information on this error

0 commit comments

Comments
 (0)