0

I made a sample application using windows azure dedicated caching (preview).

The sample application runs perfectly in emulated environment but does not get properly deployed in production environment: The project and the cache instances always shows that "waiting for role to startup". I am not able to understand whether it is a configuration issue or something else.

Richard J. Ross III
  • 55,009
  • 24
  • 135
  • 201
Ravi Ranjan
  • 137
  • 6
  • Have you enabled RDP access to your Virtual Machine and checked the Application event log? I am sure you will see some exception to root cause that issue.. – AvkashChauhan Jun 18 '12 at 18:54
  • It is very much possible that you may have missed to set Caching Related references to copy local as true because that is #1 mistake made with new applications. – AvkashChauhan Jun 18 '12 at 23:52

2 Answers2

0

Which deployment mode are you using? Colocated or Dedicated? If it is colocated can you tell me what value of Cache Size (%) have you set? And which vm type are you deploying?

Also, please check whether you have provided storage account connection string in "Caching Tab" under "storage account credentials to use for maintaining the cache cluster's runtime state" section.

Vinushree
  • 16
  • 1
  • I have used dedicated caching. My web role has 2 instance running on medium VM and i have 1 cache worker role. Where should I provide storage account connection string (in web role or cache worker role) ? And How do I get storage account connection string ? – Ravi Ranjan Jun 19 '12 at 03:54
  • I have tried by giving azure storage account account-name and access key (primary access key) but after starting deployment its still giving status as "Waiting for role to start... System startup tasks are running." – Ravi Ranjan Jun 20 '12 at 06:56
  • Thanks it is working. When diagnostic mode is enabled it takes more time to deploy. – Ravi Ranjan Jun 20 '12 at 09:06
0

In the Cache Worker Role (the role where you have caching service enabled) if you go to "Caching Tab" you will see "storage account credentials to use for maintaining the cache cluster's runtime state" section.

For Emulated environment this value is "UseDevelopmentStorage=true", for deploying to cloud you need to replace this setting with a valid cloud storage account. Please follow detailed instructions for proper configuration at http://msdn.microsoft.com/en-us/library/windowsazure/jj131263.aspx

Further if you are still facing the issues, enabling remote desktop and checking "Windows->Application" and/or "Microsoft->Windows-Application Server-System Services/Admin" channel would also help.

Vinushree
  • 1
  • 1