Issue accessing deployment logs in Deployment Center - Error: "Failed to load container logs: Resource containerlog of type text not found"

richard vo 0 Reputation points
2025-01-15T09:50:16.9066667+00:00

Hello,

I'm encountering an issue when trying to access the logs of my Web App (for container) through the Deployment Center. The following error appears: "Failed to load container logs: Resource containerlog of type text not found". As a result, I am unable to view the deployment logs or access the application, which is not working.

I deployed the same Web App on another subscription, and it works fine there. Occasionally, the issue resolves after waiting several days and shutting down other Web Apps on the same App Service Plan.

I've also checked the memory and CPU consumption of the App Service plan, and everything seems normal, with no alarming usage.

Has anyone encountered this issue before, or does anyone have insights into its cause or how to resolve it?

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.
8,180 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,046 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Laxman Reddy Revuri 1,755 Reputation points Microsoft Vendor
    2025-01-15T15:12:44.6366667+00:00

    Hi @richard vo
    Thanks for the question and using MS Q&A platform.
    Failed to load container logs: Resource containerlog of type text not found" indicates that the Deployment Center is unable to fetch logs from the Web App's container

    • Verify resource usage (CPU, memory) in the App Service Plan.
    • Scale up or out to reduce resource contention.
    • Deployment Center Configuration
    • Go to Azure Portal > Web App > Logs (Monitoring).
    • Enable Application Logging and Web Server Logging.
    • Recheck Deployment Center configuration.
    • Ensure container logs are mapped to /home/LogFiles.
    • Update logging paths in the container configuration if necessary.
    • Check Network Settings and firewall rules to ensure access is allowed for Azure services.
    • Review the Azure Service Health Dashboard for active incidents.
    • Redeploy the container using a tested image.
    • Inspect and correct the Dockerfile or docker-compose configuration 
    • Restart and Debug
    • Restart the Web App and App Service Plan from the Azure portal.

    Enable Diagnostic Logs for deeper analysis: Azure Portal > Web App > Diagnostics and Solve Problems.
    references: https://learn.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux&tabs=azure-cli


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.