Error on deploy on free azure web app

emanuel5325_tupaca 20 Reputation points
2024-04-18T14:06:46.23+00:00

Hi! Since a pair weeks, i'm getting an error when trying to deploy a web app from the deploy center:

User's image

When i go into the deploy c4dce39, which is in an error state, the "Running oryx build..." step is the last one on the list, but in its registries there aren't any errors at all. It looks like the process was killed.

User's image

User's image

I accessed the deploy via ftps and inside the folder /site/deployments/c4dce398983f0fc2605a2a2695eb607c8d422cb9

i get this error in the status.xml:

<?xml version="1.0" encoding="utf-8"?>
<deployment>
  <id>c4dce398983f0fc2605a2a2695eb607c8d422cb9</id>
  <author>Emanuel Roberto Garca</author>
  <deployer>Bitbucket</deployer>
  <authorEmail>egarcia@tupaca.com</authorEmail>
  <message>Merged in feature/PERTIX-959</message>
  <progress></progress>
  <status>Failed</status>
  <statusText>Deployment has been stopped due to SCM container restart. The restart can happen due to a management operation on site. Do not perform a management operation and a deployment operation in quick succession. Adding a small delay can help avoid any conflicts.</statusText>
  <lastSuccessEndTime />
  <receivedTime>2024-04-16T11:55:27.0604618Z</receivedTime>
  <startTime>2024-04-18T11:45:52.5721362Z</startTime>
  <endTime>2024-04-18T12:14:19.3652705Z</endTime>
  <complete>True</complete>
  <is_temp>False</is_temp>
  <is_readonly>False</is_readonly>
  <buildSummary />
</deployment>

I found in another question a suggestion to use the key WEBSITES_CONTAINER_START_TIME_LIMIT, but it didn't work. Do you have any suggestions about how to solve this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
968 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 16,586 Reputation points Microsoft Employee
    2024-05-07T04:25:01.3833333+00:00

    @emanuel5325_tupaca It seems like the deployment was stopped due to an SCM container restart. This can happen if there was a management operation on the site.

    To avoid this issue, it's recommended to not perform a management operation and a deployment operation in quick succession. Adding a small delay can help avoid any conflicts.

    Regarding the suggestion to use the key WEBSITES_CONTAINER_START_TIME_LIMIT, this key is used to set the maximum amount of time that a container can take to start. If the container takes longer than this time limit to start, it will be terminated. However, this key may not be relevant to your issue since the error message you provided indicates that the deployment was stopped due to an SCM container restart.

    To troubleshoot this issue further, you can try the following steps:

    • Check the Azure portal for any notifications or alerts related to your web app.
    • Check the logs for your web app to see if there are any errors or warnings that could be related to the deployment issue.
    • Try deploying your web app again after waiting for some time to ensure that there are no conflicts with management operations.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.