+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Azure error logs - Error in controller, see log for details

Azure error logs - Error in controller, see log for details

9 posts, 0 answered
  1. Andrew
    Andrew avatar
    8 posts
    Registered:
    02 Mar 2016
    23 Mar
    Link to this post
    Please don't link to that crazy outdated "how to get error logs from Azure" article. It doesn't work.
     
     When a controller throws the above error, it is not logged in the Azure table. I can't try/catch it, as it isn't throwing an exception. How can I get at what the actual error is?
  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    26 Sep 2016
    28 Mar
    Link to this post
    Hello Andrew,

    I can agree with you that the UI of the Azure Storage Explorer might be have been changed and the screenshots from the KB article and the instructions we have provided may not apply to the current view. We are aware that this can happen and we have noted this in the KB article.

    What I can suggest is that you refer to the Azure Storage Explorer documentation in order to get more details about the latest updates in the UI and how to work with it: http://storageexplorer.com/

    In addition to this, the errors that are thrown in the controller of an MVC widget should be logged in the error log files and you should be able to review them when you download the logs from Azure.

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Andrew
    Andrew avatar
    8 posts
    Registered:
    02 Mar 2016
    28 Mar in reply to Sabrie Nedzhip
    Link to this post

    I'm sorry for not being explicit. The error is NOT logged in the Azure table. The issue is not with the KB. The issue is the error is absolutely, unequivocally, and in totality NOT put into the error table.

    Although, I do completely agree with you that they should be logged to the error table. Because, that would be awesome. But they aren't.

  4. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    26 Sep 2016
    31 Mar
    Link to this post
    Hi Andrew,

    We do not have any known issue about that. The error messages that occur in the MVC controllers should be logged in logs and you should be able to see the error details when you download the logs from Azure. Do you have the project running locally? Are the errors that occur in the controller are logged in the Errors.log file under ~/App_Data/Sitefinity/Logs folder? Is it an option for you to try this?

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Andrew
    Andrew avatar
    8 posts
    Registered:
    02 Mar 2016
    31 Mar in reply to Sabrie Nedzhip
    Link to this post

    Try and repro the issue and see what you find.

     

    1) Clean SF in Azure Cloud Service w/ SQL Azure DB

    2) Dummy controller that returns a view with a simple error. Something like "@using asdfasdf" should work.

    3) Deploy

    4) Drop widget on page

    5) Viola!

  6. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    26 Sep 2016
    11 Apr
    Link to this post
    Hello Andrew,

    Is the error logged in the Error.log file when you run the project locally (not when the project is deployed on Azure)? Is it an option to try this out and let me know about the results? Does the issue reproduce only when the project is deployed on Azure?

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  7. Andrew
    Andrew avatar
    8 posts
    Registered:
    02 Mar 2016
    25 Apr
    Link to this post
    Don't you people have a QA department? Would you like me to fix the bug for you as well?
  8. Joe
    Joe avatar
    0 posts
    Registered:
    05 Nov 2015
    01 Aug
    Link to this post

    Andrew,

    Did you make any progress here?

    I'm having the same issue. My app is stuck in the restarting loop. Without these logs I don't have a good place to start looking.  Is there any way to turn this off and just have the logs write to the local file system?

  9. Andrew
    Andrew avatar
    8 posts
    Registered:
    02 Mar 2016
    01 Aug in reply to Joe
    Link to this post
    Nope, unfortunately not. The answer seems to be: If you deploy to Azure you don't get full logs. Make sure you ask the nice folks at Telerik though, they'll happily point you towards your own fingers as a solution.
9 posts, 0 answered