首页 > 其他分享 >【Azure Function App】本地运行的Function发布到Azure上无法运行的错误分析

【Azure Function App】本地运行的Function发布到Azure上无法运行的错误分析

时间:2023-12-19 20:57:45浏览次数:24  
标签:Function Info 12 Verbose App 2023 Azure 19T11 xxxxx

问题描述

Azure Function部署后未执行,查看日志发现错误信息:

2023-12-19T11:12:27.145 [Verbose] Host configuration applied.
2023-12-19T11:12:27.237 [Info] Starting Host (HostId=funapp-xxx-dev, Version=1.0.20776.0, InstanceId=xxx-x-xx-x-xxx, ProcessId=7924, AppDomainId=2, Debug=True, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=~1)
2023-12-19T11:12:27.102 [Verbose] Debug file watch initialized.
2023-12-19T11:12:27.222 [Verbose] File event source initialized.
2023-12-19T11:12:28.233 [Verbose] Function metadata read.
2023-12-19T11:12:28.345 [Verbose] Binding providers loaded.
2023-12-19T11:12:29.052 [Verbose] Binding providers initialized.
2023-12-19T11:12:29.052 [Info] Loaded custom extension 'BotFrameworkConfiguration'
2023-12-19T11:12:29.064 [Info] Loaded custom extension 'SendGridConfiguration'
2023-12-19T11:12:29.082 [Info] Loaded custom extension 'EventGridExtensionConfig'
2023-12-19T11:12:29.335 [Warning] Failed to load type 'xxxxx.xxxxx.xxxxx-1' from 'C:\home\site\wwwroot\bin\xxxxx.xxxxx.dll'
2023-12-19T11:12:29.335 [Warning] Failed to load type 'xxxxx.xxxxx.xxxxx-1' from 'C:\home\site\wwwroot\bin\xxxxx.xxxxx.dll'
2023-12-19T11:12:29.345 [Verbose] Extension loading complete.
2023-12-19T11:12:31.127 [Info] registered EventGrid Endpoint = https://funapp-export-dev.chinacloudsites.cn/admin/extensions/EventGridExtensionConfig
2023-12-19T11:12:31.847 [Verbose] Metadata provider created.
2023-12-19T11:12:32.407 [Verbose] Function descriptors read.
2023-12-19T11:12:32.407 [Info] Generating 0 job function(s)
2023-12-19T11:12:32.845 [Verbose] Development settings applied
2023-12-19T11:12:32.845 [Warning] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).
2023-12-19T11:12:33.423 [Info] Host initialized (6699ms)
2023-12-19T11:12:33.486 [Info] Host started (6761ms)
2023-12-19T11:12:33.486 [Info] Job host started
2023-12-19T11:12:33.552 [Error] The following 2 functions are in error:
ExportJob: The function type name 'xxxxx.xxxxx.xxxxx-1' is invalid.
RemoveBlobJob: The function type name 'xxxxx.xxxxx.xxxxx-1' is invalid.
2023-12-19T11:12:33.708 [Info] Host lock lease acquired by instance ID 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

 

问题解决

在日志中,发现Function Host的Version=1.0, 这是非常老的Function Runtime Version。 而本地使用的 3.0 版本,所以从这一点判断出是版本问题导致。
需要通过设置 FUNCTIONS_EXTENSION_VERSION 参数,来指定版本信息。

 

 

参考资料

How to target Azure Functions runtime versions: https://learn.microsoft.com/en-us/azure/azure-functions/set-runtime-version?tabs=portal#automatic-and-manual-version-updates 

 

标签:Function,Info,12,Verbose,App,2023,Azure,19T11,xxxxx
From: https://www.cnblogs.com/lulight/p/17914695.html

相关文章

  • 如何在 Apple Pages 中插入自己的手写电子签名 All In One
    如何在ApplePages中插入自己的手写电子签名AllInOnesulotionApple的多设备协同能力非常强大,如果您有iPad或是iPhone的话就简单很多啦~选择最上方的“媒体(Media)”按钮->选择“添加速绘(AddSketch)”就可以在iPad或是iPhone上手写签名插入了。https://discussionschi......
  • 处理application/octet-stream格式的文件下载
     exportfunctiondownloadFile(url,data){axios({method:'post',url:Vue.prototype.myUrl+url,headers:{'x-auth-token': window.localStorage.getItem('token')},responseType:'blob',data:data......
  • 解决安卓设备无法使用authenticator app问题
    今天要说的是微软的authenticatorapp在中国的使用问题,众所周知的是,微软和很多厂商现在都在大力推广passwordless的身份验证方式,认为username和password已经不再安全,属于要慢慢摒弃的旧方法,至于哪些身份验证方式比较安全,微软心目中认定的身份验证的级别可以参考下图可以看到authent......
  • 在 uniapp 中为 App 添加权限告知目的
     constpermission={ //初始化状态 state:{ //处理应用程序权限请求 WRITE_EXTERNAL_STORAGE:false, ACCESS_FINE_LOCATION:false, CALL_PHONE:false, CAMERA:false, RECORD_AUDIO:false, READ_CONTACTS:false, WRITE_CONTACTS:false, /*#ifd......
  • tita | 升级「项目管理」体验+功能~ APP贴
    一直被质疑是PC阉割版的APP项目功能,今天终于要翻身了,功能+体验大跃进,小T突觉PC端要被遗弃了~Tita-OKR和新绩效一体化管理平台赶紧瞅来,瞅完记得更新APP,更新APP,更新APP,重要的事说三遍!【里程碑管理,预警风险】     1.根据阶段划分工作安排,管控时间节点;2.自动根据里......
  • Sum of XOR Functions 题解
    题意给定一个数\(n\)和一个包含\(n\)个数的序列\(a\),求出以下式子模\(998244353\)的值:\(\sum_{i=1}^{n}\sum_{j=i}^{n}f(i,j)\times(j-i+1)\)。其中\(f(i,j)\)的值为\(a_{i}\oplusa_{i+1}\oplusa_{i+2}\oplus...\oplusa_{j}\)。思路首先我们可以考虑这道题的......
  • uniapp实现水印
    1.新建水印文件<template><viewclass="make"><viewclass="list"><viewclass="item"v-for="iin500"><text>{{info}}</text></vi......
  • 如何将小程序运行在App中完成灰度测试?
    灰度测试(GrayTesting)是一种软件测试策略,也被称为渐进性测试或部分上线测试。在灰度测试中,新的软件版本或功能并非一次性推送给所有用户,而是仅在一小部分用户中进行测试。这可以帮助开发团队逐步暴露新功能或版本,以便及时发现和修复问题,降低对整个用户群体的潜在影响。 对于......
  • 【UniApp】-uni-app-pinia存储数据
    前言经过上个章节的介绍,大家可以了解到uni-app-数据缓存的基本使用方法那本章节来给大家介绍一下uni-app-pinia存储数据的基本使用方法经过我这么多篇章的介绍,我发现大家环境比较耗时,所以在今后的文章中,我会尽量减少环境的搭建如果某一篇的文章环境确实是不一样的,我会在......
  • 第三章:@RequestMapping注解
    一、搭建框架二、控制器中有多个方法对应同一个请求的情况三、@RequestMapping注解标识的位置四、@RequestMapping注解的value属性五、@RequestMapping注解的method属性六、@RequestMapping注解结合请求方式的派生注......