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.