azure - Azure 函数在 500 上失败 - ENOENT:没有这样的文件或目录,lstat 'D:\home\site''
问题描述
Azure 功能开始失败,原因如下:
Result: Failure
Exception: Worker was unable to load function StartStopVms: 'Error: ENOENT: no such file or directory, lstat 'D:\home\site''
Stack: Error: ENOENT: no such file or directory, lstat 'D:\home\site'
at Object.realpathSync (fs.js:1461:7)
at toRealPath (internal/modules/cjs/loader.js:241:13)
at Function.Module._findPath (internal/modules/cjs/loader.js:310:24)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:633:25)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at FunctionLoader.load (D:\Program Files (x86)\SiteExtensions\Functions\2.0.12858\32bit\workers\node\worker-bundle.js:18562:22)
可能是什么原因?这是一个部署在windows上的nodejs函数。它设置为“从 zip 运行”(代码位于 blob 存储中)。它一直工作到昨天。函数的代码没有变化。
谢谢。
解决方案
推荐阅读
- primefaces - 在 ajax 事件期间禁用 p:selectOneMenu 的问题
- c# - 如何通过 C# 中的 Slack-App 在 Slack 上上传任何文件
- matplotlib - 如何将 Slider 的更新值始终设置在中心?
- akka - 用于 http 请求 Java 的 Akka 演员
- powershell - 从 Powershell 中的 write-host 输出中删除某些字符(Get-ADuser)
- sql - 数据库设计建议
- python-3.x - 使用 GridSpec vs pos 带有子图的数据系列动画
- django-admin - OSMGeoAdmin 显示 PointField 的文本区域
- java - 使用 Google 注册 Firebase 用户
- c - 试图找到素数