【问题标题】:Azure The listener for function 'Sometestfunction' was unable to startAzure 函数“Sometestfunction”的侦听器无法启动
【发布时间】:2020-11-04 18:01:19
【问题描述】:

我是 Azure 的新手。从 Visual Studio 运行 Azure 函数时出现以下错误。

The listener for function 'Sometestfunction' was unable to start.
The listener for function 'Sometestfunction' was unable to start. Microsoft.Azure.Storage.Common: Server encountered an internal error. Please try again after some time.

这可能是什么原因?

谢谢

【问题讨论】:

    标签: azure azure-functions asp.net-core-webapi asp.net-core-2.1


    【解决方案1】:

    最常见的问题是 Storage Emulator 服务无法启动。

    尝试输入

    "%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" status
    

    在cmd中查看状态。

    如果返回false,输入以下命令启动Storage Emulator:

    "%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init
    "%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
    

    让我知道这是否可以解决您的问题。:)

    【讨论】:

    • 你好,我试过了,状态返回false。然后尝试了 init 命令,我得到了以下错误。我不明白为什么它会创建“AzureStorageEmulatorDb510”。无法创建数据库“AzureStorageEmulatorDb510”:数据库“AzureStorageEmulatorDb510”不存在。提供一个有效的数据库名称。要查看可用的数据库,请使用 sys.databases.. 错误:无法创建数据库“AzureStorageEmulatorDb510”:数据库“AzureStorageEmulatorDb510”不存在。提供一个有效的数据库名称。要查看可用的数据库,请使用 sys.databases..
    猜你喜欢
    • 2023-02-03
    • 2021-09-30
    • 2021-11-30
    • 2018-06-28
    • 2022-08-05
    • 1970-01-01
    • 2022-07-29
    • 2015-08-30
    • 1970-01-01
    相关资源
    最近更新 更多