AnsweredAssumed Answered

Docker: compose up errors for community packaging

Question asked by mario.fliegner on Jul 9, 2018
Latest reply on Aug 29, 2018 by angelborroy

Hi guys,


I'm dealing with the Docker approach to start the new Alfresco 6 version. Unfortunately, none of the configurations I've tried so far works. Unfortunately again, the Early Access Program topics are now all private and not accessible anymore. 

I'm not able to startup all necessary containers to be able to login. It always crashes and it looks like it's always related to the SOLR6 stuff.


This is a YAML file, supposed to be working (from GitHub - Alfresco/acs-deployment ). If I start it, I get the following errors (full log attached "docker-compose-up_acs_deployment.log"):

alfresco-pdf-renderer_1  | 2018-07-09 13:01:23.321  INFO 1 --- [           main] org.alfresco.transformer.Application     : Started Application in 48.955 seconds (JVM running for 53.514)
solr6_1                  | 2018-07-09 13:01:31.626 ERROR (Thread-12) [   x:alfresco] o.a.s.c.CoreContainer Error creating core [alfresco]: Error opening new searcher
solr6_1                  | org.apache.solr.common.SolrException: Error opening new searcher
solr6_1                  |      at org.apache.solr.core.SolrCore.<init>(
solr6_1                  |      at org.apache.solr.core.SolrCore.<init>(
solr6_1                  |      at org.apache.solr.core.CoreContainer.create(
solr6_1                  |      at org.apache.solr.core.CoreContainer.create(
solr6_1                  |      at org.alfresco.solr.AlfrescoCoreAdminHandler.createAndRegisterNewCore(
solr6_1                  |      at org.alfresco.solr.AlfrescoCoreAdminHandler.newCore(
solr6_1                  |      at org.alfresco.solr.AlfrescoCoreAdminHandler.newDefaultCore(
solr6_1                  |      at org.alfresco.solr.AlfrescoCoreAdminHandler.setupNewDefaultCores(
solr6_1                  |      at org.alfresco.solr.AlfrescoCoreAdminHandler.lambda$startup$0(
solr6_1                  |      at
solr6_1                  | Caused by: org.apache.solr.common.SolrException: Error opening new searcher
solr6_1                  |      at org.apache.solr.core.SolrCore.openNewSearcher(
solr6_1                  |      at org.apache.solr.core.SolrCore.getSearcher(
solr6_1                  |      at org.apache.solr.core.SolrCore.initSearcher(
solr6_1                  |      at org.apache.solr.core.SolrCore.<init>(
solr6_1                  |      ... 9 more

and later on:

 2018-07-09 13:01:31.726 ERROR (Thread-12) [   x:alfresco] o.a.s.AlfrescoCoreAdminHandler Failed to create default alfresco cores (workspace/archive stores)
solr6_1                  | org.apache.solr.common.SolrException: Error CREATEing SolrCore 'alfresco': Unable to create core [alfresco] Caused by: Lock held by this virtual machine: /opt/alfresco-search-services/data/alfresco/index/write.lock



Another try is the latest YAML file I'm using (without PDF renderer, libreoffice,...) based on: acs-community-deployment/docker-compose.yml at master · Alfresco/acs-community-deployment · GitHub. It doesn't work either. Logs below (and attached "docker-compose-up_acs_community_deployment.log")...

version: "2"

        image: alfresco/alfresco-content-repository-community:6.0.7-ga
        mem_limit: 1500m
            JAVA_OPTS: "
                -Xms1g -Xmx1g
            - 8082:8080 #Browser port

        image: alfresco/alfresco-share:6.0.b
        mem_limit: 1g
            - REPO_HOST=alfresco
            - REPO_PORT=8080
            - "CATALINA_OPTS= -Xms500m -Xmx500m"
            - 8080:8080

        image: postgres:10.1
        mem_limit: 1500m
            - POSTGRES_PASSWORD=alfresco
            - POSTGRES_USER=alfresco
            - POSTGRES_DB=alfresco
        command: postgres -c max_connections=300 -c log_min_messages=LOG
            - 5432:5432

        image: alfresco/alfresco-search-services:1.2.0-RC1
        mem_limit: 2500m
            #Solr needs to know how to register itself with Alfresco
            - SOLR_ALFRESCO_HOST=alfresco
            - SOLR_ALFRESCO_PORT=8080
            #Alfresco needs to know how to call solr
            - SOLR_SOLR_HOST=solr6
            - SOLR_SOLR_PORT=8983
            #Create the default alfresco and archive cores
            - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
            - "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
            - 8083:8983 #Browser port

This is the startup log with the first error: 

alfresco_1  |  2018-07-09 12:32:23,647  WARN  [repo.admin.ConfigurationChecker] [localhost-startStop-1] The 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
alfresco_1  |  2018-07-09 12:32:23,647  INFO  [repo.admin.ConfigurationChecker] [localhost-startStop-1] The root data directory ('dir.root') is: ./alf_data
alfresco_1  |  2018-07-09 12:32:23,715  ERROR [repo.admin.ConfigurationChecker] [localhost-startStop-1] CONTENT INTEGRITY ERROR: System content not found in content store: 'store://2018/7/6/9/18/09605d4c-f51c-4f20-9d74-e2128068b932.bin'
alfresco_1  |  2018-07-09 12:32:23,715  ERROR [repo.admin.ConfigurationChecker] [localhost-startStop-1] Ensure that the 'dir.root' property './alf_data' is pointing to the correct data location.
alfresco_1  |  09-Jul-2018 12:32:23.745 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
alfresco_1  | 09-Jul-2018 12:32:23.751 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/alfresco] startup failed due to previous errors
alfresco_1  | 2018-07-09 12:32:23,732  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
alfresco_1  |  org.alfresco.error.AlfrescoRuntimeException: 06090018 Ensure that the 'dir.root' property './alf_data' is pointing to the correct data location.
alfresco_1  |   at org.alfresco.repo.admin.ConfigurationChecker.check(
alfresco_1  |   at org.alfresco.repo.admin.ConfigurationChecker.access$0(
alfresco_1  |   at org.alfresco.repo.admin.ConfigurationChecker$1$1.doWork(
alfresco_1  |   at
alfresco_1  |   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(
alfresco_1  |   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
alfresco_1  |   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
alfresco_1  |   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at
alfresco_1  |   at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(
alfresco_1  |   at org.springframework.web.context.ContextLoader.initWebApplicationContext(
alfresco_1  |   at org.springframework.web.context.ContextLoaderListener.contextInitialized(
alfresco_1  |   at
alfresco_1  |   at org.apache.catalina.core.StandardContext.listenerStart(
alfresco_1  |   at org.apache.catalina.core.StandardContext.startInternal(
alfresco_1  |   at org.apache.catalina.util.LifecycleBase.start(
alfresco_1  |   at org.apache.catalina.core.ContainerBase.addChildInternal(
alfresco_1  |   at org.apache.catalina.core.ContainerBase.access$000(
alfresco_1  |   at org.apache.catalina.core.ContainerBase$
alfresco_1  |   at org.apache.catalina.core.ContainerBase$
alfresco_1  |   at Method)
alfresco_1  |   at org.apache.catalina.core.ContainerBase.addChild(
alfresco_1  |   at org.apache.catalina.core.StandardHost.addChild(
alfresco_1  |   at org.apache.catalina.startup.HostConfig.deployDirectory(
alfresco_1  |   at org.apache.catalina.startup.HostConfig$
alfresco_1  |   at java.util.concurrent.Executors$
alfresco_1  |   at
alfresco_1  |   at java.util.concurrent.ThreadPoolExecutor.runWorker(
alfresco_1  |   at java.util.concurrent.ThreadPoolExecutor$
alfresco_1  |   at

And then, there thousands of SOLR errors:

alfresco_1  | 09-Jul-2018 12:32:25.734 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 85542 ms
solr6_1     | 2018-07-09 12:32:25.988 ERROR (searcherExecutor-7-thread-1-processing-x:archive) [   x:archive] o.a.s.t.AbstractTracker Model tracking failed for core: archive
solr6_1     | org.alfresco.error.AlfrescoRuntimeException: 06090000 archive GetModelsDiff return status is 404
solr6_1     |   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(
solr6_1     |   at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(
solr6_1     |   at org.alfresco.solr.tracker.ModelTracker.trackModels(
solr6_1     |   at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(
solr6_1     |   at org.alfresco.solr.lifecycle.SolrCoreLoadRegistration.registerForCore(
solr6_1     |   at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(
solr6_1     |   at org.apache.solr.core.SolrCore.lambda$getSearcher$15(
solr6_1     |   at
solr6_1     |   at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(
solr6_1     |   at java.util.concurrent.ThreadPoolExecutor.runWorker(
solr6_1     |   at java.util.concurrent.ThreadPoolExecutor$
solr6_1     |   at
solr6_1     | 2018-07-09 12:32:30.082 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@59d4cd39_Worker-3) [   ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - archive
solr6_1     | org.alfresco.error.AlfrescoRuntimeException: 06090001 api/solr/aclchangesets return status:404
solr6_1     |   at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(
solr6_1     |   at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(
solr6_1     |   at org.alfresco.solr.tracker.AclTracker.trackRepository(
solr6_1     |   at org.alfresco.solr.tracker.AclTracker.doTrack(
solr6_1     |   at org.alfresco.solr.tracker.AbstractTracker.track(
solr6_1     |   at org.alfresco.solr.tracker.TrackerJob.execute(
solr6_1     |   at
solr6_1     |   at org.quartz.simpl.SimpleThreadPool$
solr6_1     | 2018-07-09 12:32:30.171 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@59d4cd39_Worker-2) [   ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - alfresco
solr6_1     | org.alfresco.error.AlfrescoRuntimeException: 06090003 api/solr/aclchangesets return status:404


Any advice? Or does anybody found a configuration that's working? My overall goal is to install existing AMP files into the repo and share container (according this documentation: acs-packaging/ at master · Alfresco/acs-packaging · GitHub ).

I appreciate any inputs.