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
Copy file name to clipboardExpand all lines: articles/spring-apps/troubleshoot-build-exit-code.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,14 @@ This article will help you solve various problems that can arise when your Azure
19
19
20
20
## Build exit codes
21
21
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
+
24
25
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/).
26
27
The following list describes the most common exit codes:
27
28
28
-
-**20** - All buildpacks groups have failed to detect.
29
+
-**20** - All buildpacks groups have failed to detect.
29
30
30
31
Consider the following possible causes for 20 exit code:
31
32
- 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:
34
35
35
36
- You are running against the wrong path.
36
37
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
+
39
40
- There's something wrong with your application.
40
41
41
42
For example, your jar file doesn't have a /META-INF/MANIFEST.MF file which contains a Main-Class entry.
42
-
43
+
43
44
-**51** - Buildpack build error.
44
45
45
46
Consider the following possible causes for 51 exit code:
46
47
47
48
- Error message "Build failed in stage build with reason OOMKilled" is shown in Azure CLI console.
48
49
49
50
Build is failed due to insufficient memory, increase memory via setting build environment variable in Azure CLI:
51
+
50
52
```azurecli
51
53
az spring app deploy
52
54
--resource-group <your-resource-group-name> \
@@ -58,11 +60,11 @@ The following list describes the most common exit codes:
58
60
- Application source code error:
59
61
60
62
For example, there's compilation error in your source code. You can check the build log to find out the root cause.
61
-
63
+
62
64
- Download dependency error:
63
65
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
+
66
68
- **62** - Failed to write image to Azure Container Registry.
67
69
68
70
Consider the following possible causes for 62 exit code:
0 commit comments