none
Mounting VHD cloud drive crashes worker role

    Question

  • I'm trying to deploy RavenDB to a worker role, but the role crashes almost every time it tries to mount the VHD cloud drived used by the database.  I used the following walkthrough to set up the RavenDB for Azure and it works fine with the local simulator, but I cannot get it to work on a staging server in Azure: http://www.michaelhanley.org/blog/2011/12/ravendb-running-in-windows-azure.html.  I was actually able to get it successfully run a few times, but I keep getting the same exception from the call to MountAt().  I scoured the web to find solutions and even tried making the size 20 MB less than the max cache size, but it still did not work.  Does anybody have any suggestions on how to fix this problem?
    Friday, April 20, 2012 1:55 AM

Answers

  • Thanks, I actually entered a support ticket with Microsoft and they found out that it was the http vs https problem.  I had it set to HTTPS instead of HTTP.  I really wish that the emulator environment matched the cloud environment more closely in that it would include the same limitations.
    Friday, April 27, 2012 2:57 AM

All replies

  • "... but I keep getting the same exception from the call to MountAt()."

    Is that exception a secret? Or could you share it? :-)

    Friday, April 20, 2012 3:15 AM
  • Hello,

    As Steve's suggestion, if you can provide more details about the exception messge, i believe it's can help us fix it.

    Another question is "I was actually able to get it successfully run a few times", i not sure i understand this correctly, but it's seems your application works for small time, but then throw the exception, am i right? As far fa i know, you must unmount drive before mount it second times.

    Hope this helps.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

    Friday, April 20, 2012 6:52 AM
  • Here is the exception in the Windows event log:

     l

    Saturday, April 21, 2012 7:55 PM
  • I tried deploying numerous times and almost every time I get the same exception.  It somehow started once, but then crashed soon after.  I have tried unmounting all drives before mounting the drive and it still didn't work.
    Saturday, April 21, 2012 7:57 PM
  • Hi,

    Please check the assemblies copy to local property is "copy always" in your application and open tracing in application, from your exception i think it's a general exception message, it's only tell the exception was thrown from MountAt method.

    Hope this helps.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

    Monday, April 23, 2012 5:59 AM
  • Make sure the azure storage connection string is http and not https, the last i remember is https was not supported for Drives. Just out of curiosity, didn't come across MountAt method which version of SDK did it get added?


    -Sachin Sancheti

    Wednesday, April 25, 2012 1:25 PM
  • Thanks, I actually entered a support ticket with Microsoft and they found out that it was the http vs https problem.  I had it set to HTTPS instead of HTTP.  I really wish that the emulator environment matched the cloud environment more closely in that it would include the same limitations.
    Friday, April 27, 2012 2:57 AM
  • Hi,

    Your can post your idea on this site to help Azure be better:

    http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting

    Thank you.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

    Friday, April 27, 2012 3:10 AM