[英]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. 我没有启动任务,以下步骤对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.