Skip to content

Commit 2139a5e

Browse files
initial edits
1 parent 804c411 commit 2139a5e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

articles/spring-apps/troubleshoot-build-exit-code.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ This article will help you solve various problems that can arise when your Azure
1919

2020
## Build exit codes
2121

22-
Azure Spring Apps Enterprise tier leverage [Tanzu Buildpacks](https://docs.vmware.com/en/VMware-Tanzu-Buildpacks/index.html) to transform your application source code into images.
23-
When deploying your Azure Spring Apps via [Azure CLI](/cli/azure/install-azure-cli), you will see build log in Azure CLI console.
22+
Azure Spring Apps Enterprise tier leverage [Tanzu Buildpacks](https://docs.vmware.com/en/VMware-Tanzu-Buildpacks/index.html) to transform your application source code into images.
23+
When deploying your Azure Spring Apps via [Azure CLI](/cli/azure/install-azure-cli), you will see build log in Azure CLI console.
24+
2425
If the build is failed, exit code and error message is shown in the CLI console.
25-
The exit code and error message indicates the reason why the buildpack execution is failed during different [phase](https://buildpacks.io/docs/concepts/components/lifecycle/).
26+
The exit code and error message indicates the reason why the buildpack execution is failed during different [phase](https://buildpacks.io/docs/concepts/components/lifecycle/).
2627
The following list describes the most common exit codes:
2728

28-
- **20** - All buildpacks groups have failed to detect.
29+
- **20** - All buildpacks groups have failed to detect.
2930

3031
Consider the following possible causes for 20 exit code:
3132
- The builder you are using doesn't support the language your project used.
@@ -34,19 +35,20 @@ The following list describes the most common exit codes:
3435

3536
- You are running against the wrong path.
3637

37-
For example, your Maven project's pom.xml file is not in root path. You can set BP_MAVEN_POM_FILE to specify the project's pom.xml file.
38-
38+
For example, your Maven project's pom.xml file is not in root path. You can set BP_MAVEN_POM_FILE to specify the project's pom.xml file.
39+
3940
- There's something wrong with your application.
4041

4142
For example, your jar file doesn't have a /META-INF/MANIFEST.MF file which contains a Main-Class entry.
42-
43+
4344
- **51** - Buildpack build error.
4445

4546
Consider the following possible causes for 51 exit code:
4647

4748
- Error message "Build failed in stage build with reason OOMKilled" is shown in Azure CLI console.
4849

4950
Build is failed due to insufficient memory, increase memory via setting build environment variable in Azure CLI:
51+
5052
```azurecli
5153
az spring app deploy
5254
--resource-group <your-resource-group-name> \
@@ -58,11 +60,11 @@ The following list describes the most common exit codes:
5860
- Application source code error:
5961
6062
For example, there's compilation error in your source code. You can check the build log to find out the root cause.
61-
63+
6264
- Download dependency error:
6365
64-
For example, maven dependency download is failed due to network issue.
65-
66+
For example, maven dependency download is failed due to network issue.
67+
6668
- **62** - Failed to write image to Azure Container Registry.
6769
6870
Consider the following possible causes for 62 exit code:

0 commit comments

Comments
 (0)