none
Storage cuts connections from time to time

    Question

  • Good afternoon,

    We have a web application where web pages download some content from the Azure Storage as mp3 background music, videos and some images.

    I've noticed that from time to time (it is not usual) Azure cuts the connection so some resources can not be downloaded (I get a message on the browser console stating: "Failed to load resource: "https://mYAppName.blob.core.windows.net/..").

    This brings some questions to my mind:

    1. Is Azure Storage recommended for this kind of operation or usage? I mean storing some resources that will be downloaded from a browser only using the public blob URL.

    2. Is there a way to prevent this kind of things from happening? Should I add something to the URL besides the files and container name in the URL so I can explicitly add some expiry time or anything like it?

    3. Has anyone else seen this kind of behavior?

    Thanks a lot for your replies.


    I need to do, I need to know.

    Wednesday, July 24, 2013 5:27 PM

Answers

  • Hi,

    here are answers to your questions

    1) Azure is really a good fit for the kind of operation you described, there are security measures you must look at to prevent unauthorized operations on your blob but yes blob is a good storage for such things.

    2) you would want to remote desktop to your web role /website and check the logs to see what might be going wrong.

    3) I have personally not seen this error but i am fairly confident you are not alone

    ------------------------------



    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    • Marked as answer by jportelas Wednesday, July 24, 2013 7:21 PM
    Wednesday, July 24, 2013 5:54 PM

All replies

  • Hi,

    here are answers to your questions

    1) Azure is really a good fit for the kind of operation you described, there are security measures you must look at to prevent unauthorized operations on your blob but yes blob is a good storage for such things.

    2) you would want to remote desktop to your web role /website and check the logs to see what might be going wrong.

    3) I have personally not seen this error but i am fairly confident you are not alone

    ------------------------------



    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    • Marked as answer by jportelas Wednesday, July 24, 2013 7:21 PM
    Wednesday, July 24, 2013 5:54 PM
  • Hi Vishal,

    Thanks for the quick reply, one more question: to have a remote desktop session on azure is it required to have the web role running on a virtual machine or may I still have a remote desktop session even if it is a traditional "cloud service"?

    Thanks a lot!


    I need to do, I need to know.

    Wednesday, July 24, 2013 6:47 PM
  • you can remote desktop to regular web role

    here are steps

    http://vivekcek.wordpress.com/2012/04/02/remote-desktop-connection-to-web-role-in-azure/

    ----------------------------------

    Please mark as answered if it helped


    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    Wednesday, July 24, 2013 6:53 PM
  • Thanks for the link Vishal. 

    Well finally I logged in to my application's remote desktop but then I realized that the logs for such error should be on the Azure Storage Server, if any, since it is the web page who calls it directly from a <img> tag (<img src='http://MyAppName.blob.core.windows.net/images/imageThatFailed.png"...) and not my web role.

    If you have any hints on how to do this (connect to the Azure Storage server or service and check its logs) please tell me, if not ... you have already done enough by teaching me this "remote desktop" feature, thanks!

    Have a good day,


    I need to do, I need to know.

    Wednesday, July 24, 2013 8:09 PM
  • here is what you can do to access IIS logs, for logs that your application writes needs to be stored on azure storage (table storage is a good choice for diagnostics logs)

    http://blogs.msdn.com/b/avkashchauhan/archive/2011/07/12/when-you-rdp-to-your-web-role-you-might-not-be-able-to-access-iis-log-folder.aspx


    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    Wednesday, July 24, 2013 8:45 PM
  • Hi Vishal,

    Thanks once again.

    I checked the logs but as I told you in this scenario it is the browser requesting the images and mp3 files directly to the storage so there is no record on the web app IIS logs of such request (since they're not requested to this server).

    It is the client browser who has a URL as the SRC (source) of an IMG (image) or AUDIO tags, so if there is any fail it remains on the client side (as I've seen it on the debug console of Chrome) or in the Azure Storage server (if any).

    Thanks again!


    I need to do, I need to know.

    Thursday, July 25, 2013 12:46 PM