Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

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

Closed
blueelvis opened this issue Jan 22, 2018 · 6 comments
Closed

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

blueelvis opened this issue Jan 22, 2018 · 6 comments
Assignees
Labels

Comments

@blueelvis
Copy link

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.










<step title="Error occurred" date="2018-01-22T12:38:22.870" type="error" text="
/opt/Kudu/bin/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"" stackTrace=" at Kudu.Core.Infrastructure.Executable.Ex
ecuteInternal (Kudu.Contracts.Tracing.ITracer tracer, System.Func2[T,TResult] onWriteOutput, System.Func2[T,TResult] onWriteError, System.
Text.Encoding encoding, System.String arguments, System.Object[] args) [0x0018e] in <e1df42f3f8d4400d9fa6e6e5c964fb58>:0
at Kudu.Core.Infrastructure.Executable.ExecuteWithProgressWriter (Kudu.Core.Deployment.ILogger logger, Kudu.Contracts.Tracing.ITracer trac
er, System.String arguments, System.Object[] args) [0x00071] in <e1df42f3f8d4400d9fa6e6e5c964fb58>:0
at Kudu.Core.Deployment.Generator.ExternalCommandBuilder.RunCommand (Kudu.Core.Deployment.DeploymentContext context, System.String command
, System.String message) [0x00131] in <e1df42f3f8d4400d9fa6e6e5c964fb58>:0
at Kudu.Core.Deployment.Generator.GeneratorSiteBuilder.Build (Kudu.Core.Deployment.DeploymentContext context) [0x00049] in <e1df42f3f8d
4400d9fa6e6e5c964fb58>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4dc8ec68b0964e099af86e50301f5f3c>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4dc8ec68b0964e099af8
6e50301f5f3c>:0

Mention any other details that might be useful.

It is just not pushing. On push, I receive the following error on the git terminal -

remote: Processed 13695 files...
remote: ................
remote: Processed 15289 files...
remote: ..........
remote: Error: ENOENT: no such file or directory, open '/home/site/repository/vendor/bin/phpcs'
remote: An error has occurred during web site deployment.
remote: Kudu Sync failed
remote:
remote: App container will begin restart within 10 seconds.
remote: Error - Changes committed to remote repository but deployment to website failed.

Any idea what is happening?

@nickwalkmsft
Copy link
Contributor

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
Copy link
Author

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
Copy link

ebibibi commented Feb 26, 2018

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
Copy link
Author

@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 - projectkudu/KuduSync#35

@davidebbo
Copy link
Member

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

@jvano
Copy link
Member

jvano commented Apr 29, 2024

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

@jvano jvano closed this as completed Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants