I have created a a simple cron in Azure using the webjobs functionality.
This has worked very well since few months, 1st of march it stopped working with apparently no reason. All webjobs logs dissapeared from the folder and the jobs from azure portal.
Now when i try to re-create a new job, but it won't allow me to do, although i'm uploading same file as before (tried different job names) I searched around the web and documentations... + copilot to no luck. Tried to upload a zip only with the SH file tried to upload with settings and SH, in without folder... nothingg. I'm lost.
I'm using Azure AppService, with a php app within.
Its very important this runs ad up to the exact second, therefore can't run manually :(
my file contents (then zipped), the url (stared) is my azure subscription, but shouldn't make any difference in job addition i suspect, just execution:
settings.job
{"schedule":"0 30 14-20 * * *"}
cron.sh file:
#!/bin/bash
curl -s -k "https://******.polandcentral-01.azurewebsites/*filename*.php"
I have created a a simple cron in Azure using the webjobs functionality.
This has worked very well since few months, 1st of march it stopped working with apparently no reason. All webjobs logs dissapeared from the folder and the jobs from azure portal.
Now when i try to re-create a new job, but it won't allow me to do, although i'm uploading same file as before (tried different job names) I searched around the web and documentations... + copilot to no luck. Tried to upload a zip only with the SH file tried to upload with settings and SH, in without folder... nothingg. I'm lost.
I'm using Azure AppService, with a php app within.
Its very important this runs ad up to the exact second, therefore can't run manually :(
my file contents (then zipped), the url (stared) is my azure subscription, but shouldn't make any difference in job addition i suspect, just execution:
settings.job
{"schedule":"0 30 14-20 * * *"}
cron.sh file:
#!/bin/bash
curl -s -k "https://******.polandcentral-01.azurewebsites/*filename*.php"
Share
Improve this question
edited Mar 6 at 17:07
Czakalli
asked Mar 6 at 16:52
CzakalliCzakalli
1521 silver badge9 bronze badges
2
- What App Service Plan tier are you using (Free, Basic, Standard, Premium)? – Sirra Sneha Commented Mar 6 at 17:49
- Did you check the WebJob logs under Azure Portal → WebJobs → Logs – Sirra Sneha Commented Mar 6 at 17:50
1 Answer
Reset to default 0OK after many tries i managed to fix this :) On many sites on the web there are different environmental variables that should be set, some many didn't help in the end trying different combos of these reported the below worked for me.
Seems webjobs has many bugs, but does allow up to second configuration which fits exactly my needs.
This is a PHP 8.2 SaaS app on linux, for windows based would propably be different
WEBSITES_ENABLE_APP_SERVICE_STORAGE = true
*this i had before and only with this worked for many months
WEBSITE_SKIP_RUNNING_KUDUAGENT = false
WEBSITE_CONTENTOVERVNET = 1