简体   繁体   English

Azure SDK 2.4导致“角色实例花费的时间超出预期”错误的原因是什么?

[英]What causes “Role Instances are taking longer than expected” error with Azure SDK 2.4?

I am getting the infamous "Role Instances are taking longer than expected" error when trying to start my Azure project with a single Worker Role. 当我尝试使用单个辅助角色启动我的Azure项目时,我得到了臭名昭着的“角色实例花费的时间超出预期”错误。 It used to work before, it started failing without any apparent reasons between two debug sessions. 以前它曾经工作过,它在两个调试会话之间没有任何明显的原因就开始失败了。

I tried to create a brand new solution with a new Azure project and a default Worker Role, that also fails to start. 我尝试使用新的Azure项目和默认的工作者角色创建一个全新的解决方案,但也无法启动。

I have found numerous other SO questions and forum posts discussing this topic, but most of them are outdated and none of their suggestions worked. 我发现了很多其他SO问题和论坛帖子讨论这个话题,但是大多数都已经过时了,他们的建议都没有。

I found no relevant message in the Event Logs, the only error message I found was in C:\\Users\\username\\AppData\\Local\\dftmp\\EmulatorRuntimeLogs\\ErrorRuntime.log , it contains lots of lines like this: 我在事件日志中找不到相关消息,我发现的唯一错误消息是在C:\\Users\\username\\AppData\\Local\\dftmp\\EmulatorRuntimeLogs\\ErrorRuntime.log ,它包含很多这样的行:

[00006892:00014472, 2014/10/16, 18:40:45.247, ERROR] Failed to create FSRM quota manager instance.

The output for the role in the Compute Emulator displays the following log indefinitely: Compute Emulator中角色的输出无限期地显示以下日志:

[fabric] Role Instance: deployment24(4).MySolution.MyProject.MySolution.MyProject.0
[fabric] Role state Busy
[fabric] Role state Aborted
[fabric] Role state Busy
[fabric] Role state Aborted
[fabric] Role state Busy
[fabric] Role state Aborted
[fabric] Role state Busy
...

Do you have any suggestions what can cause this error with the latest 2.4 version of the Azure SDK? 您对Azure SDK的最新2.4版本有什么可能导致此错误的建议吗?

我通过从ServiceDefinition.csdef中删除启动任务来解决它

ServiceDefinition.csdef文件中更改taskType="background"

<Task taskType="background" executionContext="elevated" commandLine="sample.cmd">

I didn't have a startup task and the following steps worked for me. 我没有启动任务,以下步骤对我有用。

  • Right click the Azure Cloud service project 右键单击Azure Cloud服务项目
  • go to the "web" tab. 转到“网络”标签。
  • In the "Emulator" section choose "Use Full Emulator" 在“模拟器”部分中选择“使用完整模拟器”
  • And in the "Local Development Server" section choose "Use IIS Web Server" 在“本地开发服务器”部分中选择“使用IIS Web服务器”

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM