cancel
Showing results for 
Search instead for 
Did you mean: 

Error trying to stop Tomcat

ustamills
Champ in-the-making
Champ in-the-making
I use Alfresco Community 4.2.e on a Windows 2008 R2 server.  I have tried multiple ways to successfully stop Tomcat gracefully so that I can do a cold backup.  It doesn't seem to matter how I try to stop it I often run into problems (but not always).

Currently I have a script that attempts to stop Tomcat (and then the DB) using the Windows services.  The typical behavior of the problem is that Windows tries to stop the service and Tomcat never quits successfully.  Here's a snippet of the log file from when the error first began to occur:


2014-01-13 02:00:03,388  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-2] Stopped 'imap' subsystem, ID: [imap, default]
2014-01-13 02:00:03,528  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-2] Stopping 'Search' subsystem, ID: [Search, managed, solr]
2014-01-13 02:00:15,044  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 00130000 GetModelsDiff return status is 503
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-01-13 02:00:15,075  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 00130001 GetModelsDiff return status is 503
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-01-13 02:02:30,028  WARN  [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking communication timed out.
2014-01-13 02:02:30,044  WARN  [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking communication timed out.
2014-01-13 02:04:45,044  WARN  [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking communication timed out.


Does anyone have any experience with this or can point me where I can start looking?  I need to find a way to consistently stop the Tomcat Windows service.  This makes it very difficult to do consistent backups.
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
Your issue seems to be with SOLR stopping.
you alfresco is stopped but solr is still running and trying to sync up with alfresco but as some of the services are already terminated it is not able to sync up properly and throwing this error.

ustamills
Champ in-the-making
Champ in-the-making
Yes, I understand what you are saying.  So, then I guess that narrows the question just a little:  Why is SOLR not stopping?  There is no Windows service for SOLR; it is supposed to stop when Tomcat stops.  Is this a bug in Community 4.2.e?