计时器触发器 Azure Function 停止工作,没有任何更改 [英] Timer trigger Azure Function stopped working without any changes

查看:62
本文介绍了计时器触发器 Azure Function 停止工作,没有任何更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Azure 函数,它同时具有 Timer TriggerService Bus Trigger 函数.在该 AF 的 Portal Azure 配置中,我有正确的存储帐户连接字符串 AzureWebJobsStorage.两种资源的 ARM 都没有变化,直到几天前一切正常.现在只有 Service Bus Trigger 函数在工作,但不是 Timer Trigger 函数.

I have an Azure Function that has both Timer Trigger and Service Bus Trigger functions. In Portal Azure configuration of that AF, I have the correct storage account connection string AzureWebJobsStorage. There were no changes in ARM of both resources, everything was working properly until few days ago. Now only Service Bus Trigger functions are working, but not Timer Trigger ones.

将字符串连接到存储是 100% 正确的,我什至重新生成了访问密钥.

Connecting string to storage is 100% correct, I've even regenerated the access key.

我找到了启动主机的日志:

I've found logs for starting Host:

2021-05-25T15:23:10.703 [Error] The listener for function 'XXX' was unable to start.
Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException : The listener for function 'XXX' was unable to start. ---> System.InvalidOperationException : Could not create BlobServiceClient to obtain the BlobContainerClient using Connection: Storage
   at Microsoft.Azure.WebJobs.Script.AzureStorageProvider.GetBlobContainerClient() at D:\a\1\s\src\WebJobs.Script\StorageProvider\AzureStorageProvider.cs : 69
   at Microsoft.Azure.WebJobs.Extensions.Timers.AzureStorageScheduleMonitor.GetStatusBlobReference(String timerName) at D:\a\1\s\src\WebJobs.Script\Timer\AzureStorageScheduleMonitor.cs : 146
   at async Microsoft.Azure.WebJobs.Extensions.Timers.AzureStorageScheduleMonitor.GetStatusAsync(String timerName)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Extensions.Timers.Listeners.TimerListener.StartAsync(CancellationToken cancellationToken) at C:\azure-webjobs-sdk-extensions\src\WebJobs.Extensions\Extensions\Timers\Listener\TimerListener.cs : 99
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Host.Listeners.SingletonListener.StartAsync(CancellationToken cancellationToken) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Singleton\SingletonListener.cs : 70
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Host.Listeners.FunctionListener.StartAsync(??) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Listeners\FunctionListener.cs : 68
   End of inner exception

我已经在 New Support Request -> 中检查了诊断信息解决方案,一切正常.此外,尝试使用与 Portal Azure 相同的配置从 Visual Studio 启动 AF 时,会出现相同的错误(但描述性较差).

I've checked diagnostics in New Support Request -> Solutions and everything is ok. Also, the same error appears (but less descriptive) when trying to start AF from Visual Studio using the same configuration as from Portal Azure.

可能有什么问题?我还能检查什么来找到这个问题的解决方案?

What could be wrong? What more I could check to find the solution for this problem?

推荐答案

在最新的函数主机版本 (3.0.15733.0) 中可能存在回归.请设置应用设置 FUNCTION_EXTENSION_VERSION=3.0.15584.0(以前的函数运行时版本).

There is a possible regression in the latest function host release(3.0.15733.0). Please set the app setting FUNCTION_EXTENSION_VERSION=3.0.15584.0 (previous function runtime version).

回归将在下一个功能主机版本中修复:https://github.com/Azure/azure-functions-host/releases

The regression will be fixed in the next function host release: https://github.com/Azure/azure-functions-host/releases

这篇关于计时器触发器 Azure Function 停止工作,没有任何更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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