Status: 503 Service Unavailable RRS feed

  • Question

  • Hello

    I have created a new C# timer function. Compilation is ok, but when i run i get a Status: 503 Service Unavailable.

    How can i debug this ?



    Status: 503 Service Unavailable
    Status: 503 Service Unavailable
    Tuesday, June 14, 2016 7:04 PM

All replies

  • Can you share your function app name (that's the function app name, not the function name), either directly or indirectly? This will help us investigate. Thanks!
    Tuesday, June 14, 2016 7:39 PM
  • [got your site via twitter DM]

    It looks like the site's w3wp is using high CPU, which I'm guessing is affecting things. But at this point I'm not sure what's causing it.

    What I would suggest to isolate is to use Kudu Console to determine which function might be at fault. If you go in D:\home\LogFiles\Application\Functions\function and look at the logs, it seems some of them are broken. e.g. ProcessStockEmail has a bad cron expression: "0 0 7 0 0 0". Maybe you mean "0 0 7 * * *" (at 7am every day)?

    None of that should cause this issue, but it will help isolate, and hopefully we can get it down to one thing to look at, which could be an Azure issue.

    Tuesday, June 14, 2016 8:07 PM
  • i got this error 

    2016-06-14T20:47:08.073 Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.BOL_ProccessOrders'. Microsoft.Azure.WebJobs.Extensions: The schedule expression was not recognized as a valid cron expression or timespan string.

    the cron expression is * * /5 * * * *

    Tuesday, June 14, 2016 8:51 PM
  • Right, that is not valid either. What frequency are you trying to achieve?
    Tuesday, June 14, 2016 8:53 PM
  • every 5 min

    i have generated this expression 0 0/5 * 1/1 * ? * using

    i am testing right now

    0 0/5 * 1/1 * ? *
    0 0/5 * 1/1 * ? *
    Tuesday, June 14, 2016 8:56 PM
  • For every 5 minutes, use this: 0 */5 * * * *
    Tuesday, June 14, 2016 8:58 PM
  • Hello

    the problem still exists from time to time, even when i restart the w3wp process i get a message 

    Status: 503 Service Unavailable, after a while it goes away and i get a accepted 202



    Status: 503 Service Unavailable
    Status: 503 Service Unavailable
    Friday, June 17, 2016 8:06 AM
  • Note that getting 503's for a few seconds is normal behavior for all Web Apps and Function Apps after hitting restart.


    Friday, June 17, 2016 2:28 PM
  • it's not a few seconds, it 15 to 20 minutes before everything is back to normal
    Sunday, June 19, 2016 6:39 AM
  • and i have this a lot after i change some , i am using VS2015 to change the code. i open the scripts using the cloud explorer
    Sunday, June 19, 2016 6:48 AM
  • Trying to clarify this thread as I think it's discussing 3 distinct things now:

    1. Figuring out the right cron syntax. Is it fair to say that we are past this one?
    2. Getting random 503s after making file changes
    3. Getting 503s after restarting the app: that's what my previous reply refers to, and not to file changes. Or are you saying that after restarting the site (no file changes), you are seeing 15 minutes of 503s?

    If we're past #1 and #3, I think we should focus exclusively on #2. Please please do confirm this.

    For #2, can you give one example UTC time at which you observed this 15 to 20 minute down time?


    • Edited by David Ebbo Sunday, June 19, 2016 3:15 PM typo
    Sunday, June 19, 2016 2:49 PM
  • i changed 2 parameters in the advanced config editor and saved, the function was BOL_ProccessOrders

    and now i have Status: 503 Service Unavailable for more then 10 min (still waiting)

    this was around 7:16UTC (9:16 brussels time)



    Monday, June 20, 2016 7:20 AM
  • David and I have been reviewing the logs and they do confirm the issues you are experiencing. We're investigating further and attempting to come up with a repro / fix. Thanks.

    Mathew Charles [MSFT]

    Monday, June 20, 2016 8:41 PM