Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.12050.0 - Publishing fails on " Failed to change file that is currently being used" #3367

Closed
kgoderis opened this issue Aug 31, 2018 · 1 comment

Comments

@kgoderis
Copy link

Since upgrading to the latest release, publishing functions from VS Code to the cloud does not work anymore. The output of the process is always similar to:

2:58:49 PM SNDOdoo: Creating zip package...
2:58:59 PM SNDOdoo: Starting deployment...
2:59:11 PM SNDOdoo: Updating submodules.
2:59:13 PM SNDOdoo: Preparing deployment for commit id '761ce7ca79'.
2:59:14 PM SNDOdoo: Generating deployment script.
2:59:14 PM SNDOdoo: Using cached version of deployment script (command: 'azure -y --no-dot-deployment -r "D:\local\Temp\zipdeploy\extracted" -o "D:\home\site\deployments\tools" --basic --sitePath "D:\local\Temp\zipdeploy\extracted"').
2:59:15 PM SNDOdoo: Running deployment command...
2:59:15 PM SNDOdoo: Command: "D:\home\site\deployments\tools\deploy.cmd"
2:59:16 PM SNDOdoo: Handling Basic Web Site deployment.
2:59:18 PM SNDOdoo: KuduSync.NET from: 'D:\local\Temp\zipdeploy\extracted' to: 'D:\home\site\wwwroot'
**2:59:18 PM SNDOdoo: Error: Failed to change file that is currently being used "D:\home\site\wwwroot\bin\SNDOdoo.dll"**
2:59:18 PM SNDOdoo: Copying file: 'SNDOdoo.deps.json'
2:59:18 PM SNDOdoo: Copying file: 'bin\extensions.json'
2:59:18 PM SNDOdoo: Copying file: 'bin\SNDOdoo.dll'
2:59:18 PM SNDOdoo: Failed exitCode=1, command="kudusync" -v 50  -f "D:\local\Temp\zipdeploy\extracted" -t "D:\home\site\wwwroot" -n "D:\home\site\deployments\761ce7ca79b443839ef2d334a073b4ff\manifest" -p "D:\home\site\deployments\300ea0a65b1c4ce19961f054d0dd5c1a\manifest" -i ".git;.hg;.deployment;deploy.cmd"
2:59:18 PM SNDOdoo: An error has occurred during web site deployment.
**2:59:18 PM SNDOdoo: Error: Failed to change file that is currently being used "D:\home\site\wwwroot\bin\SNDOdoo.dll"\r\nD:\Program Files (x86)\SiteExtensions\Kudu\77.10830.3542\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"**
2:59:28 PM SNDOdoo: Waiting for long running command to finish...
Deployment to "SNDOdoo" completed.

Investigative information

.NET Core SDK (reflecting any global.json):
Version: 2.1.301
Commit: 59524873d6

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.13-x64
Base Path: /usr/local/share/dotnet/sdk/2.1.301/

Host (useful for support):
Version: 2.1.1
Commit: 6985b9f684

.NET Core SDKs installed:
2.1.301 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

@davidebbo
Copy link
Contributor

Looks similar to projectkudu/kudu#2849. Let's use that one to discuss all in one place, so closing this one.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants