【问题标题】:PowerShell Azure Function: How to fix "Failed to start a new language worker for runtime: powershell"?PowerShell Azure 功能:如何修复“无法为运行时启动新的语言工作者:powershell”?
【发布时间】:2022-06-14 16:40:41
【问题描述】:

在包含一个 PowerShell 函数的 Azure Function App 中,我会定期收到以下日志消息:

"Failed to start a new language worker for runtime: powershell."

它具有“错误”级别,因此会触发我们的错误警报通知。我不完全确定此消息何时出现。它可能会出现在重新启动函数应用程序时,这可能会有所解释。我想我记得它出现在正常功能操作期间 - 但我可能弄错了。

这里有一个关于类似消息的相当复杂的线程,但对于 dotnet 运行时,建议有配置选项需要配置:Azure Function - Failed to start a new language worker for runtime: dotnet-isolated

我的函数应用运行时版本是 ~4,PS Core 版本是 7.0,平台是 64 位和 Windows。

试图告诉我的错误信息是什么?我可以忽略它吗?有没有我可以添加的配置来修复它?

【问题讨论】:

  • hii @heinrich Ulbricht,分享有关这些问题的更多信息。
  • @PunitSharma-MT 您错过了哪些信息?我会添加它。
  • 您可以共享代码以及使用何种方式创建 PowerShell 函数(vs 或 azure 门户)。

标签: powershell azure-functions powershell-core


【解决方案1】:

在基于 PowerShell 的函数应用程序的多次部署和重启过程中监控了一段时间后,我的结论是:

错误"Failed to start a new language worker for runtime: powershell."仅在重启Function App时出现。因此,我的结论是它可以被忽略。

【讨论】:

    猜你喜欢
    • 2021-09-06
    • 2022-11-25
    • 1970-01-01
    • 2022-10-06
    • 1970-01-01
    • 1970-01-01
    • 2020-12-01
    • 2021-12-09
    • 1970-01-01
    相关资源
    最近更新 更多