06-15-2021 11:09 AM
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.
06-17-2021 12:56 PM
*** 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/
[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"
http://localhost:8080/share
[root@alfresco.70]# systemctl stop activemq alfresco-content alfresco-tengine-aio alfresco-search
[root@alfresco.52]# /opt/alfresco/alfresco.sh stop
[postgres@alfresco.52]# pg_dump alfresco > alfresco52.db.sql
[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: **********************
[root@alfresco70 ~]# rm -rf /var/opt/alfresco/search-services/alfresco/index/* [root@alfresco70 ~]# rm -rf /var/opt/alfresco/search-services/archive/index/*
[root@alfresco.70]# systemctl start activemq alfresco-content alfresco-tengine-aio alfresco-search
06-21-2021 04:09 AM
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,
Explore our Alfresco products with the links below. Use labels to filter content by product module.