Azure DevOps Zip Deploy to Azure App Service fails when startup.sh was changed

Octopi Nederland B.V 1 Reputation point
2021-10-25T08:14:28.807+00:00

We deploy our application to Azure App Service (Linux) through Azure DevOps Zip Deploy. When we deploy changes to any file except startup.sh the deployment succeeds.
However, as soon as we change the startup.sh and try to deploy we get the following error:

"Rsync: rename "/home/site/wwwroot/.startup.sh.opLS0x" -> "startup.sh": No such file or directory"

When using SSH to access the container (ourdomain.scm.azurewebsites.net/webssh/hostcd) any operation involving the startup.sh file fails even though the startup.sh file does show up when using the "ls" command:

cat: startup.sh: No such file or directory

This problem can be resolved by stopping the App Service and starting it again. However, I believe we should be able to deploy without this trick because it may lead to downtime if not carefully executed.

Does anyone have an idea on how to resolve this issue?

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