Upgrading Alfresco 4.2.c to 4.2.f (WIP)

Posted by admin - November 13, 2017

Initial situation

  • We had an Alfresco CE 4.2.c installation on Ubuntu 12.04 LTS
  • The repository size was 80GB
  • We had an unmaintained selfmade Freemind plugin
  • There was a personalized backup process

Planning migration

  • Validate prerequisites
  • Perform a full system state Backup
  • restore the Backup in a Test VM
  • Upgrade Ubuntu to the latest LTS Version 16.04
  • Backup postgresql
  • Start Upgrading Alfresco
  • Restore Freemind

Upgrading

  • su postgresql
  • export PGHOST=localhost
  • pg_dump under /opt/alfresco/postgresql/bin pg_dump alfresco > /backup/alfresco4.2c.database.postgresql
  • run the new alfresco installer
  • mv /opt/alfresco-4.2.f/alf_data/postgresql /opt/alfresco-4.2.f/alf_data/PENDINGDEL/
  • mv /opt/alfresco-4.2.f/alf_data/solr /opt/alfresco-4.2.f/alf_data/PENDINGDEL/
  • mv /opt/alfresco-4.2.f/alf_data/keystore /opt/alfresco-4.2.f/alf_data/PENDINGDEL
  • cp -ra /opt/alfresco-4.2.f/alf_data_orig/* /opt/alfresco-4.2.f/alf_data/
  • rm /opt/alfresco-4.2.f/alf_data
  • rm /opt/alfresco-4.2.f/alf_share
  • ln -s /srv/alfresco/alf_data /opt/alfresco-4.2.f/alf_data
  • ln -s /srv/alfresco/alf_share /opt/alfresco-4.2.f/alf_share
  • serivce alfresco42 or whatever start
  • su postgres
  • Create a new database CREATE DATABASE alfresco_42c; will create a database named alfresco_42c
  • restore the database /opt/alfresco-4.2.f/postgresql/bin/psql alfresco_42c < /backup/alfresco4.2c.database.postgresql
  • change alfreso 4.2.f to use the new created database nano /opt/alfresco-4.2.f/tomcat/shared/classes/alfresco-global.properties
  • restart alfreso service alfresco42 restart

Freemind Integration

  • Copy old /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/site.get.js and .xml to the new Alfresco Folder
  • Copy opt/alfresco/tomcat/webapps/share/modules/documentlibrary/ flashobject.js also to the new Alfresco Folder