Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Alfresco Services Have Disappeared

Devin Swenson edited this page Jan 26, 2018 · 2 revisions

How to Recover the PostgreSQL Service

To recover the PostgreSQL Service open up a Administrator command prompt window in the ${alfresco.home}/postgresql/bin folder. Now run the following command:

pg_ctl.exe register -N NAME_OF_SERVICE -D "${alfresco.home}\alf_data\postgresql"

The NAME_OF_SERVICE variable should match up with the PostgreSQL Service name that was lost. If the NAME_OF_SERVICE is different we do not know how Alfresco will react.

For more information on this command and other parameters available, please look at: https://www.postgresql.org/docs/9.0/static/app-pg-ctl.html

How to Recover the Alfresco Tomcat Service

To recover the Alfresco tomcat service, navigate to <ALFRESCO_HOME>\tomcat\bin and open a command prompt. Run the following command:

service.bat install NAME_OF_SERVICE

NAME_OF_SERVICE will be the name displayed on the Windows Services page. Use whatever was the original name of service.

Updating Tomcat Java OPTS

Please make sure that your tomcat has the following JAVA OPTS:

-Dcatalina.home=${alfresco.home}\tomcat
-Dcatalina.base=${alfresco.home}\tomcat
-Djava.endorsed.dirs=${alfresco.home}\tomcat\endorsed
-Djava.io.tmpdir=${alfresco.home}\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=${alfresco.home}\tomcat\conf\logging.properties
-XX:+DisableExplicitGC
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:ReservedCodeCacheSize=128m
-Dalfresco.home=${alfresco.home}

Possible Issues

Exception in thread "SolrTrackerScheduler_Worker-1" Exception in thread "SolrTrackerScheduler_Worker-2"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "SolrTrackerScheduler_Worker-1"

This issue can sometimes occur when recovering the tomcat service. To fix it, please follow this guide to increase the tomcats heap size: https://github.com/tsgrp/OpenContent/wiki/Installation-guide#memory-requirements

If you need more information or have questions please talk with Steve Kovacinski or Devin Swenson.

Clone this wiki locally