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. 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.
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.
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:
[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:
[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?
I solved it by removing the Startup Tasks from ServiceDefinition.csdef
Change the taskType="background"
in ServiceDefinition.csdef
file
<Task taskType="background" executionContext="elevated" commandLine="sample.cmd">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With