Azure的Web应用程序的Node.js部署失败 [英] Azure Web App node.js deploy fails

查看:136
本文介绍了Azure的Web应用程序的Node.js部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们试图部署在Azure上Web App的新版本的Node.js。
新源的版本是从我们推送的Git库中检索。

这似乎是某些文件仍然锁定,挡住了我们的新的部署,我们能做些什么,而且我们能够避免它的未来?
(锁定文件是NPM库,它无关的应用程序code)

 更新iisnode.yml在D:\\家\\网站\\ wwwroot的\\ iisnode.yml
NPM WARN的package.json ex$p$pss-livereload@0.0.24无库场。
NPM ERR!错误:EPERM,断开链接D:\\家\\网站\\ wwwroot的\\ node_modules \\ azure_util \\ node_modules \\ pkgcloud \\ node_modules \\ AWS-SDK \\的API
NPM ERR! {[错误:EPERM,断开链接D:\\家\\网站\\ wwwroot的\\ node_modules \\ azure_util \\ node_modules \\ pkgcloud \\ node_modules \\ AWS-SDK \\ API的']
NPM ERR!错误号:50,
NPM ERR! code:'EPERM',
NPM ERR!路径: 'D:\\\\home\\\\site\\\\wwwroot\\\
ode_modules\\\\azure_util\\\
ode_modules\\\\pkgcloud\\\
ode_modules\\\\aws-sdk\\\\apis' }
NPM ERR!
NPM ERR!请重试运行此命令,作为根/管理员。
NPM ERR!系统Windows_NT 6.2.9200
NPM ERR!命令D:\\\\ Program Files文件(x86)的\\\\ \\\\的NodeJS \\\\ 0.10.32 node.exeD:\\\\ Program Files文件(x86)的\\\\ \\\\ NPM \\\\ 1.4.28 \\\\ node_modules NPM \\ \\ BIN \\\\ NPM-cli.js安装 - 生产
失败退出code = 50,命令=D:\\ Program Files文件(x86)的\\的NodeJS \\ 0.10.32 \\ node.exeD:\\ Program Files文件(x86)的\\故宫\\ 1.4.28 \\ node_modules \\ NPM \\ BIN \\ NPM-cli.js安装 - 生产
NPM ERR! CWD D:\\家\\网站\\ wwwroot文件
网站在部署过程中出现了错误。


解决方案

Azure的Web应用程序和文件锁是烦人,停止或重置插槽不会删除任何文件锁定。

在命令删除此文件锁定的唯一方法是用另一个交换插槽。

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.

这篇关于Azure的Web应用程序的Node.js部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆