Wiki source code of Runtime Overview Exit codes

Version 14.1 by TudorNeacsu on 2024/06/21 09:52

Hide last authors
etorken 1.1 1 {{container}}{{container layoutStyle="columns"}}(((
TudorNeacsu 8.1 2 In this microlearning, we will give insights into what is an exit code, the main exit codes returned by a container when it stops and how can that help a Support Engineer to conduct an RCA.
etorken 1.1 3
4 Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]].
5
TudorNeacsu 8.1 6 == 1. Key concepts ==
etorken 1.1 7
TudorNeacsu 12.1 8 In a previous [[microlearning>>https://docs.emagiz.com/bin/view/Main/eMagiz%20Academy/Microlearnings/Crash%20Course/Crash%20Course%20Platform/Runtime%20Overview||target="blank"]] we explained that a container can have multiple statuses. Among these, there is the status Exit which is returned by the container uppon stopping and comes together with a code. The exit code usually points out the reason why the container stopped. In the section below we go into more details for the most common exit codes that you could see in eMagiz.
etorken 1.1 9
TudorNeacsu 11.1 10 [[image:Main.Images.RCA-Knowledgebase.WebHome@rca-knowledgebase-runtime-overview-exit-codes.png]]
11
TudorNeacsu 8.1 12 == 2. Exit code values ==
etorken 1.1 13
TudorNeacsu 13.1 14 * Exited with code **0**
TudorNeacsu 14.1 15 ** The application inside the container completed its work successfully without any errors.
etorken 1.1 16
TudorNeacsu 13.1 17 * Exited with code **1**
TudorNeacsu 14.1 18 ** There was a general error in the application, which could be due to a variety of reasons like incorrect arguments or a failed dependency.
19 ** For example when you are missing a property value.
etorken 1.1 20
TudorNeacsu 13.1 21 * Exited with code **125**
TudorNeacsu 14.1 22 ** The docker run command was not executed successfully.
23 ** This usually occurs when eMagiz fails to execute a certain command on that container, e.g. Start, Stop.
etorken 1.1 24
TudorNeacsu 13.1 25 * Exited with code **126**
TudorNeacsu 14.1 26 ** The command inside the container was found but cannot be executed. This can be due to permission issues or if the command is not executable.
27 ** For example, when eMagiz is running on premises and the permissions are incorrectly configured.
etorken 1.1 28
TudorNeacsu 13.1 29 * Exited with code **127**
TudorNeacsu 14.1 30 ** The command was not found. This usually happens if a script is missing or the path is not set correctly.
etorken 1.1 31
TudorNeacsu 13.1 32 * Exited with code **137**
TudorNeacsu 14.1 33 ** The container was forcefully stopped
34 ** This happens when the container exceeds its memory resource limit (OOM).
etorken 1.1 35
TudorNeacsu 13.1 36 * Exited with code **139**
TudorNeacsu 14.1 37 ** The application inside the container crashed due to a segmentation fault, which is usually caused by accessing memory that the process does not have permission to access.
TudorNeacsu 9.1 38
TudorNeacsu 13.1 39 * Exited with code **143**
TudorNeacsu 14.1 40 ** The container stopped gracefully terminated after receiving the operating system's SIGTERM signal, which instructs the container to do so.
41 ** For example, when you command the container to stop via Deploy Architecture or when eMagiz stops the container, e.g. Stop Machine deployment step.
TudorNeacsu 12.1 42
TudorNeacsu 13.1 43 * Exited with code **255**
TudorNeacsu 14.1 44 ** Container exited, returning an exit code outside the acceptable range, meaning the cause of the error is not known.
etorken 1.1 45
46
47 == 5. Suggested Additional Readings ==
48
49
50 )))((({{toc/}}))){{/container}}{{/container}}