projectkudu / kudu

Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.
Apache License 2.0
3.12k stars 652 forks source link

Unable to push to Azure Web App for Container using git #2670

Closed blueelvis closed 6 months ago

blueelvis commented 6 years ago

For deployment issues, please provide us with the following information:

Repro steps.

Create PHP project of Drupal and add it to local git. Create Web App for Container in Azure using a custom image. Do note that this works fine and is based from the official PHP image.

Project structures.

Project structure includes everything like composer packages, drupal core etc.

The log/error given by the failure.

nickwalkmsft commented 6 years ago

The push is successful but it's failing during the deployment step.

Can you see if /home/site/repository/vendor/bin/phpcs exists via Kudu Console?

blueelvis commented 6 years ago

Yes. It was existing via the Kudu Console and it was failing to delete as well. Had to rescale the app service plan to get the storage unlinked correctly. Even restarting the web app did not fix this issue... I have seen some weird permission denied errors as well while trying to delete a file even when the container web app is stopped.

More info - https://twitter.com/Blueelvis_RoXXX/status/955873765644103680

ebibibi commented 6 years ago

I had met similar issue. My situation is same error and the file is symbolic link to not existing file in azure. I replaced to actual file and problem solved.

blueelvis commented 6 years ago

@nickwalkmsft - It seems the issue is occurring because KuduSync is not able to traverse symlinks properly. This issue becomes more prominent when there is an issue with the Azure Storage in the backend which makes the storage read only for some time and deployments start failing.

I have raised an issue for Kudusync over here as well - https://github.com/projectkudu/KuduSync/issues/35

davidebbo commented 6 years ago

+@rramachand21 to help with Linux questions, as @nickwalkmsft is now working on other things.

jvano commented 6 months ago

Hi

If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

This way we can better track and assist you on this case

Thanks,

Joaquin Vano Azure App Service