If you have an issue with your application, the first place to check is Application Troubleshooting to see if the specific error is listed. If you don’t see an error message there, consider and try to rule out the following:
- Database connectivity issues.
- Environment variables:
- Connectivity issues with external applications.
- Bad Start commands. For example, if you are trying to use
npmis available, or a package.json file without the required start script.
- When chaining Start commands, the last command must initiate a web service. This keeps the container running and listening to incoming connections.
- An invalid package name in package.json. For example, do not use “js” or “node” in the name. For more details, see the specifics of npm’s package.json handling in the npm Docs.
- Permission issues.
- Missing files.
General Troubleshooting Steps
- If your application is created with a Dockerfile, make sure Bash is installed in the container. Usually, the base image (e.g. Ubuntu) includes a shell package and will work by default. The shell package may not be included in some more streamlined containers, and you’ll need to add it. The base image determines how to add the shell package:
apk add bash
apt install bash
dnf install bash
- Change the start command to
sleep 9999. This will get the pod into a running state where you can interact with it via the Web terminal. Edit the web process to change the start command (Processes > Runtime processes > Web process > Edit process).
- Open the Web terminal.
- Check the environment variables. In the web terminal, enter
printenvand check that the environment variables are what you expect them to be.
- Run the application manually. Try running the application manually with debug options enabled. The command to do this may vary, depending on the application. For more details, check the documentation for the language or package manager your application is built with.