Azure Web App node.js deploy fails

走远了吗. 提交于 2019-12-13 00:15:31

问题


We tried to deploy a new node.js version on Azure Web App. A new source version is retrieved from our git repository on push.

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)

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.

回答1:


Azure Web App and file locks are annoying, stopping or resetting an slot will not remove any file locks.

The only way to remove this file lock at command is to swap the slot with another one.



来源:https://stackoverflow.com/questions/31598476/azure-web-app-node-js-deploy-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!