Planning upgrade Alfresco community 5.0.b to 6.2

cancel
Showing results for 
Search instead for 
Did you mean: 
kaynezhang
Advanced

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Good luck

EddieMay
Community Manager
Community Manager

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Hi @jack_chuong 

Thanks for updating & let us know how the 6.2 upgrade goes.

Best wishes,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
jack_chuong
Active Member II

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Sorry for bothering you guys again, but I cannot find Alfresco Community 6.2 download link (.bin file with all in one installation) , this link only have docker installation.

kaynezhang
Advanced

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

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 solution in original post

jack_chuong
Active Member II

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Thank you very much, I will try it.

jack_chuong
Active Member II

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Hi,

It's me again, I read your documents and try to install Alfresco 6.2.0 GA Community on a new Centos 7 (to see if it works , then I can migrate db and contentstore from the current 5.2), my environment :

CentOS Linux release 7.8.2003 (Core)
mysql-community-server-5.7.32
java-11-openjdk-11.0.8
libreoffice-5.3.6.1 (installed via yum , running at port 8100)
ImageMagick-6.9.10 (installed via yum)
alfresco-search-services-1.4.0 (solr6 running at port 8983 ok)
apache-activemq-5.16.0 (running port 61616 , 61613 , 61614 ...)
apache-tomcat-8.5.59 (running port 8080)
alfresco-content-services-community-distribution-6.2.0-ga

This is my alfresco-global.properties :

dir.root=/opt/alfresco-community/alf_data
dir.contentstore=/opt/newcontentstore

alfresco.context=alfresco
alfresco.host=ecm.mydomain.com
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=ecm.mydomain.com
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=com.mysql.jdbc.Driver
db.username=alfresco
db.password=***********
db.name=alfresco
db.url=jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
# Note: your database must also be able to accept at least this many connections.  Please see your database documentation for instructions on how to configure this.
db.pool.max=275
db.pool.validate.query=SELECT 1

# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=PRODUCTION

### Solr indexing ###
solr.host=localhost
index.subsystem.name=solr6
solr.secureComms=none
solr.port=8983

### Allow extended ResultSet processing
security.anyDenyDenies=false

### External executable locations ###
#ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin
ooo.enabled=true
ooo.port=8100
ooo.host=localhost
jodconverter.enabled=true
jodconverter.officeHome=/usr/lib64/libreoffice
jodconverter.portNumbers=8100

#img.root=/opt/alfresco-community/common
img.dyn=/usr/lib64
img.exe=/usr/bin/convert
img.config=/usr/lib64/ImageMagick-6.9.10/config-Q16
img.coders=/usr/lib64/ImageMagick-6.9.10/modules-Q16/coder

alfresco-pdf-renderer.root=/opt/alfresco-community/common
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer

messaging.broker.url=failover:(tcp://localhost:61616)?timeout=3000

I can access to http://ecm.mydomain.com:8080/share/ , login with username/pass admin/admin .
However if I want to use ACS with port 80 , I change config :
tomcat/conf/server.xml

    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
                maxHttpHeaderSize="32768"
               redirectPort="8443" />

tomcat/shared/classes/alfresco-global.properties

alfresco.context=alfresco
alfresco.host=ecm.mydomain.com
alfresco.port=80
alfresco.protocol=http

share.context=share
share.host=ecm.mydomain.com
share.port=80
share.protocol=http

I cannot login anymore, error in log:

2020-10-21 16:49:27,657  INFO  [webscripts.connector.RemoteClient] [http-nio-80-exec-1] Exception calling (GET) http://localhost:8080/alfresco/s/remoteadm/has/alfresco/
site-data/chrome/.xml?s=sitestore
 org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
2020-10-21 16:49:27,658  INFO  [webscripts.connector.RemoteClient] [http-nio-80-exec-1] Error status 503 The stack details have been removed for security reasons.
 org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

Also I see many errors about "T-Engine" in log :

2020-10-21 16:49:30,010  ERROR [content.transform.LocalTransformServiceRegistry] [QuartzScheduler_Worker-2] 09210069 Failed to connect or to read the response from T-Engine on http://localhost:8090/transform/config

I did some searching and turn out it relating to Transform Engines , I read these :
Alfresco Community Edition 201911 GA Release Notes 
Custom Transforms and Renditions 
Quick reference for transformers in ACS Community 6.2 
But I don't understand very well, whether it affects ?
If yes , is there anyway that I can setup T-engines outside docker ?
If no, can I turn off this error ?

Also there are many WARNING like this :

21-Oct-2020 16:47:27.453 WARNING [localhost-startStop-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/META-INF/sou
rce-map.js] to the cache for web application [/share] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

How can I increase the maximum size of cache ?

 

kaynezhang
Advanced

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution
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 solution in original post

jack_chuong
Active Member II

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Thank you
T-engines errors and cache warnings have gone.
How can I change Alfresco default port from 8080 to 80 ? (I don't use HTTPS)
I did :

tomcat/conf/server.xml

    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
                maxHttpHeaderSize="32768"
               redirectPort="8443" />

tomcat/shared/classes/alfresco-global.properties

alfresco.context=alfresco
alfresco.host=ecm.mydomain.com
alfresco.port=80
alfresco.protocol=http

share.context=share
share.host=ecm.mydomain.com
share.port=80
share.protocol=http

 I can access "http://ecm.mydomain.com/share/" but login fail, here log :

2020-10-22 09:29:05,601  INFO  [webscripts.connector.RemoteClient] [http-nio-80-exec-9] Exception calling (GET) http://localhost:8080/alfresco/s/api/admin/restrictions?guest=true
 org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

2020-10-22 09:29:05,601  INFO  [webscripts.connector.RemoteClient] [http-nio-80-exec-9] Error status 503 The stack details have been removed for security reasons.
 org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

I can setup a Nginx reverse proxy to do this but I consider why it doesn't work as documentation , did I miss something ?

kaynezhang
Advanced

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution
you also need to config alfresco endpoint int share-config-custom.xml。
Please refer to 

View solution in original post

jack_chuong
Active Member II

Re: Planning upgrade Alfresco community 5.0.b to 6.2

Jump to solution

Yes, all works fine now.