EACCES:通过Microsoft Azure部署node.js Web App时,权限被拒绝

时间:2019-10-28 13:37:52

标签: node.js azure express deployment

我正在使用Microsoft Azure部署一个node.js Web应用程序。正在使用VS代码中的Azure扩展来部署它。该应用程序已“成功部署”,但是当您浏览网站时,浏览器会返回 Application Error 消息。当我尝试部署有问题的Web应用程序时,这是控制台的输出:JA-6MP-Portfolio1

13:00:39 JA-6MP-Portfolio1: Creating zip package...
13:00:55 JA-6MP-Portfolio1: Starting deployment...
13:01:55 JA-6MP-Portfolio1: Fetching changes.
13:01:55 JA-6MP-Portfolio1: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/d5e28b94-958e-4034-b2ea-6c19634eef06.zip (103.58 MB) to /tmp/zipdeploy/extracted
13:02:11 JA-6MP-Portfolio1: Updating submodules.
13:02:11 JA-6MP-Portfolio1: Preparing deployment for commit id '14acc3bb56'.
13:02:11 JA-6MP-Portfolio1: Oryx-Build: Running kudu sync...
13:02:11 JA-6MP-Portfolio1: Command: kudusync -v 50 -f /tmp/zipdeploy/extracted -t /home/site/wwwroot -n /home/site/deployments/14acc3bb566247a2bb30d0a4a3516cb8/manifest -p /home/site/deployments/dd3fd7cb1e5f47f0a2c10c4f5aa893bb/manifest -i ".git;.hg;.deployment;.deploy.sh"
13:02:14 JA-6MP-Portfolio1: Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
13:02:14 JA-6MP-Portfolio1: Ignoring: .deployment
13:02:14 JA-6MP-Portfolio1: Ignoring: .git
13:02:14 JA-6MP-Portfolio1: Error: EACCES: permission denied, mkdir '/home/site/wwwroot/node_modules/.bin'
13:02:14 JA-6MP-Portfolio1: \n/opt/Kudu/Scripts/starter.sh kudusync -v 50 -f /tmp/zipdeploy/extracted -t /home/site/wwwroot -n /home/site/deployments/14acc3bb566247a2bb30d0a4a3516cb8/manifest -p /home/site/deployments/dd3fd7cb1e5f47f0a2c10c4f5aa893bb/manifest -i ".git;.hg;.deployment;.deploy.sh"
13:02:14 JA-6MP-Portfolio1: App container will begin restart within 10 seconds.
13:02:23 JA-6MP-Portfolio1: Waiting for long running command to finish...
13:02:24: Deployment to "JA-6MP-Portfolio1" completed.

此网络应用已在4周前成功部署。当我尝试从4周前开始部署提交时,它不再起作用。以前没有发生EACCES错误。

0 个答案:

没有答案