question

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT asked ·

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

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.

[Source]: https://social.msdn.microsoft.com/Forums/en-US/58b367fd-3046-493b-b8d5-4ed9d050daf5/cannot-start-node-app-on-azure-app-service?forum=AzureContainerServices

azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered ·

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://docs.microsoft.com/en-us/archive/blogs/waws/things-you-should-know-web-apps-and-linux#troubleshooting

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.