Azure Linux App Service fail to create Webjob - Stack Overflow

admin2025-04-26  4

Currently, my Linux App Service fails to create Webjob, but it worked fine 2 days ago.

Also, I cannot find the detail error log of such error. All the error detail is the screenshot I shown above.

Also, I try to add the same zip file into a Windows App Service, the Webjob create successfully. I am thinking is it the issue on Linux App Service only?

For your reference, here is my zip file structure:

root
|-->packages.json
|-->run_p.sh
|-->yarn.lock
|-->dist
    |-->p.js
    |-->etc..

In my run_p.sh I got these few lines of code:

#!/bin/bash
yarn install --production
node dist/p.js

(And inside p.js, it is a cronjob producer. I don't think it will affect the Webjob creation.)

My App deploy with these setup:
Runtime Stack = Node-20-lts, Publish model=Code, Operating System=Linux, SKU and size=Free(F1)

Currently, my Linux App Service fails to create Webjob, but it worked fine 2 days ago.

Also, I cannot find the detail error log of such error. All the error detail is the screenshot I shown above.

Also, I try to add the same zip file into a Windows App Service, the Webjob create successfully. I am thinking is it the issue on Linux App Service only?

For your reference, here is my zip file structure:

root
|-->packages.json
|-->run_p.sh
|-->yarn.lock
|-->dist
    |-->p.js
    |-->etc..

In my run_p.sh I got these few lines of code:

#!/bin/bash
yarn install --production
node dist/p.js

(And inside p.js, it is a cronjob producer. I don't think it will affect the Webjob creation.)

My App deploy with these setup:
Runtime Stack = Node-20-lts, Publish model=Code, Operating System=Linux, SKU and size=Free(F1)

Share Improve this question asked Jan 15 at 4:00 maulmaul 112 bronze badges 5
  • please provide your azure app service log stream – Sirra Sneha Commented Jan 15 at 4:21
  • 1 Hello @Sirra Sneha Got no change on log stream when the error triggered – maul Commented Jan 15 at 5:02
  • okay will try and let you know – Sirra Sneha Commented Jan 15 at 5:15
  • I've tried uploading the WebJob, but I'm getting the same error. It seems that this is because WebJobs are still in preview on Linux. Preview features can sometimes have limited functionality or stability, which might be causing this issue. – Sirra Sneha Commented Jan 15 at 6:10
  • There is a way to upload the WebJob that worked successfully for me. Open the Kudu console, go to the site -> wwwroot directory, and then create the following folders: \app_data\Jobs\Continuous. After creating these folders, you can upload your WebJob successfully. please check – Sirra Sneha Commented Jan 15 at 6:16
Add a comment  | 

3 Answers 3

Reset to default 0

while i can't directly give you the solution but you can try to find the exception or error messages from linux app service using one of the below methods:

  1. go to web app -> monitoring -> log stream, see if the console providing an error output.

  1. install VS Code, install azure app service extension. sign in your azure account, browse to your linux web app, finally try to access raw system log as shown in the screenshot. I found I have more success rate finding raw exception this way.

I tried uploading the WebJob , but I encountered the same error. This might be because WebJobs are still in preview on Linux, and preview features often have limited functionality or stability.

  • I tried creating the App Service with the Premium pricing tier, and I was able to upload the WebJobs successfully. If possible, consider changing your plan to Premium.

  • If you have the option to use Windows WebJobs, It's better to use that, as it provides full and stable support.

  • If you need to use Linux WebJobs, there’s an alternative approach:

    Open Kudu console, go to site -> wwwroot directory, manually create the following folder structure: /app_data/Jobs/Continuous

Once the folders are created. You can upload your WebJob using the drag-and-drop option in the Kudu file manager.

It will be directly added to WebJobs.

You can also upload it from the WebJobs option in the App Service.

This way you can successfully upload and run WebJobs on Linux App Services.

Output:

Please try to add the following two app settings to your Linux app: WEBSITE_SKIP_RUNNING_KUDUAGENT = false WEBSITES_ENABLE_APP_SERVICE_STORAGE = true

转载请注明原文地址:http://anycun.com/QandA/1745600167a91010.html