简体   繁体   English

Azure Web App node.js部署失败

[英]Azure Web App node.js deploy fails

We tried to deploy a new node.js version on Azure Web App. 我们尝试在Azure Web App上部署新的node.js版本。 A new source version is retrieved from our git repository on push. 在推送时从我们的git存储库中检索新的源版本。

It seems like some of the files remain locked and blocking our new deployment, what can we do, and can we avoid it in the future? 似乎某些文件仍处于锁定状态并阻止了我们的新部署,我们该怎么办,并且将来可以避免吗? (the locked file is an NPM library so it has nothing to do with the app code) (锁定的文件是NPM库,因此与应用程序代码无关)

updating iisnode.yml at D:\home\site\wwwroot\iisnode.yml
npm WARN package.json express-livereload@0.0.24 No repository field.
npm ERR! Error: EPERM, unlink 'D:\home\site\wwwroot\node_modules\azure_util\node_modules\pkgcloud\node_modules\aws-sdk\apis'
npm ERR!  { [Error: EPERM, unlink 'D:\home\site\wwwroot\node_modules\azure_util\node_modules\pkgcloud\node_modules\aws-sdk\apis']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: 'D:\\home\\site\\wwwroot\\node_modules\\azure_util\\node_modules\\pkgcloud\\node_modules\\aws-sdk\\apis' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Program Files (x86)\\nodejs\\0.10.32\\node.exe" "D:\\Program Files (x86)\\npm\\1.4.28\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
Failed exitCode=50, command="D:\Program Files (x86)\nodejs\0.10.32\node.exe" "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\bin\npm-cli.js" install --production
npm ERR! cwd D:\home\site\wwwroot
An error has occurred during web site deployment.

Azure Web App and file locks are annoying, stopping or resetting an slot will not remove any file locks. Azure Web App和文件锁令人讨厌,停止或重置插槽不会删除任何文件锁。

The only way to remove this file lock at command is to swap the slot with another one. 删除此文件锁定命令的唯一方法是将插槽与另一个交换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM