【问题标题】:Node js app is failed to upload to azure serviceNode js 应用程序无法上传到 azure 服务
【发布时间】:2021-07-19 00:34:21
【问题描述】:

我正在尝试将我的节点应用上传到 azure 应用服务, 该应用程序是一个快速应用程序,在端口 8080 上运行并侦听发布请求 使用 vscode 部署它时,它一直失败并显示以下日志:

    4:41:38: Using existing resource group "appsvc_linux_centralus".
14:41:39: Ensuring App Service plan "appsvc_linux_centralus" exists...
14:41:39: Creating App Service plan "appsvc_linux_centralus"...
14:42:10: Successfully created App Service plan "appsvc_linux_centralus".
14:42:10: Verifying that Application Insights is available for this location...
14:42:12: Creating Application Insights resource "orizvibot"...
14:42:20: Successfully created Application Insights resource "orizvibot".
14:42:20: Creating new web app "orizvibot"...
14:42:43: Created new web app "orizvibot": https://orizvibot.azurewebsites.net
14:42:47 orizvibot: Starting deployment...
14:42:49 orizvibot: Creating zip package...
14:43:26 orizvibot: Fetching changes.
14:43:27 orizvibot: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/cd7130ae-4472-4659-9719-6ca6b3f41a4e.zip (0.02 MB) to /tmp/zipdeploy/extracted
14:43:33 orizvibot: Updating submodules.
14:43:34 orizvibot: Preparing deployment for commit id '47824e40-c'.
14:43:34 orizvibot: Repository path is /tmp/zipdeploy/extracted
14:43:34 orizvibot: Running oryx build...
14:43:34 orizvibot: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 14 -i /tmp/8d907df5b84c97b -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log 
14:43:39 orizvibot: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
14:43:39 orizvibot: You can report issues at https://github.com/Microsoft/Oryx/issues
14:43:39 orizvibot: Oryx Version: 0.2.20210225.2, Commit: f7b557f29a83aa078cc94c0056e7337c07f14271, ReleaseTagName: 20210225.2
14:43:39 orizvibot: Build Operation ID: |/lykwYbLGE4=.808061dd_
14:43:39 orizvibot: Repository Commit : 47824e40-c8bb-4824-8fbb-f1aeeab1af0b
14:43:39 orizvibot: Detecting platforms...
14:43:42 orizvibot: Detected following platforms:
14:43:42 orizvibot:   nodejs: 14.15.1
14:43:42 orizvibot: Version '14.15.1' of platform 'nodejs' is not installed. Generating script to install it...
14:43:42 orizvibot: Error: Oops... An unexpected error has occurred.
14:43:44 orizvibot: /opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 14 -i /tmp/8d907df5b84c97b -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log 
14:44:03 orizvibot: Deployment failed.

有什么帮助吗? 我可以找出问题所在..

【问题讨论】:

  • 你检查过这个文件(/tmp/build-debug.log) 知道为什么它失败了吗?在您的系统中找到日志文件 (/tmp/build-debug.log)。输出是帮助你找出你做错了什么所需要的。

标签: javascript node.js azure azure-web-app-service


【解决方案1】:

Nodejs 未安装在您的服务器中,请检查脚本并再次部署

【讨论】:

  • 由于某种原因,我没有日志文件.. 甚至没有 tmp 文件夹。
  • 它被隐藏了,用什么来看看
猜你喜欢
  • 2020-12-08
  • 1970-01-01
  • 1970-01-01
  • 2017-10-10
  • 1970-01-01
  • 2021-06-02
  • 2020-11-29
  • 1970-01-01
  • 2016-07-01
相关资源
最近更新 更多