$PATH
of your container is to set the start command to sleep infinity
, and then use the porter run command to get shell access. From this shell, you could for example run:
137
: indicates that the process was killed by SIGKILL
. The most common reason for this is that your application does not handle graceful shutdown when it receives a SIGTERM
signal. After receiving SIGTERM
, your application should close existing connections and terminate with exit code 0
. See the graceful shutdown doc for more information.1
: indicates common issues. Check container logs for further troubleshooting. For example, this could be the result of exit(1)
.255
: this could either be the result of exit(-1)
(which is translated to 255
) from the application, or could indicate that the application was forcibly killed by the underlying Kubernetes node. This is common if the application moves between nodes during a node scale-down event. While Porter typically kills processes running on the nodes gracefully, there are rare cases where the containers are abruptly stopped. To avoid downtime in these instances, it is recommended that at least 2 replicas are running for each application instance.2
: This could happen because of a misuse of a shell builtin when using Bash.126
: A command was invoked that could not be executed by the system.127
: Command was not found. Please check your $PATH
or for a possible typo.128
: Invalid argument to exit()
.130
: Process terminated with Ctrl+C
.128+n
denotes the fatal signal n
from the standard Linux interruption signals.
recv
errors in your NGINX logs, the application is sending sending a connection reset message before a response is sent. This can usually be resolved by increasing the keepalive
value in your application code.413 Request Entity Too Large
502 Bad Gateway
502 Bad Gateway
when your application is not starting correctly. See application restarts to troubleshoot the error. This could also be a port number error — make sure that you’ve set the port number correctly in the Main
application tab.
503 Temporarily Unavailable
503 Temporarily Unavailable
permanently when visiting the public URL. Make sure that you’ve set the port number correctly in the Main
application tab. If the port number is set correctly, this may be shown when there is an application restart: see above for more information.