IBM Cloud Docs
Why doesn't my app ever become ready?

Why doesn't my app ever become ready?

After you deploy an app, the app does not achieve a ready status.

If your app is waiting and does not achieve a ready status, determine whether one of the following cases is true.

  1. By default, Code Engine apps listen for incoming connections on port 8080. Your app might listen on a different port if you receive the following error message,

    Internal error:
    RevisionFailed: Revision "myapp-1" failed with message: Initial scale was never achieved
    
  2. Your app is deployed from repository source code and the app displays a waiting status.

  3. Your app is deployed from local source code and the app displays a waiting status.

Try one of these solutions.

  1. Code Engine requires that you have an HTTP endpoint that Code Engine uses to check the health of your app. If your app doesn't respond to the configured endpoint port, the app is never marked as ready. To remedy this case,

    1. Code Engine sets the PORT environment variable to the port value that the application listens to receive HTTP requests. Use this environment variable to set the listening port. See Automatically injected environment variables for apps.
    2. If your app listens on a port other than port 8080, deploy your app from the console and specify the correct port. Or, use the ibmcloud ce app create command in the CLI and specify the port with the --port option. Note that the following ports are reserved by Code Engine: 8022, 8008, 8012, 9090, 9091, and 15090.
  2. If your app is deployed from repository source code, check the status of the image build. The image build completes before the app is deployed. From the app page in the console, click View build to view information about your build from repository source. If you are using the CLI, use the ibmcloud ce buildrun get command to view information about your build.

  3. If your app is deployed from local source code, check the status of the image build. The image build completes before the app is deployed. Use the ibmcloud ce buildrun get command from the CLI to view information about your build.