cancel
Showing results for 
Search instead for 
Did you mean: 

Howto upgrade Alfresco Community Edition 7.0 to Community Edition 7.1 with docker compose?

eweitzel
Champ in-the-making
Champ in-the-making

I want to upgrade from CE 7.0 to CE 7.1 as the title says. 

What I did so far is to just install CE7.1:

- I created a new directory
- I created the docker-compose.yml file
- I created the logs and data directory with the appropriate Permission settings
- I created a config directory with the nginx.conf
- I run docker compose up
- this results in 8 running containers

But I can not access the link "http://localhost:8080/alfresco"
Results in timeout

Either I can not access : https://localhost:443/alfresco"
Results in Error 404

Any help highly appreciated.

Please find below the Tags for the Docker Images docker-compose.yml file.

 

I use these images for 7.1:

CE 7.1: ALFRESCO_CE_TAG=7.1.0

CE 7.1: TRANSFORM_CORE_AIO_TAG=2.5.3

CE 7.1: SHARE_TAG=7.1.0.1

CE 7.1: POSTGRES_TAG=13.1

CE 7.1: SOLR6_SEARCH_TAG=2.0.2

CE 7.1: ACTIVEMQ_TAG=5.16.1

CE 7.1: ACA_CONTENT_APP_TAG=2.3.0

CE 7.1: ACA_PROXY_TAG=1.2.0

CE 7.1: API_EXPLORER_TAG=7.1.0.1

 

docker-compose.yml for Version CE 7.1:

services:

alfresco:

image: docker.io/alfresco/alfresco-content-repository-community:${ALFRESCO_CE_TAG}

mem_limit: 7488m

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=${CUSTOM_POSTGRES_PASSWORD}

-Ddb.url=jdbc:postgresql://postgres:5432/alfresco

-Dsolr.host=solr6

-Dsolr.port=8983

-Dsolr.http.connection.timeout=1000

-Dsolr.secureComms=none

-Dsolr.baseUrl=/solr

-Dindex.subsystem.name=solr6

-Dalfresco.host=${SERVER_NAME}

-Dalfresco.port=443

-Dalfresco.protocol=https

-Dshare.host=${SERVER_NAME}

-Dshare.port=443

-Dshare.protocol=https

-Daos.baseUrlOverwrite=https://${SERVER_NAME}/alfresco/aos

-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"

-Ddeployment.method=DOCKER_COMPOSE

-Dcsrf.filter.enabled=false

-Dopencmis.server.override=true

-Dopencmis.server.value=https://${SERVER_NAME}:443

-DlocalTransform.core-aio.url=http://transform-core-aio:8090/

-Dcsrf.filter.enabled=false

-Dalfresco.restApi.basicAuthScheme=true

-Dauthentication.protection.enabled=false

-XX:+UseG1GC -XX:+UseStringDeduplication

-Dgoogledocs.enabled=true

-Xms6976m -Xmx6976m

-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80

"

volumes:

- ./data/alf-repo-data:/usr/local/tomcat/alf_data

- ./logs/alfresco:/usr/local/tomcat/logs

transform-core-aio:

image: alfresco/alfresco-transform-core-aio:${TRANSFORM_CORE_AIO_TAG}

mem_limit: 1536m

environment:

JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"

share:

image: docker.io/alfresco/alfresco-share:${SHARE_TAG}

mem_limit: 1872m

environment:

REPO_HOST: "alfresco"

REPO_PORT: "8080"

CSRF_FILTER_REFERER: "https://localhost/.*"

CSRF_FILTER_ORIGIN: "https://locallhost"

JAVA_OPTS: "

-Xms1744m -Xmx1744m

-Dalfresco.context=alfresco

-Dalfresco.protocol=https

-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80

"

volumes:

- ./logs/share:/usr/local/tomcat/logs

postgres:

image: postgres:${POSTGRES_TAG}

mem_limit: 1872m

environment:

- POSTGRES_PASSWORD=${CUSTOM_POSTGRES_PASSWORD}

- POSTGRES_USER=alfresco

- POSTGRES_DB=alfresco

command: "

postgres

-c max_connections=200

-c logging_collector=on

-c log_min_messages=LOG

-c log_directory=/var/log/postgresql"

ports:

- 5432:5432

volumes:

- ./data/postgres-data:/var/lib/postgresql/data

- ./logs/postgres:/var/log/postgresql

solr6:

image: docker.io/alfresco/alfresco-search-services:${SOLR6_SEARCH_TAG}

mem_limit: 3744m

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"

SOLR_JAVA_MEM: "-Xms3488m -Xmx3488m"

SOLR_OPTS: "

-XX:NewSize=1616m

-XX:MaxNewSize=1616m

"

volumes:

- ./data/solr-data:/opt/alfresco-search-services/data

activemq:

image: alfresco/alfresco-activemq:${ACTIVEMQ_TAG}

mem_limit: 1g

ports:

- 8161:8161 # Web Console

- 5672:5672 # AMQP

- 61616:61616 # OpenWire

- 61613:61613 # STOMP

content-app:

image: alfresco/alfresco-content-app:${ACA_CONTENT_APP_TAG}

mem_limit: 256m

# HTTP proxy to provide HTTP Default port access to services

# SOLR API and SOLR Web Console are protected to avoid unauthenticated access

proxy:

image: angelborroy/acs-proxy:${ACA_PROXY_TAG}

mem_limit: 128m

environment:

- PORT=443

- PROTOCOL=https

volumes:

- ./config/nginx.htpasswd:/etc/nginx/conf.d/nginx.htpasswd

- ./config/cert/localhost.cer:/etc/nginx/localhost.cer

- ./config/cert/localhost.key:/etc/nginx/localhost.key

ports:

- 443:443

1 ACCEPTED ANSWER

roberto_gamiz
Star Collaborator
Star Collaborator

Hello,

Your proxy are not listening 8080 port so is normal you can not reach the repository through there but you should access via https.

Have you got any error message on alfresco container log that prevents platform to start?

Regards




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer



View answer in original post

3 REPLIES 3

roberto_gamiz
Star Collaborator
Star Collaborator

Hello,

Your proxy are not listening 8080 port so is normal you can not reach the repository through there but you should access via https.

Have you got any error message on alfresco container log that prevents platform to start?

Regards




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer



Thanks for your answer. It got the critical hint. I changed the configuration for http on Port 8080 and I can login with uid admin. 

Yves_Prignon
Employee
Employee

Generally, the step for an upgrade are:
- Install the new version on a clean DB
- Test it works with your customisation
- Make a copy of your old DB and Filesystem
- Change the parameters in the new installation to point to the copy of the old DB and Filesystem and let it do its update
*Almost the same process as a cold backup restore, except it is on a new repo.


Alfresco is made of 3 part, index, db, filesystem, the only thing that is changed when updating is the database and the repository descriptor on the filesystem. For some version change you also need to reindex but it is less and less necessary with ES. 

Here I think you got your answer related to the port used.