Page 1 of 1

Cron Task not getting executed

PostPosted:Tue Jun 02, 2015 10:52 am
by mohasinmujawar56
Hi, I am using OpenKM 6.3 on Windows 7 as well as on Windows Server 2008 R2.
I am facing problem regarding Cron Tasks. Cron Tasks are not getting automatically executed. But when executed manually from Administration then the tasks are getting executed properly. The logs also are not showing any errors or any information from which we can get an idea about the problem.

I have observed the file Cron.java is pulling the tasks from database. All tasks are getting pulled correctly but are not getting executed on their respective time interval. But when executed manually task is executed.

Re: Cron Task not getting executed

PostPosted:Fri Jun 05, 2015 8:07 am
by jllort
What you're telling us is quite strange, it happens with all crontab task or someone created by you ? The date ranges what appearing there are not changing ? can you capture some screenshot ? did you modified the source code in some manner ?

Re: Cron Task not getting executed

PostPosted:Wed Jun 10, 2015 8:47 am
by mohasinmujawar56
This happens with all crontab task. The date ranges are changing. I have not changed the source code.

Re: Cron Task not getting executed

PostPosted:Thu Jun 11, 2015 9:15 am
by jllort
If date ranges are changing, that means the crontab task are executing. Why do you suspect task are not executed, if execution dates are changing that means the crontab task starts and ends on that time ?

Re: Cron Task not getting executed

PostPosted:Thu Jun 11, 2015 11:47 am
by mohasinmujawar56
I am suspecting because I am not seeing any changes in OpenKM folders. The mails are not getting imported automatically but if done manually from cron tab mails are getting imported.

Re: Cron Task not getting executed

PostPosted:Fri Jun 12, 2015 2:40 pm
by jllort
Quite strange, because if crontab dates changes it means the tasks are executed ( other question is into could be some error when are executed by crontab task ). When you execute from administration UI, you're acting as administrator but crontab use other context.

My suggestion is check this issue in our portable dev environment ( there you can debug and check the issue ) https://sourceforge.net/projects/openkmportabledev/