HTTP Status 404 - Web app for container (Linux)

Dela Pascal 0 Reputation points
2023-02-04T10:10:44.7066667+00:00

Hi,

I am getting a HTTP 404 Not Found error (The origin server did not find a current representation for the target resource or is not willing to disclose that one exists) when I access when my web app (app service container) deployed on Linux. 
It used to work and at some point I started getting this error.

What's weird is that the same docker image work properly on my local.
I can see the web app started in the logs in azure but accessing it is returning this 404.

I've used the same base code to build a new docker image (Using Azure devOps) and deployed it --> same issue.

After several days of investigations (comparing docker images without finding a clue) I found out that all the docker images built prior January 13th are working fine in azure. After this date, always got 404.

The difference I found is about the Agent machine used to build the docker images (I am using ubuntu-latest in my azure pipelines):

  • Prior Jan 24th: agent image ubuntu-22.04 Version: 20230109.1
  • After this date: agent image Image: ubuntu-22.04: Version: 20230118.2

Could this new version of the ubuntu be in cause? Could you please help?
I've checked the diagnose and solve problems and everything is fine there.

Thanks in advance for your help

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,820 questions
{count} votes

3 answers

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points
    2023-02-04T12:46:02.14+00:00

    Hi,

    Can you check the deployment process over here as there are initial configuration and setup for App Service on Linux assuming it is a Java App? If not check other supported Apps in the same link - https://learn.microsoft.com/en-us/azure/app-service/quickstart-java?tabs=javase&pivots=platform-linux-development-environment-azure-portal&view=azure-java-stable

    Also verify the troubleshooting steps here - https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/faqs-app-service-linux?toc=%2Fazure%2Fapp-service%2Ftoc.json&view=azure-java-stable

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Ryan Hill 25,476 Reputation points Microsoft Employee
    2023-03-06T15:03:06.7033333+00:00

    Hi @Dela Pascal

    Per our offline conversation, initial investigation showed that app service plan was reporting high CPU usage. This could be a leading cause of your 404 errors and suggested to either scale out your plan to two instances or scale up to a higher tier level. I also provided Troubleshoot performance degradation - Azure App Service | Microsoft Learn as guide to better isolate the performance issue.

    You were able to resolve your issue by stripping down some of the features of your app that was consuming too much CPU.

    0 comments No comments