首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >从Git部署到Azure:正在运行的oryx生成步骤已停止,日志中没有任何错误

从Git部署到Azure:正在运行的oryx生成步骤已停止,日志中没有任何错误
EN

Stack Overflow用户
提问于 2020-10-14 19:45:50
回答 1查看 590关注 0票数 0

我正在尝试将github的存储库(.net-core3.1)自动部署到azure AppService插槽,当我尝试部署它时,总是以失败状态结束。

日志并不能说明任何问题:

代码语言:javascript
运行
复制
{
    "id": "*****",
    "status": 3,
    "status_text": "",
    "author_email": "****",
    "author": "****",
    "deployer": "GitHub",
    "message": "*****",
    "progress": "",
    "received_time": "2020-10-14T08:27:43.3948241Z",
    "start_time": "2020-10-14T08:27:43.4878155Z",
    "end_time": "2020-10-14T08:28:43.9140325Z",
    "last_success_end_time": null,
    "complete": true,
    "active": false,
    "is_temp": false,
    "is_readonly": false,
    "url": "https://*****.scm.azurewebsites.net/api/deployments/*****",
    "log_url": "https://*****.scm.azurewebsites.net/api/deployments/*****/log",
    "site_name": "*****"
},

这是log_url

代码语言:javascript
运行
复制
[
    {
        "log_time": "2020-10-14T08:27:43.4458716Z",
        "id": "****",
        "message": "Updating submodules.",
        "type": 0,
        "details_url": null
    },
    {
        "log_time": "2020-10-14T08:27:43.4778886Z",
        "id": "****",
        "message": "Preparing deployment for commit id '****'.",
        "type": 0,
        "details_url": null
    },
    {
        "log_time": "2020-10-14T08:27:43.5716472Z",
        "id": "****",
        "message": "Repository path is /home/site/repository",
        "type": 0,
        "details_url": null
    },
    {
        "log_time": "2020-10-14T08:27:43.5945004Z",
        "id": "****",
        "message": "Running oryx build...",
        "type": 2,
        "details_url": "https://****.scm.azurewebsites.net/api/deployments/****/log/****"
    }
]

这是details_url

代码语言:javascript
运行
复制
Command: oryx build /home/site/repository -o /home/site/wwwroot --platform dotnet --platform-version 3.1 -i /tmp/8d870249a6c09c6 --log-file /tmp/build-debug.log
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20200805.1, Commit: ****, ReleaseTagName: 20200805.1

Build Operation ID: |***=.***_
Repository Commit : ****

Detecting platforms...
Detected following platforms:
dotnet: 3.1.6

Using intermediate directory '/tmp/***'.

Copying files to the intermediate directory...
Done in 3 sec(s).

Source directory : /tmp/****
Destination directory: /home/site/wwwroot


Using .NET Core SDK Version: 3.1.302
Determining projects to restore...

*******

Publishing to directory /home/site/wwwroot...

Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
All projects are up-to-date for restore.

****

Removing existing manifest file
Creating a manifest file...
Manifest file created.

Done in 57 sec(s).
\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform dotnet --platform-version 3.1 -i /tmp/***** --log-file /tmp/build-debug.log

我在部署过程中看不到任何错误,所有项目依赖关系都已成功恢复,并且我在日志中看不到任何错误。

您知道为什么要终止deploy进程,而不触发步骤Running post deployment command(s)...吗?或者你知道如何进一步挖掘日志的原因吗?

项目代码没有任何问题,因为当我通过手动FTP部署项目时,一切都正常工作。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-28 03:10:41

删除app服务插槽,从头重新创建解决方案。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64352557

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档