Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20606

Broken dependency in installing modules through repo.module.ModuleServiceImpl of org_alfresco_module_rm and alfresco-rm-enterprise-repo modules by adding activiti.alfresco.repo

    Details

    • Type: Service Pack Request
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: RM 2.7.2
    • Fix Version/s: RM 2.N
    • Component/s: Records Management
    • Labels:
    • Environment:
      ACS 5.2.4.1
      alfresco-outlook-integration-2.4.7
      alfresco-rm-enterprise-2.7.2
      alfresco-saml-1.0.3
      activiti-share-connector-1.9.0.3
    • Bug Priority:
      Category 3
    • ACT Numbers:

      00988696, 00989656

    • Prioritization Score:
      3.025

      Description

      Description
      After installing the following modules, Alfresco fails to start:

      • alfresco-outlook-integration-2.4.7
      • alfresco-rm-enterprise-2.7.2
      • alfresco-saml-1.0.3
      • activiti-share-connector-1.9.0.3

      Customer provides Alfresco environments highly automated including new/fresh DB and new/fresh S3. Any restart and new patching is costly exception handling and breaks the Infrastructure-as-Code approach. This approach is vital to master the workload and to reduce the server/application babysitting as much as possible. Alfresco instances are ephemere and have to be replaced in an automatic, immutable matter. Persistence is provided by DB-as-a-Service and Storage-as-a-Service. 

      He expects more problems with this issue in the future, which will provoke costs. 

      Steps to reproduce
      1. Install ACS (easy install) and leave it with default configuration.
      2. Start Alfresco so the alfresco.war is expanded, confirm it’s working, then stop it
      3. Install 'all' modules using Alfresco MMT

      java -jar alfresco-mmt.jar install alfresco-rm-enterprise-2.7.2/alfresco-rm-enterprise-repo-2.7.2.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install alfresco-rm-enterprise-2.7.2/alfresco-rm-enterprise-share-2.7.2.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install alfresco-outlook-integration-2.4.7/alfresco-outlook-repository-2.4.7-RELEASE.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install alfresco-outlook-integration-2.4.7/alfresco-outlook-share-2.4.7-RELEASE.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install alfresco-saml-1.0.3/alfresco-saml-repo-1.0.3.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install alfresco-saml-1.0.3/alfresco-saml-share-1.0.3.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install activiti-share-connector-1.9.0.3/alfresco/amps/alfresco-connector-repo-1.9.0.3.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      java -jar alfresco-mmt.jar install activiti-share-connector-1.9.0.3/alfresco/amps_share/alfresco-connector-share-1.9.0.3.amp /alf/acs-524/tomcat/webapps/alfresco -nobackup -force
      

      4. Start Alfresco

      Observed Behaviour
      Alfresco fails to start:

      catalina.out

      2019-05-01 15:13:48,562 INFO [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-rm-enterprise-repo’ version 2.7.2.
      2019-05-01 15:13:49,848 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
      org.alfresco.error.AlfrescoRuntimeException: 04010019 Failed to start modules
      …
      Caused by: org.alfresco.error.AlfrescoRuntimeException: 04010018 A module component ‘org_alfresco_module_rm_notificationTemplatePatch’ failed to execute: null

      Expected Behaviour
      Alfresco starts properly.

      Additional Information

      Workaround: install RM/GS first startup so it is fully registered/deployed first before deploying remaining ones.

       
      After further testing I observed the following:

      • testing any other scenario, except the one when all modules are installed in the same time, the issue can't be reproduced
      • the module installation order is different when one or more modules are not installed in the same time with RM:
      • when all modules are installed, the order is as below:
      2019-05-01 15:41:46,087 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 13 module package(s).
      2019-05-01 15:41:46,193 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-saml-repo’ version 1.0.3.
      2019-05-01 15:41:46,254 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘com.westernacher.wps.AlfrescoMailIntegrationRepository’ version 2.4.7.
      2019-05-01 15:41:46,810 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘activiti.alfresco.repo’ version 1.9.0.3.1809061152.
      2019-05-01 15:41:46,833 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-saml-share’ version 1.0.3.
      2019-05-01 15:41:46,853 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘com.westernacher.wps.AlfrescoMailIntegrationShare’ version 2.4.7.
      2019-05-01 15:41:46,886 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-rm-enterprise-repo’ version 2.7.2.
      2019-05-01 15:41:47,737 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
      org.alfresco.error.AlfrescoRuntimeException: 04010019 Failed to start modules
      
      • compared with the scenario when all modules are installed, except activiti-share-connector-1.9.0.3
       2019-05-01 15:46:24,210 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 11 module package(s).
      2019-05-01 15:46:24,315 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘org_alfresco_module_rm’ version 2.7.2.
      2019-05-01 15:46:25,849 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_notificationTemplatePatch’ is skipped, no previous version found.
      2019-05-01 15:46:25,869 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv2ModelPatch’ is skipped, no previous version found.
      2019-05-01 15:46:25,897 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv2FilePlanNodeRefPatch’ is skipped, no previous version found.
      2019-05-01 15:46:25,918 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv2SavedSearchPatch’ is skipped, no previous version found.
      2019-05-01 15:46:25,946 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_notificationTemplatePatch_v21’ is skipped, no previous version found.
      2019-05-01 15:46:25,969 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv21RecordInheritancePatch’ is skipped, no previous version found.
      2019-05-01 15:46:25,997 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv21ReportServicePatch’ is skipped, no previous version found.
      2019-05-01 15:46:26,008 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv21BehaviorScriptsPatch’ is skipped, no previous version found.
      2019-05-01 15:46:26,023 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv21InPlacePatch’ is skipped, no previous version found.
      2019-05-01 15:46:26,044 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv21RolesPatch’ is skipped, no previous version found.
      2019-05-01 15:46:26,075 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent] Module patch component ‘org_alfresco_module_rm_RMv21CapabilityPatch’ is skipped, no previous version found.
      2019-05-01 15:46:26,107 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module ‘alfresco-aos-module’ version 1.1.7.
      2019-05-01 15:46:26,120 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-saml-repo’ version 1.0.3.
      2019-05-01 15:46:26,142 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘com.westernacher.wps.AlfrescoMailIntegrationRepository’ version 2.4.7.
      2019-05-01 15:46:26,339 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-rm-enterprise-share’ version 2.7.2.
      2019-05-01 15:46:26,351 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module ‘org.alfresco.integrations.google.docs’ version 3.0.4.2.
      2019-05-01 15:46:26,361 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-saml-share’ version 1.0.3.
      2019-05-01 15:46:26,386 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘com.westernacher.wps.AlfrescoMailIntegrationShare’ version 2.4.7.
      2019-05-01 15:46:26,413 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module ‘alfresco-share-services’ version 5.2.4.
      2019-05-01 15:46:26,425 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Installing module ‘alfresco-rm-enterprise-repo’ version 2.7.2.
      2019-05-01 15:46:26,440 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch] Executing module patch “Provide security clearance to the admin user.”
      2019-05-01 15:46:26,457 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch]    ... module patch applied in 15ms
      2019-05-01 15:46:26,457 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch] Executing module patch “Delete System person if it already exists in the database.”
      2019-05-01 15:46:26,465 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch]    ... module patch applied in 7ms
      2019-05-01 15:46:26,466 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch] Executing module patch “Add Controls Are Clearance aspect for existing marked authorities.”
      2019-05-01 15:46:26,470 INFO  [org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch]    ... module patch applied in 3ms
      2019-05-01 15:46:26,499 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module ‘alfresco-trashcan-cleaner’ version 2.2.
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  apetrache Alin Petrache [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel