ACS 5.2.7 to 7.0.1 (Docker Compose) Migration

cancel
Showing results for 
Search instead for 
Did you mean: 
hassan_m_ishmam
Member II

ACS 5.2.7 to 7.0.1 (Docker Compose) Migration

Hello Alfresco Community,

We are currently upgrading ACS 5.2.7 to 7.0.1 and deploying it in containers. Prior to upgrading the repository to 7, we upgraded Solr4 to Alfresco Search Services 1.3.2 in Alfresco 5.2. Post the migration, we are seeing this error and Solr search is not working. We tried both migrating the old index and a full reindex, but it did not solve our issue. The configuration we have works with a vanilla alfresco 7 install with SSL on. The container images have been modified to have SSL on and validated that it works with a fresh data. 

alfresco_1            | 2022-01-19 19:25:05,770  ERROR [quartz.core.JobRunShell] [SearchScheduler_Worker-1] Job Solr.SolrWatcher threw an unhandled Exception: 
alfresco_1            | org.alfresco.repo.search.QueryParserException: 00190020 Request failed 404 /solr/admin/cores?action=STATUS&wt=json&alfresco.shards=https://localhost:8443/solr/alfresco
alfresco_1            | 	at org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient.getOperation(AbstractSolrAdminHTTPClient.java:86)
alfresco_1            | 	at org.alfresco.repo.solr.SOLRAdminClient.executeAction(SOLRAdminClient.java:221)
alfresco_1            | 	at org.alfresco.repo.solr.SOLRAdminClient$SolrTracker.pingSolr(SOLRAdminClient.java:333)
alfresco_1            | 	at org.alfresco.repo.solr.SOLRWatcherJob.execute(SOLRWatcherJob.java:54)
alfresco_1            | 	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
alfresco_1            | 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
alfresco_1            | 2022-01-19 19:25:05,772  ERROR [quartz.core.ErrorLogger] [SearchScheduler_Worker-1] Job (Solr.SolrWatcher threw an exception.
alfresco_1            | org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.repo.search.QueryParserException: 00190020 Request failed 404 /solr/admin/cores?action=STATUS&wt=json&alfresco.shards=https://localhost:8443/solr/alfresco]
alfresco_1            | 	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
alfresco_1            | 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
alfresco_1            | Caused by: org.alfresco.repo.search.QueryParserException: 00190020 Request failed 404 /solr/admin/cores?action=STATUS&wt=json&alfresco.shards=https://localhost:8443/solr/alfresco
alfresco_1            | 	at org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient.getOperation(AbstractSolrAdminHTTPClient.java:86)
alfresco_1            | 	at org.alfresco.repo.solr.SOLRAdminClient.executeAction(SOLRAdminClient.java:221)
alfresco_1            | 	at org.alfresco.repo.solr.SOLRAdminClient$SolrTracker.pingSolr(SOLRAdminClient.java:333)
alfresco_1            | 	at org.alfresco.repo.solr.SOLRWatcherJob.execute(SOLRWatcherJob.java:54)
alfresco_1            | 	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
alfresco_1            | 	... 1 more


This is our compose file:

version: "2"
services:
    alfresco:
        image: 
        mem_limit: 1700m
        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=
                -Dmetadata-keystore.aliases=metadata 
                -Dmetadata-keystore.metadata.password=
                -Dmetadata-keystore.metadata.algorithm=DESede 
                "
           JAVA_OPTS: "
                -Ddb.username=
                -Ddb.password=
                -Ddb.pool.max=575
                -Ddb.schema.update=true
                -Ddb.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
                -Ddb.url=
                -Ddb.pool.idle=-1
                -Dhibernate.jdbc.fetch_size=150
                -Ddb.txn.isolation=4096
                -Dalfresco.cluster.enabled=false
                -Davmsync.rmi.service.port=0
                -Dftp.port=2121
                -Dftp.enabled=true
                -Dftp.ipv6.enabled=false
                -Dsystem.workflow.engine.jbpm.enabled=false
                -Dalfresco.rmi.services.port=50500
                -Dnotification.email.siteinvite=false
                -Dcifs.enabled=false
                -Dsystem.metadata-query-indexes.ignored=false
                -Dsolr.host=solr6
                -Dsolr.port=8983
                -Dsolr.port.ssl=8443
                -Dsolr.secureComms=https
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=share
                -Dshare.port=8080
                -Dalfresco.host=alfresco
                -Dalfresco.port=8080
                -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
                -Dmessaging.subsystem.autoStart=true
                -Dmessaging.broker.url=\"failover:(tcp://activemq:61616)?timeout=3000&jms.useCompression=true\"
                -Ddeployment.method=DOCKER_COMPOSE
                -Dlocal.transform.service.enabled=true
                -Dlegacy.transform.service.enabled=true
                -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:9091/alfresco
                -DtrialUid=id18259750
                -Dauthentication.chain=
                -Dldap.provider.url=
                -Dldap.username=
                -Dldap.password=
                -Dcache.userToAuthoritySharedCache.tx.maxItems=2000
                -Dcache.personTransactionalCache.tx.maxItems=8000
                -Dcache.personSharedCache.tx.maxItems=10000
                -Dcache.personSharedCache.maxItems=100000
                -XX:MinRAMPercentage=50
                -XX:MaxRAMPercentage=80
                "
        ports:
            - 8443:8443
        volumes:
            - /mnt/alfresco/alfresco-content-services-7.0/data/alfresco_data:/usr/local/tomcat/alf_data/
            - /mnt/alfresco/alfresco-content-services-7.0/logs/alfresco_logs:/usr/local/tomcat/logs/
    transform-router:
        mem_limit: 512m
        image: quay.io/alfresco/alfresco-transform-router:1.4.1
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
            ACTIVEMQ_URL: "tcp://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
        depends_on:
            - activemq

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

    shared-file-store:
        image: quay.io/alfresco/alfresco-shared-file-store:0.16.0
        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:
            - /mnt/alfresco/alfresco-content-services-7.0/shared-file-store:/tmp/Alfresco/sfs

    share:
        image: 
        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 -Xms2048m -Xmx22G -Xss1024k"

    solr6:
        image: 
        mem_limit: 2g
        environment:
            #Keystore and Truststore file locations
            SOLR_SSL_KEY_STORE: "/opt/alfresco-search-services/keystore/ssl.repo.client.keystore"
            SOLR_SSL_KEY_STORE_PASSWORD: 
            SOLR_SSL_KEY_STORE_TYPE: 
            SOLR_SSL_TRUST_STORE: "/opt/alfresco-search-services/keystore/ssl.repo.client.truststore"
            SOLR_SSL_TRUST_STORE_PASSWORD: 
            SOLR_SSL_TRUST_STORE_TYPE: 
            SOLR_SSL_NEED_CLIENT_AUTH: "true"
            SOLR_SSL_WANT_CLIENT_AUTH: "false"
            SOLR_JAVA_MEM: "-Xms2g -Xmx12g"
            #Solr needs to know how to register itself with Alfresco
            SOLR_ALFRESCO_HOST: "alfresco"
            SOLR_ALFRESCO_PORT: "8443"
            #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"
            #HTTP by default
            ALFRESCO_SECURE_COMMS: https
            SOLR_OPTS: "
                -Dsolr.ssl.checkPeerName=false
                -Dsolr.allow.unsafe.resourceloading=true
                -Dsun.security.ssl.allowUnsafeRenegotiation=true
            "
        ports:
            - 8083:8983 #Browser port
        volumes:
            - /mnt/alfresco/alfresco-content-services-7.0/data/solr_data:/opt/alfresco-search-services/data
            - /mnt/alfresco/alfresco-content-services-7.0/logs/solr_logs:/opt/alfresco-search-services/logs
            - /mnt/alfresco/alfresco-content-services-7.0/keystores/solr:/opt/alfresco-search-services/keystore

    activemq:
        image: alfresco/alfresco-activemq:5.16.1
        mem_limit: 1g
        ports:
            - 8161:8161 # Web Console
            - 5672:5672 # AMQP
            - 61616:61616 # OpenWire
            - 61613:61613 # STOM

    digital-workspace:
        image: quay.io/alfresco/alfresco-digital-workspace:1.3.0
        mem_limit: 128m
        environment:
            APP_CONFIG_AUTH_TYPE: "BASIC"
            BASE_PATH: ./

    proxy:
        image: alfresco/alfresco-acs-nginx:3.1.1
        mem_limit: 128m
        environment:
            DISABLE_SYNCSERVICE: "true"
        ports:
            - 8080:8080
        depends_on:
            - digital-workspace
            - alfresco
            - share
            - solr6
volumes:
    shared-file-store-volume:
        driver_opts:
            type: tmpfs
            device: tmpfs
1 Reply
abhinavmishra14
Advanced