“功能运行时无法启动” [英] "The function runtime is unable to start"

查看:92
本文介绍了“功能运行时无法启动”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道它可能与配置错误有关,但不幸的是,我得到的最多信息是

I know it probably has something to do with a misconfiguration, but unfortunately the most info I get is


函数运行时无法执行开始。会话ID:
b939c608ae424150878a55eeac6e7d36时间戳记:2018-10-04T18:05:22.023Z

The function runtime is unable to start. Session Id: b939c608ae424150878a55eeac6e7d36 Timestamp: 2018-10-04T18:05:22.023Z

我的函数看起来像

    [FunctionName("DoJob")]
    public static async Task DoJobAsync([ServiceBusTrigger("job-queue", Connection = "MyServiceBusConnection")] string json, ILogger log)
    {

       … 

    }

,而我的local.settings.json就像

and my my local.settings.json is like

{
    "IsEncrypted": false,
    "Values": {
      "AzureWebJobsStorage": "UseDevelopmentStorage=true",
      "AzureWebJobsDashboard": "UseDevelopmentStorage=true",
      "MyServiceBusConnection": "[my service bus connection string]"
    }
}

该功能应用程序在本地构建并发布,但是一旦我在门户中导航到该应用程序,我就会收到上述错误。

The function app builds locally and publishes, but as soon as I navigate to it in the portal I get the above error.

我正在使用.NET Standard(V2)以及最新版本1.0.22。

I am using .NET Standard (V2) and the latest version 1.0.22.

此外,如果我尝试在门户中进行测试,则会收到500 Internal Server Error,但日志流中没有任何显示。

Also, if I try to test in the portal I get 500 Internal Server Error but nothing shows up in Log Streaming.

推荐答案

如果没有更多信息,我想您可能会忘记在Azure门户的应用程序设置中添加 MyServiceBusConnection ,这将导致相同的错误你见过。

Without any further info, I assume you may forget to add MyServiceBusConnection in Application settings on Azure portal, which will cause same error you have seen.

如果不是这种情况,则可以转到 https://< functionappname> .scm.azurewebsites.net / DebugConsole 并导航到 D:\home\LogFiles\Application\Functions\Host 以查看函数运行时日志。

If it's not the case, you could go to https://<functionappname>.scm.azurewebsites.net/DebugConsole and navigate to D:\home\LogFiles\Application\Functions\Host to see function runtime logs.

这篇关于“功能运行时无法启动”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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