[2.5.x] Quartz jobs randomly stop running.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[2.5.x] Quartz jobs randomly stop running.

Nathan Keiter-2
I have two OSGI plugins which schedule quarts jobs in production environments.  They each schedule a job that runs once daily (at different times.)  The jobs will run on schedule for weeks or months at a time, then suddenly stop running with no error.  If I look in the "Job Scheduler" admin page under the "System Jobs" tab I see the next run date is in the past.  There is no consistency with this and it only happens one job at a time, (not globally to both jobs on the same server.)  It's just quite random which one will stop running and when.

Currently the remedy is to stop/start the OSGI bundle to reschedule the jobs.  This works but is not ideal.  Does anyone have any idea why this would happen?  Any suggestions would be appreciated.

Job 1 runs 0 30 3 1/1 * ? *

Job 2 runs 0 35 3 1/1 * ? *

Thanks,

Nathan

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [2.5.x] Quartz jobs randomly stop running.

shakun.ahuja1988

Same problem with me?Does any one know solution or have some idea how to find root cause of it.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b24d63e-bd2d-45dc-b094-1bf156685262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [2.5.x] Quartz jobs randomly stop running.

Nathan Keiter

dotCMS Quartz jobs are highly unreliable. We gave up on using them long ago.

 

Use cronjobs or windows scheduler instead.

 

Have a shell script on the server hit a servlet to trigger your process.

 

You can IP restrict the servlet to avoid having unauthorized executions.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Tuesday, August 22, 2017 2:12 PM
To: dotCMS User Group
Subject: [dotcms] Re: [2.5.x] Quartz jobs randomly stop running.

 


Same problem with me?Does any one know solution or have some idea how to find root cause of it.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b24d63e-bd2d-45dc-b094-1bf156685262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f32da6c79d194b438b1dfae9e60e0d71%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [2.5.x] Quartz jobs randomly stop running.

Nathan Keiter

Well OSGI ones anyway.  You might have more success with a static plugin, but what’s the point in that…

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Tuesday, August 22, 2017 2:38 PM
To: [hidden email]
Subject: RE: [dotcms] Re: [2.5.x] Quartz jobs randomly stop running.

 

dotCMS Quartz jobs are highly unreliable. We gave up on using them long ago.

 

Use cronjobs or windows scheduler instead.

 

Have a shell script on the server hit a servlet to trigger your process.

 

You can IP restrict the servlet to avoid having unauthorized executions.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Tuesday, August 22, 2017 2:12 PM
To: dotCMS User Group
Subject: [dotcms] Re: [2.5.x] Quartz jobs randomly stop running.

 


Same problem with me?Does any one know solution or have some idea how to find root cause of it.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b24d63e-bd2d-45dc-b094-1bf156685262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f32da6c79d194b438b1dfae9e60e0d71%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c51f3177ba904a0d801fe85865327fc5%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [2.5.x] Quartz jobs randomly stop running.

Nathan Keiter

IP Restricted Servlet:

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/tree/master/dotcms3.5.1/osgi/org.example.nkeiter.ip.restricted.servlet

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Tuesday, August 22, 2017 2:40 PM
To: [hidden email]
Subject: RE: [dotcms] Re: [2.5.x] Quartz jobs randomly stop running.

 

Well OSGI ones anyway.  You might have more success with a static plugin, but what’s the point in that…

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Tuesday, August 22, 2017 2:38 PM
To: [hidden email]
Subject: RE: [dotcms] Re: [2.5.x] Quartz jobs randomly stop running.

 

dotCMS Quartz jobs are highly unreliable. We gave up on using them long ago.

 

Use cronjobs or windows scheduler instead.

 

Have a shell script on the server hit a servlet to trigger your process.

 

You can IP restrict the servlet to avoid having unauthorized executions.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Tuesday, August 22, 2017 2:12 PM
To: dotCMS User Group
Subject: [dotcms] Re: [2.5.x] Quartz jobs randomly stop running.

 


Same problem with me?Does any one know solution or have some idea how to find root cause of it.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b24d63e-bd2d-45dc-b094-1bf156685262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f32da6c79d194b438b1dfae9e60e0d71%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c51f3177ba904a0d801fe85865327fc5%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/daac8302527b4619848a9781b7b63df1%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.