cancel
Showing results for 
Search instead for 
Did you mean: 

Planning upgrade Alfresco community 5.0.b to 6.2

jack_chuong
Star Contributor
Star Contributor

Hi all,

My environment : Alfresco communitu 5.0.b on premise , server Centos 6.4 , installed all in one by "alfresco-community-5.0.b-installer-linux-x64.bin" .
Installation dir : /opt/alfresco-5.0.b
I actually only use Alfresco content management feature at simple level : upload soft files from scanner to ECM , store and search them later when needed.
I have applied some customizations in /opt/alfresco-5.0.b/tomcat/shared/classes/alfresco-global.properties:
- Authenticate with Active Directory
- Connect to our mail servers
- Use DB Mysql (5.1) and java-1.5.0
- URL : ecm.mydomain.com/share/ (port 80 , not 8080)
- dir.contentstore --> /opt/contentstore (separate from /opt/alfresco-5.0.b/alf_data/contentstore)
May be afew more, I don't remember.

I want to upgrade my ECM to 6.2 , these are my planning steps :

Upgrade path : 5.0.b --> 5.2 --> 6.0 --> 6.2

Stage 1
- Stop ECM services
- Backup alfresco database and contentstore
- Install Alfresco 5.2 on differrent path : /opt/alfresco-5.2 , db alfresco-new , new contentstore
- Apply customizations from old ECM to the new one (except dir.contentstore and db settings)
- Start Alfresco 5.2 services and validate features if it work ok

Stage 2 (if Stage 1 done well)
- Stop Alfresco 5.2 services
- Change Alfresco 5.2 alfresco-global.properties dir.contentstore and db settings to old ECM 5.0.b
- Start Alfresco 5.2 services and validate features if it work ok

Please give me some advices , thank you very much.

4 ACCEPTED ANSWERS

kaynezhang
World-Class Innovator
World-Class Innovator

1.Direct upgrades to acs 6.2 are supported from 5.1.x and later, so your upgrade path can be just 5.0.b --> 5.2  --> 6.2.
2.Solr4 is not recommended in alfresco 6.X,you should use alfresco search servcie instead. So during upgrade to 5.2,you can upgrade to solr6 directly(you don't need to copy solr4 index,because a reindex is required). in this way when upgrade to acs6.2 from acs5.2,you dont' need to upgrade solr any more .About how to upgrade to search servcie please  refer to https://docs.alfresco.com/5.2/concepts/solr6-home.html.
3.For JDK and mysql I suggest you upgrade to to version that alfresco recommended.

View answer in original post

kaynezhang
World-Class Innovator
World-Class Innovator

After 6.x alfresco don't provide a full installer any more ,docker is recommended.
You can try to install it manually
Plese refer to
http://beecon.buzz/2017/assets/files/EF09/EF09-Installing-Alfresco-components-1-by-1.pdf
and
https://docs.alfresco.com/community/concepts/install-community-intro.html

View answer in original post

kaynezhang
World-Class Innovator
World-Class Innovator
As far as I know there is not any easy way to install T-egines outside docker.
T-egine is developed using spring boot ,if you don't want to install it using docker ,the only option is to install the spring boot jar and imagemagic/openoffice.. manually.
Now you can turn it off  by setting following in your alfresco global properties.
local.transform.service.enabled=false
For fixing the cache problem
Increase the cache size parameter. Add/edit cacheMaxSize within the Context XML element of your $CATALINA_BASE/conf/context.xml. The Resources component inside the <Context block
<Resources
    cachingAllowed="true"
    cacheMaxSize="100000"
/>

View answer in original post

kaynezhang
World-Class Innovator
World-Class Innovator
you also need to config alfresco endpoint int share-config-custom.xml。
Please refer to 

View answer in original post

24 REPLIES 24

EddieMay
World-Class Innovator
World-Class Innovator

Hi @jack_chuong 

That's great news - can you make this an accepted solution? That will help other users planning upgrades.

Cheers,

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

Hi,
I'm sorry for bothering you again, but I find out that Alfresco Search Services seem doesn't work correctly, newest uploaded files (since ACS 5.2 has been used) can be searched successfully but old files from the previous month and back cannot be searched with file name. Our file name look like : SGN2008063460.
I'm using Alfresco Community 5.2 , Alfresco Search Services 1.2.0.1 using Apache Solr 6.6.0.
This is screenshot about solr
image
imageimage

There are only some warnings in log , 1 error since solr has started on Oct 18

2020-10-18 03:45:09.583 ERROR (searcherExecutor-8-thread-1-processing-x:archive) [ x:archive] o.a.s.t.AbstractTracker Model tracking failed for core: archive
java.net.ConnectException: Connection refused (Connection refused)

2020-10-28 21:00:01.050 WARN (qtp232824863-113) [ x:archive] o.a.s.h.ReplicationHandler Exception during creating a snapshot
org.apache.solr.common.SolrException: Directory does not exist: file:///opt/alfresco-community/alf_data/solr6Backup/archive/snapshot.20201028210001050

So I think data must be indexed fully ? How can I fix it ?
Please let me know if I should create another topic for this question, thank you very much.

I found a similar case , should I update the alfresco-search-services/solrhome/conf/shared.properties (uncomment)

alfresco.suggestable.property.0={http://www.alfresco.org/model/content/1.0}name
alfresco.suggestable.property.1={http://www.alfresco.org/model/content/1.0}title 
alfresco.suggestable.property.2={http://www.alfresco.org/model/content/1.0}description 
alfresco.suggestable.property.3={http://www.alfresco.org/model/content/1.0}content

and perform a full index again ?

stop solr6
rm -f /opt/alfresco-search-services/solrhome/archive/index/* 
rm -f /opt/alfresco-search-services/solrhome/alfresco/index/* 
rm -f /opt/alfresco-search-services/solrhome/alfrescoModels/*
rm -rf /opt/alfresco-search-services/contentstore/_DEFAULT_/db/*
start solr6

I tried perform a full index with solr6 , after start solr6 , it consume CPU load for awhile , when CPU load back to normal , I try to search old file again, still no result , here screenshots
imageimageimage

Please help.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @jack_chuong 

As this has been marked as an accepted solution, can I recommend you start a new thread for the follow up issues? This is because people sometimes overlook what looks like a solved problem.

Cheers,

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