cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Community 5.2.x too Community 7.0 migration steps.

michaelzietlow
Confirmed Champ
Confirmed Champ

  I currently run Community 5.2.x and was tasked with migrating us to Community 7.0 (via ansible installation method).
  I've been reading through numerous installation/migration guides trying to piece together the steps required to do this into one spot.
This is what I have accomplished.

1. Unzip alfresco-ansible-deployment-1.0 zip file on new Centos/7 VM.

2. Copy alfresco-global.properties from Community 5.2.x to ~/alfresco-ansible-deployment-1.0/configuration_files

3. Copy keystores from Community 5.2.x to ~/alfresco-ansible-deployment-1.0/configuration_files/keystores

4. Installed Community 7.0 (via ansible installation method) per installation guide per Alfresco Community Ansible Installation guide. 

5. Verified I can log into http://localhost:8080/share with my ldap username/password!

6. IT WORKED!  I Have a blank running copy of Community 7.0 

This leaves me with some of the following key alfresco directories to work with:

/var/opt/alfresco/
/var/log/alfresco/
/etc/opt/alfresco/
/opt/alfresco /opt/apache-activemq-5.16.1 /opt/apache-tomcat-9.0.41 /opt/libreoffice6.3 /opt/openjdk-11.0.7


##############
#QUESTIONS! QUESTIONS! QUESTIONS!QUESTIONS! QUESTIONS! QUESTIONS!QUESTIONS! QUESTIONS
##############
This is what I believe I need to do at this point but have some questions:

1. On my Community 5.2.x server, Upgrade solr4 to Solr6 because solr4 is incompatible with the community7 build.
    (Really? Even if I'm okay with a Re-Index?  I'm not looking forward to this step but I'll do it if we have to.)

2. Dump the database On my Community 5.2.x server and Import the database to Community 7.0
    (Something like

[postgres@alfresco52 ~] pg_dump alfresco > alfresco_52_db.dump

&

[postgres@alfresco7 ~] psql -U alfresco -d alfresco -f alfresco_52_db.dump

?)   

4. Copy Community 5.2.x contentstore* into  Community 7.0 /var/opt/alfresco/content-services/content/
    (Is that right?  when I did a ps -ef after installing community 7 I see openjdk with this defined
   "-Dsolr.content.dir=/opt/alfresco/search-services-2.0.1/contentstore"

5. Community 7.0 to re-index 
    (Not sure how to do this)

I'm sure I'm missing many many steps, if there is a 5.2 to Community 7 step-by-step migration guide someplace I would love to be directed to it!

Thank you in advance for your time.

1 ACCEPTED ANSWER

*** EDITED ***

BELOW ARE MY STEPS  FOR A SUCCESSFUL 5.2 too 7.0 MIGRATION VIA ANSIBLE INSTALLER.

(NOTE:  Pay close attention to the hostnames (alfresco.52 vs alfresco.70))

1. Stage ContentStore

[root@alfresco.70 ]# mkdir -p /var/opt/alfresco/content-services/content;chown alfresco:alfresco /var/opt/alfresco/content-services/content

[root@alfresco.52 ]# rsync -a /opt/alfresco/alf_data/contentstore* alfresco.70:/var/opt/alfresco/content-services/content/
 
2. Install Community7.0 via ansible install scripts on new Centos/7 box. (copy necessary properties, contentstore, and keystores 1st)
[root@alfresco.52 ]# rsync /opt/alfresco/alf_data/keystore/* alfresco.70:~/alfresco-ansible-deployment-1.0/configuration_files/keystores/
[root@alfresco.70 ]# cp /tmp/alfresco-global.properties ~/alfresco-ansible-deployment-1.0/configuration_files/alfresco-global.properties
[root@alfresco.70 ]# chown -R alfresco:alfresco /var/opt/alfresco/content-services/content
[root@alfresco.70 ]# ansible-playbook playbooks/acs.yml -i inventory_local.yml -e "@community-extra-vars.yml"


 
3. Verify Community7.0 install was successful by logging in with my LDAP credentials which could only work if my alfresco-global.properties file was read successfully.
http://localhost:8080/share
 
4. On Alfresco.70 box stop services
[root@alfresco.70]# systemctl stop activemq alfresco-content alfresco-tengine-aio alfresco-search
 
5. On Alfresco.52 box, stop all services
[root@alfresco.52]# /opt/alfresco/alfresco.sh stop
 
6. On Alfresco.52 box, backup the alfresco database.  (Is that all I need? HELP!)
[postgres@alfresco.52]# pg_dump alfresco > alfresco52.db.sql
 
7. On Alfresco.70 box, DROP the alfresco DATABASE, recreate it, and import 5.2 database as alfresco user
[postgres@alfresco.70]# echo "local all alfresco password" >> /var/lib/pgsql/13/data/pg_hba.conf

[postgres@alfresco.70]# systemctl restart postgresql-13

[postgres@alfresco.70]# psql -U alfresco -d postgres
= \c postgres
= DROP DATABASE alfresco;
= CREATE DATABASE alfresco OWNER alfresco ENCODING 'utf8';
= GRANT ALL PRIVILEGES ON DATABASE alfresco TO alfresco;
= exit
[postgres@alfresco.70]# psql -U alfresco -D alfresco -f alfresco52.db.sql
password: **********************
8. On Alfresco.70 box remove index files
[root@alfresco70 ~]# rm -rf /var/opt/alfresco/search-services/alfresco/index/*
[root@alfresco70 ~]# rm -rf /var/opt/alfresco/search-services/archive/index/*
 
9. On Alfresco.70 box start services
[root@alfresco.70]# systemctl start activemq alfresco-content alfresco-tengine-aio alfresco-search

View answer in original post

10 REPLIES 10

EddieMay
World-Class Innovator
World-Class Innovator

Hi @michaelzietlow 

Great news that you've been successful and thanks for updating your thread on how you resolved your issue - that's really helpful to other users!

Thanks again,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!