Open Closed

Port error while deploying to Azure App service #7939


User avatar
0
Sergei.Gorlovetsky created

Hello, I am trying to deploy the backend into an Azure App service (Linux) customer container—not a docker.

I am facing this startup failure issue related to ports.

I also have, put environment variables PORT, WEBSITES_PORT, ASPNETCORE_HTTP_PORTS with value such as 80,8000,8080 but nothing works.

How do I fix this, can I get some help please ?

2024-09-19T04:19:00.859Z INFO - docker run -d --expose=8080 --name econsent-staging-api_0_54294e83 -e WEBSITE_USE_DIAGNOSTIC_SERVER=true -e WEBSITES_PORT=8080 -e WEBSITE_SITE_NAME=econsent-staging-api -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=econsent-staging-api-hhdzezc7h4gfabcn.canadacentral-01.azurewebsites.net -e WEBSITE_INSTANCE_ID=0d5668f121ac94cc42d5df8f8ef98a91f96d44ffa9020693b531b2188a4ede59 -e ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=Microsoft.ApplicationInsights.StartupBootstrapper -e DOTNET_STARTUP_HOOKS=/agents/core/StartupHook/Microsoft.ApplicationInsights.StartupHook.dll appsvc/dotnetcore:8.0_20240819.2.tuxprod 2024-09-19T04:19:00.861Z INFO - Logging is not enabled for this container. Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here. 2024-09-19T04:19:02.560Z INFO - Initiating warmup request to container econsent-staging-api_0_54294e83 for site econsent-staging-api 2024-09-19T04:19:13.995Z ERROR - Container econsent-staging-api_0_54294e83 for site econsent-staging-api has exited, failing site start 2024-09-19T04:19:14.013Z ERROR - Container econsent-staging-api_0_54294e83 didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging. 2024-09-19T04:19:14.025Z INFO - Stopping site econsent-staging-api because it failed during startup. 2024-09-19T04:26:07.480Z INFO - Starting container for site


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Logging is not enabled for this container. Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here

    failing site start. See container logs for debugging

    please turn on the logging and check it

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00