1

My Azure continuous webjob stopped giving reason "WebJob is stopping due to website shutting down"

Logs from Kudu log

[12/09/2016 17:11:49 > 2e7853: WARN] Reached maximum allowed output lines for this run, to see all of the job's logs you can enable website application diagnostics
[12/09/2016 17:12:42 > 2e7853: SYS INFO] WebJob is stopping due to website shutting down
[12/09/2016 17:12:42 > 2e7853: SYS INFO] Status changed to Stopping
[12/09/2016 17:12:47 > 2e7853: SYS INFO] WebJob process was aborted
[12/09/2016 17:12:47 > 2e7853: SYS INFO] Status changed to Stopped
[12/09/2016 17:12:55 > 2e7853: SYS INFO] Status changed to Starting
[12/09/2016 17:12:55 > 2e7853: SYS INFO] WebJob singleton setting is False
[12/09/2016 17:12:57 > 2e7853: SYS INFO] Run script 'VimsProcessHistoryData.exe' with script host - 'WindowsScriptHost'
[12/09/2016 17:12:57 > 2e7853: SYS INFO] Status changed to Running

It already Always On.

Can some one help to resolve this

Saurabh Raoot
  • 1,303
  • 3
  • 26
  • 31
  • It seems that you deployed at this period. Is that right? – Vova Bilyachat Dec 22 '16 at 03:57
  • Do you mind sharing the site name here or indirectly (https://github.com/projectkudu/kudu/wiki/Reporting-your-site-name-without-posting-it-publicly)? – Suwat Ch Dec 22 '16 at 04:33
  • Because your job runs inside your webapp, when you webapp shuts down restarts, your job will do the same. You need to investigate why your webapp has stopped. – Thomas Dec 22 '16 at 04:47

2 Answers2

1

[12/09/2016 17:12:42 > 2e7853: SYS INFO] WebJob is stopping due to website shutting down

[12/09/2016 17:12:42 > 2e7853: SYS INFO] Status changed to Stopping

[12/09/2016 17:12:55 > 2e7853: SYS INFO] Status changed to Starting

As I known, if something causes your web app to restart, then your WebJob would quickly restart as long as your web app restarts. If this happens frequently, I assumed that you need to Enable diagnostics logging for your web app and check the Process Explorer in the SCM. If this hanppens infrequently, you could try to re-deply your WebJob. Also you could deploy your WebJob to a new empty web app for isolating this issue. Here is a similar issue, you could refer to it.

Community
  • 1
  • 1
Bruce Chen
  • 18,207
  • 2
  • 21
  • 35
0

I changed my job to continuous web job.. and It worked.

It tried couple of options with triggered webjob like keep it Always On.. but that didn't work.

I enable diagnostic logging n all .. but it didn't give me any clue.

When checked with Microsoft support they responded that the VM is moved mistakenly so it cause job to stop.

Saurabh Raoot
  • 1,303
  • 3
  • 26
  • 31