SSH CONN CLOSE Error on Azure App Service

Tomas Mijat 5 Reputation points
2024-11-13T06:55:31.0566667+00:00

I am unable to connect to SSH, and I am unable to connect to the app service.

The container logs just say that the "Conatiner [containerName] for site [siteName] has exited, failing site start". It then processed to an error saying that "Container [containerName] didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging."

There is no additional debug and on the containers and deployment actions were successful which which has a build step. The only additional change that was made was to add "clean: true" to the "uses: azure/webapps-deploy@v3" command as per the release notes.
https://github.com/Azure/webapps-deploy/releases/tag/v3.0.0

I have tried restarting the service in an attempt to ssh and run the build command but no success.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,948 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2024-11-18T08:49:25.87+00:00

    The difference in the PORT variable between your two app services could be due to several reasons. Azure App Service typically listens on port 80 for HTTP traffic and port 443 for HTTPS traffic by default. However, for custom containers, the port can be specified using the WEBSITES_PORT environment variable. If this variable is not set, Azure App Service attempts automatic port detection, which might explain why one instance is set to 8181 and another to 8080.

    You may explicitly set the WEBSITES_PORT environment variable in your Azure App Service configuration. This can be done using the Azure Portal or the Azure CLI. For example, using the Azure CLI, you can set the port like this:

    az webapp config appsettings set --resource-group <resource-group-name> --name <app-name> --settings WEBSITES_PORT=8080
    
    
    

    Kindly review the config - Use this option to delete files on the Azure App Service that have no matching files in the App Service package or folder.

    RemoveAdditionalFilesFlag - Remove additional files at destination boolean. Optional. Use when UseWebDeploy == true && WebAppKind != linux && WebAppKind != applinux && WebAppKind != "". Default value: false.

    Note: This will also remove all files related to any extension installed on this Azure App Service. To prevent this, select the Exclude files from App_Data folder checkbox.


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.