简体   繁体   中英

Azure Web App node.js deploy fails

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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