Cron Job via URL

Hi,
I try to trigger the periodic jobs in kanboard via URL but I do not figure out how to do this. The docs Cronjob Configuration - Kanboard Documentation say: “with URL rewriting enabled”.

htacces is the original from kanboard:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

What do I have to do?

Please explain what’s going wrong. Any errors?

I type https://mMYDOMAIN/cronjob?token=WEBHOOK_TOKEN_HERE the kanboard start page is shown. So this seems to do nothing But I have a automatic action that a task moves to other column the next day.

In the browser? Try to use curl.

Tried: curl and the url. No output or response

Well, there is no output if everything goes well. Otherwise, consult the log files

If it goes well, it should actually say “Cronjob executed”

image

No output and no error in log

did you try command line?
something like cd /var/www/app && ./cli cronjob

can not use command line

Are you french using Framaboard or something?

Hard to believe. Did you check both, error.log from apache and the Kanboard log?

You could also use
curl --verbose <your_url>.

I checked the php log

Seems like authentication is missing
Location: /?controller=AuthController&action=login
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8

I think its very important you give us an idea of what your server is, if you cannot command line, I think we are missing some key information.

1 Like

no I do not use something like this

it is a shared hosting

I’ll shut up and let Alfred help you out. Way to vague for me. But I will say, some of those “shared hosting platforms” disable crontabs.

This was the reason to introduce the cronjob via URL some month or years ago.

1 Like