[MSDN Redirect] Cannot start Node app on Azure App Service

SnehaAgrawal-MSFT 19,511 Reputation points
2020-02-18T07:52:19.14+00:00

I'm deploying a nodejs excel add-in on Azure App Service, but it will not start. I always get the below error even when I fix the application settings and set the PORT and WEBSITES_PORT to the appropriate value:

2020-02-17 21:58:09.307 ERROR - Container opm-addin_0_b85a5b66 for site opm-addin has exited, failing site start
2020-02-17 21:58:09.309 ERROR - Container opm-addin_0_b85a5b66 didn't respond to HTTP pings on port: 3000, failing site start. See container logs for debugging.

I also have lost the ability to SSH, but I can't still view logs remotely. The app runs locally, but doesn't seem to start.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,204 questions
0 comments No comments
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 19,511 Reputation points
    2020-02-18T07:55:09.977+00:00

    Thanks for asking question! Just to confirm are port 3000 is being exposed? It looks like when we are trying to ping the container, we aren't pinging on a port on which the container is listening.

    There are a couple of ways to resolve this.

    1. Use the EXPOSE instruction in your Dockerfile to expose port 3000.
    2. Use the WEBSITES_PORT app setting with a value of "3000" to expose that port.

    You may refer to below link might be helpful:

    https://learn.microsoft.com/en-us/archive/blogs/waws/things-you-should-know-web-apps-and-linux#troubleshooting

    0 comments No comments

0 additional answers

Sort by: Most helpful