cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 7.2 docker-compose installation error

Douglas
Champ in-the-making
Champ in-the-making

I downloaded the 7.2 docker-compose.yml from the document on Alfresco(https://docs.alfresco.com/content-services/latest/install/containers/docker-compose/ ).
Here is docker-compose.yml

version: "2"

services:
    alfresco:
        image: quay.io/alfresco/alfresco-content-repository:7.2.0
        mem_limit: 1900m
        environment:
            JAVA_TOOL_OPTIONS: " -Dencryption.keystore.type=JCEKS -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding -Dencryption.keyAlgorithm=DESede -Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore -Dmetadata-keystore.password=mp6yc0UD9e -Dmetadata-keystore.aliases=metadata -Dmetadata-keystore.metadata.password=oKIWzVdEdA -Dmetadata-keystore.metadata.algorithm=DESede "
            JAVA_OPTS: "
                -Ddb.driver=org.postgresql.Driver
                -Ddb.username=alfresco
                -Ddb.password=alfresco
                -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
                -Dsolr.host=solr6
                -Dsolr.port=8983
                -Dsolr.secureComms=secret
                -Dsolr.sharedSecret=secret
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8080
                -Dalfresco.host=localhost
                -Dalfresco.port=8080
                -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
                -Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
                -Ddeployment.method=DOCKER_COMPOSE
                -Dtransform.service.enabled=true
                -Dtransform.service.url=http://transform-router:8095
                -Dsfs.url=http://shared-file-store:8099/
                -DlocalTransform.core-aio.url=http://transform-core-aio:8090/
                -Dcsrf.filter.enabled=false
                -Ddsync.service.uris=http://localhost:9090/alfresco
                -DtrialUid=id18904771
                -XX:MinRAMPercentage=50
                -XX:MaxRAMPercentage=80
                "

    transform-router:
        mem_limit: 512m
        image: quay.io/alfresco/alfresco-transform-router:1.5.2
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
            ACTIVEMQ_URL: "nio://activemq:61616"
            CORE_AIO_URL: "http://transform-core-aio:8090"
            FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
        ports:
            - "8095:8095"
        links:
            - activemq

    transform-core-aio:
        image: alfresco/alfresco-transform-core-aio:2.5.7
        mem_limit: 1536m
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
            ACTIVEMQ_URL: "nio://activemq:61616"
            FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
        ports:
            - "8090:8090"
        links:
            - activemq

    shared-file-store:
        image: quay.io/alfresco/alfresco-shared-file-store:0.16.1
        mem_limit: 512m
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
            scheduler.content.age.millis: 86400000
            scheduler.cleanup.interval: 86400000
        ports:
            - "8099:8099"
        volumes:
            - shared-file-store-volume:/tmp/Alfresco/sfs

    share:
        image: quay.io/alfresco/alfresco-share:7.2.0
        mem_limit: 1g
        environment:
            REPO_HOST: "alfresco"
            REPO_PORT: "8080"
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 -Dalfresco.host=localhost -Dalfresco.port=8080 -Dalfresco.context=alfresco -Dalfresco.protocol=http "

    postgres:
        image: postgres:13.3
        mem_limit: 512m
        environment:
            - POSTGRES_PASSWORD=alfresco
            - POSTGRES_USER=alfresco
            - POSTGRES_DB=alfresco
        command: postgres -c max_connections=300 -c log_min_messages=LOG
        ports:
            - "5432:5432"

    solr6:
        image: alfresco/alfresco-search-services:2.0.3
        mem_limit: 2g
        environment:
      # 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"
      # HTTPS or SECRET
            ALFRESCO_SECURE_COMMS: "secret"
      # SHARED SECRET VALUE
            JAVA_TOOL_OPTIONS: " -Dalfresco.secureComms.secret=secret "
        ports:
            - "8083:8983" # Browser port

    activemq:
        image: alfresco/alfresco-activemq:5.16.4-jre11-centos7
        mem_limit: 1g
        ports:
            - "8161:8161" # Web Console
            - "5672:5672" # AMQP
            - "61616:61616" # OpenWire
            - "61613:61613" # STOMP

    digital-workspace:
        image: quay.io/alfresco/alfresco-digital-workspace:2.7.0
        mem_limit: 128m
        environment:
            APP_CONFIG_AUTH_TYPE: "BASIC"
            BASE_PATH: ./
            APP_BASE_SHARE_URL: "http://localhost:8080/workspace/#/preview/s"

    control-center:
        image: quay.io/alfresco/alfresco-admin-app:7.2.0
        mem_limit: 128m
        environment:
            APP_CONFIG_PROVIDER: "ECM"
            APP_CONFIG_AUTH_TYPE: "BASIC"
            BASE_PATH: ./

    proxy:
        image: alfresco/alfresco-acs-nginx:3.3.0
        mem_limit: 128m
        depends_on:
            - alfresco
            - digital-workspace
            - control-center
        ports:
            - "8080:8080"
        links:
            - digital-workspace
            - alfresco
            - share
            - control-center

    sync-service:
        image: quay.io/alfresco/service-sync:3.6.0
        mem_limit: 1g
        environment:
            JAVA_OPTS: " -Dsql.db.driver=org.postgresql.Driver -Dsql.db.url=jdbc:postgresql://postgres:5432/alfresco -Dsql.db.username=alfresco -Dsql.db.password=alfresco -Dmessaging.broker.host=activemq -Drepo.hostname=alfresco -Drepo.port=8080 -Ddw.server.applicationConnectors[0].type=http -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 "
        ports:
            - "9090:9090"

volumes:
    shared-file-store-volume:
        driver_opts:
            type: tmpfs
            device: tmpfs

The following message appears after executing the “docker login quay.io” and "docker-compose up"

sync-service_1        | 06:54:15,791 INFO  [alfresco.util.RetryConnectionCommand] retry to connect! Read timed out
share_1               |  2022-05-04 06:54:16,069  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
share_1               |  2022-05-04 06:54:16,084  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
share_1               |  2022-05-04 06:54:16,086  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
share_1               |  2022-05-04 06:54:16,091  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
alfresco_1            | 04-May-2022 06:54:19.255 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
share_1               |  2022-05-04 06:54:21,651  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 384 Web Scripts (+0 failed), 402 URLs
share_1               |  2022-05-04 06:54:21,662  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 8 Package Description Documents (+0 failed) 
share_1               |  2022-05-04 06:54:21,663  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 0 Schema Description Documents (+0 failed) 

Then an error occurred

[sync-service_1        | 06:56:02,906 DEBUG [sync.dropwizard.SyncService] Adding servlet com.codahale.metrics.servlets.MetricsServlet-75ee63f2==com.codahale.metrics.servlets.MetricsServlet@37c4b2c3{jsp=null,order=-1,inst=false,async=true,src=EMBEDDED:null,STOPPED} at /alfresco/api/-default-/private/alfresco/versions/1/metrics
sync-service_1        | 06:56:02,924 DEBUG [sync.dropwizard.SyncService] Adding servlet com.codahale.metrics.servlets.HealthCheckServlet-74a121fe==com.codahale.metrics.servlets.HealthCheckServlet@5fca7ed0{jsp=null,order=-1,inst=false,async=true,src=EMBEDDED:null,STOPPED} at /alfresco/healthcheck
sync-service_1        | INFO  [2022-05-04 06:56:12,911] org.reflections.Reflections: Reflections took 9865 ms to scan 1 urls, producing 59031 keys and 109774 values 
sync-service_1        | WARN  [2022-05-04 06:56:12,981] org.reflections.Reflections: could not get type for name commonj.work.WorkManager from any class loader
sync-service_1        | ! java.lang.ClassNotFoundException: commonj.work.WorkManager
sync-service_1        | ! at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
sync-service_1        | ! at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
sync-service_1        | ! at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
sync-service_1        | ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388)
sync-service_1        | ! ... 14 common frames omitted
sync-service_1        | ! Causing: org.reflections.ReflectionsException: could not get type for name commonj.work.WorkManager
sync-service_1        | ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390)
sync-service_1        | ! at org.reflections.Reflections.expandSuperTypes(Reflections.java:381)
sync-service_1        | ! at org.reflections.Reflections.<init>(Reflections.java:126)
sync-service_1        | ! at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:288)
sync-service_1        | ! at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:250)
sync-service_1        | ! at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:231)

Does anyone know how to deal with it? Thank you in advance.

0 REPLIES 0