Alfresco 6.2 docker -compose installation error

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Alfresco 6.2 docker -compose installation error

Jump to solution

I have modified the ports in docker-compose file and trying to install ACS in ubuntu machine but while docker-compose -up getting error related connection refused and 07050007 Failed to connect or to read the response from T-Engine for imagemadic,transform-misc and libreoffice etc

 

Here is my docker-compose file

services:
alfresco:
image: alfresco/alfresco-content-repository-community:6.2.0-ga
mem_limit: 1500m
environment:
JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbcSmiley Tongueostgresql://postgres:5435/alfresco
-Dsolr.host=solr6
-Dsolr.port=8989
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=127.0.0.1
-Dshare.port=8088
-Dalfresco.host=x.x.x.x
-Dalfresco.port=8088
-Daos.baseUrlOverwrite=http://x.x.x.x:8088/alfresco/aos
-Dmessaging.broker.url=\"failoverSmiley Sadnio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Ddeployment.method=DOCKER_COMPOSE

-Dlocal.transform.service.enabled=true
-DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8099/
-DlocalTransform.imagemagick.url=http://imagemagick:8099/
-DlocalTransform.libreoffice.url=http://libreoffice:8099/
-DlocalTransform.tika.url=http://tika:8099/
-DlocalTransform.misc.url=http://transform-misc:8099/

-Dlegacy.transform.service.enabled=true
-Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8099/
-Djodconverter.url=http://libreoffice:8099/
-Dimg.url=http://imagemagick:8099/
-Dtika.url=http://tika:8099/
-Dtransform.misc.url=http://transform-misc:8099/

-Dcsrf.filter.enabled=false
-Xms1500m -Xmx1500m
"

alfresco-pdf-renderer:
image: alfresco/alfresco-pdf-renderer:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8099:8099

imagemagick:
image: alfresco/alfresco-imagemagick:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8091:8099

libreoffice:
image: alfresco/alfresco-libreoffice:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8092:8099

tika:
image: alfresco/alfresco-tika:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8093:8099

transform-misc:
image: alfresco/alfresco-transform-misc:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8094:8099

share:
image: alfresco/alfresco-share:6.2.0
mem_limit: 1g
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8088"
JAVA_OPTS: "
-Xms500m
-Xmx500m
-Dalfresco.host=x.x.x.x
-Dalfresco.port=8088
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"

postgres:
image: postgres:11.4
mem_limit: 512m
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- 5435:5435

solr6:
image: alfresco/alfresco-search-services:1.4.0
mem_limit: 2g
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=8088
#Alfresco needs to know how to call solr
- SOLR_SOLR_HOST=solr6
- SOLR_SOLR_PORT=8989
#Create the default alfresco and archive cores
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
#HTTP by default
- ALFRESCO_SECURE_COMMS=none
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8085:8989 #Browser port

activemq:
image: alfresco/alfresco-activemq:5.15.8
mem_limit: 1g
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP

proxy:
image: alfresco/acs-community-ngnix:1.0.0
mem_limit: 128m
depends_on:
- alfresco
ports:
- 8088:8088
links:
- alfresco
- share

 

here is my error log

transform-misc_1 | 2020-08-05 01:50:13.027 INFO 1 --- [ main] org.alfresco.transformer.Application : Starting application components... Done
solr6_1 | 2020-08-05 01:50:16.681 WARN (Thread-12) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/alfresco'
solr6_1 | 2020-08-05 01:50:18.313 WARN (Thread-12) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
solr6_1 | 2020-08-05 01:50:18.319 WARN (Thread-12) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
share_1 | 2020-08-05 01:50:20,349 INFO [config.packaging.ModulePackageManager] [localhost-startStop-1] Found 1 module package(s)
share_1 | 2020-08-05 01:50:20,351 INFO [config.packaging.ModulePackageManager] [localhost-startStop-1] Alfresco / Google Docs Share Module, 3.1.0, The Share side artifacts of the Alfresco / Google Docs Integration.
share_1 |
solr6_1 | 2020-08-05 01:50:20.812 WARN (Thread-12) [ x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
solr6_1 | 2020-08-05 01:50:21.158 WARN (Thread-12) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/archive'
share_1 | 2020-08-05 01:50:21,795 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
share_1 | 2020-08-05 01:50:21,812 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
share_1 | 2020-08-05 01:50:21,813 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
share_1 | 2020-08-05 01:50:21,816 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
solr6_1 | 2020-08-05 01:50:22.644 WARN (searcherExecutor-7-thread-1-processing-x:alfresco) [ x:alfresco] o.a.s.c.SolrContentStore /opt/alfresco-search-services/contentstore will be used as a default path if solr.content.dir property is not defined
solr6_1 | 2020-08-05 01:50:22.937 ERROR (searcherExecutor-7-thread-1-processing-x:alfresco) [ x:alfresco] o.a.s.t.AbstractTracker Model tracking failed for core: alfresco
solr6_1 | java.net.ConnectException: Connection refused (Connection refused)
solr6_1 | at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
solr6_1 | at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
solr6_1 | at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
solr6_1 | at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
solr6_1 | at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
solr6_1 | at java.base/java.net.Socket.connect(Socket.java:591)
solr6_1 | at java.base/java.net.Socket.connect(Socket.java:540)
solr6_1 | at java.base/java.net.Socket.<init>(Socket.java:436)
solr6_1 | at java.base/java.net.Socket.<init>(Socket.java:288)
solr6_1 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
solr6_1 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
solr6_1 | at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
solr6_1 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
solr6_1 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
solr6_1 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
solr6_1 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
solr6_1 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
solr6_1 | at org.alfresco.httpclient.AbstractHttpClient.executeMethod(AbstractHttpClient.java:135)
solr6_1 | at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:111)
solr6_1 | at org.alfresco.httpclient.HttpClientFactory$DefaultHttpClient.sendRequest(HttpClientFactory.java:432)
solr6_1 | at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1191)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:291)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:249)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:271)
solr6_1 | at org.alfresco.solr.lifecycle.SolrCoreLoadRegistration.registerForCore(SolrCoreLoadRegistration.java:107)
solr6_1 | at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(SolrCoreLoadListener.java:44)
solr6_1 | at org.apache.solr.core.SolrCore.lambda$getSearcher$15(SolrCore.java:2249)
solr6_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
solr6_1 | at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
solr6_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
solr6_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
solr6_1 | at java.base/java.lang.Thread.run(Thread.java:834)
solr6_1 | 2020-08-05 01:50:22.938 WARN (Thread-12) [ x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
solr6_1 | 2020-08-05 01:50:23.022 WARN (searcherExecutor-21-thread-1-processing-x:alfresco) [ x:alfresco] o.a.s.c.SolrContentStore /opt/alfresco-search-services/contentstore will be used as a default path if solr.content.dir property is not defined
share_1 | 2020-08-05 01:50:26,161 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 393 Web Scripts (+0 failed), 411 URLs
share_1 | 2020-08-05 01:50:26,167 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
share_1 | 2020-08-05 01:50:26,172 INFO [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
alfresco_1 | 05-Aug-2020 01:50:26.265 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
share_1 | 2020-08-05 01:50:26,351 INFO [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Surf Container Web Script Container (in 4521.0957ms)
share_1 | 2020-08-05 01:50:26,606 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
share_1 | 2020-08-05 01:50:26,622 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
share_1 | 05-Aug-2020 01:50:27.215 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/share] has finished in [46,329] ms
share_1 | 05-Aug-2020 01:50:27.219 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
share_1 | 05-Aug-2020 01:50:27.269 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
share_1 | 05-Aug-2020 01:50:27.272 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 47373 ms
solr6_1 | 2020-08-05 01:50:30.040 WARN (org.alfresco.solr.AlfrescoCoreAdminHandler@1c6e0a08_Worker-2) [ ] o.a.s.t.AbstractTracker Tracking communication timed out for AclTracker - alfresco
solr6_1 | 2020-08-05 01:50:30.041 WARN (org.alfresco.solr.AlfrescoCoreAdminHandler@1c6e0a08_Worker-3) [ ] o.a.s.t.AbstractTracker Tracking communication timed out for AclTracker - archive
solr6_1 | 2020-08-05 01:50:30.040 WARN (org.alfresco.solr.AlfrescoCoreAdminHandler@1c6e0a08_Worker-1) [ ] o.a.s.t.AbstractTracker Tracking communication timed out for ModelTracker - alfresco
alfresco_1 | 2020-08-05 01:50:38,264 WARN [heartbeat.datasender.HBDataSenderServiceBuilder] [localhost-startStop-1] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported.
alfresco_1 | 2020-08-05 01:50:38,465 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
alfresco_1 | 2020-08-05 01:50:38,465 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
alfresco_1 | 2020-08-05 01:50:38,465 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db
alfresco_1 | 2020-08-05 01:50:38,798 INFO [alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbcSmiley Tongueostgresql://postgres:5432/alfresco' with user 'alfresco'.
alfresco_1 | 2020-08-05 01:50:38,798 INFO [alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 11.4 (Debian 11.4-1.pgdg90+1)
solr6_1 | 2020-08-05 01:50:40.004 WARN (org.alfresco.solr.AlfrescoCoreAdminHandler@1c6e0a08_Worker-12) [ ] o.a.s.t.AbstractTracker Tracking communication timed out for AclTracker - alfresco
solr6_1 | 2020-08-05 01:50:40.028 WARN (org.alfresco.solr.AlfrescoCoreAdminHandler@1c6e0a08_Worker-22) [ ] o.a.s.t.AbstractTracker Tracking communication timed out for ModelTracker - alfresco
solr6_1 | 2020-08-05 01:50:40.032 WARN (org.alfresco.solr.AlfrescoCoreAdminHandler@1c6e0a08_Worker-13) [ ] o.a.s.t.AbstractTracker Tracking communication timed out for AclTracker - archive
alfresco_1 | 2020-08-05 01:50:40,746 ERROR [content.transform.LocalTransformServiceRegistry] [QuartzScheduler_Worker-2] 07050000 Failed to connect or to read the response from T-Engine on http://alfresco-pdf-renderer:8099/transform/config
alfresco_1 | 2020-08-05 01:50:40,751 ERROR [content.transform.LocalTransformServiceRegistry] [QuartzScheduler_Worker-2] 07050001 Failed to connect or to read the response from T-Engine on http://tika:8099/transform/config
alfresco_1 | 2020-08-05 01:50:40,762 ERROR [content.transform.LocalTransformServiceRegistry] [QuartzScheduler_Worker-2] 07050002 Failed to connect or to read the response from T-Engine on http://imagemagick:8099/transform/config
alfresco_1 | 2020-08-05 01:50:40,768 ERROR [content.transform.LocalTransformServiceRegistry] [QuartzScheduler_Worker-2] 07050003 Failed to connect or to read the response from T-Engine on http://transform-misc:8099/transform/config
alfresco_1 | 2020-08-05 01:50:40,771 ERROR [content.transform.LocalTransformServiceRegistry] [QuartzScheduler_Worker-2] 07050004 Failed to connect or to read the response from T-Engine on http://libreoffice:8099/transform/config
alfresco_1 | 2020-08-05 01:50:41,542 ERROR [content.transform.StringExtractingContentTransformer] [localhost-startStop-1] Legacy transformer.StringExtracter is not available for transformations. 07050005 MiscellaneousTransformers check failed to connect or to read the response
alfresco_1 | 2020-08-05 01:50:41,577 ERROR [content.transform.TikaPoweredContentTransformer] [localhost-startStop-1] Legacy transformer.PdfBox is not available for transformations. 07050006 Tika check failed to connect or to read the response
alfresco_1 | 2020-08-05 01:50:44,917 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]

1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator

Re: Alfresco 6.2 docker -compose installation error

Jump to solution

Seems you are trying to change the default port from 8080 to 8088 for acs and share and changed postgres port from default 5432 to 5435.

The error is basically, acs service could not be connetcted from other services due to port change. Look at this particular line in the log: 

Starting ProtocolHandler ["http-nio-8080"]

ACS and share still starts on 8080 port.

Changing these port number values in docker-compose.yml will simply not work. The default ports are exposed within the images specially the tomcat ports which ships with acs and share. You have to update those ports in server.xml.

Refer this post for more details, it has step by step details:

https://javaworld-abhinav.blogspot.com/2020/07/change-alfresco-share-proxy-and-db.html

Another related post :

https://hub.alfresco.com/t5/alfresco-content-services-forum/error-with-the-changing-of-the-default-p...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)

View solution in original post

4 Replies
Highlighted
Intermediate II

Re: Alfresco 6.2 docker -compose installation error

Jump to solution

1.You have changed all T-Engines reference port to 8099 which is wrong,each T-Engine should have it's own port
2.Check docker-compose.yml of transformation service to make sure that all T-Engine ports are changed as you wanted

Highlighted
Moderator
Moderator

Re: Alfresco 6.2 docker -compose installation error

Jump to solution

Seems you are trying to change the default port from 8080 to 8088 for acs and share and changed postgres port from default 5432 to 5435.

The error is basically, acs service could not be connetcted from other services due to port change. Look at this particular line in the log: 

Starting ProtocolHandler ["http-nio-8080"]

ACS and share still starts on 8080 port.

Changing these port number values in docker-compose.yml will simply not work. The default ports are exposed within the images specially the tomcat ports which ships with acs and share. You have to update those ports in server.xml.

Refer this post for more details, it has step by step details:

https://javaworld-abhinav.blogspot.com/2020/07/change-alfresco-share-proxy-and-db.html

Another related post :

https://hub.alfresco.com/t5/alfresco-content-services-forum/error-with-the-changing-of-the-default-p...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)

View solution in original post

Highlighted
Member II

Re: Alfresco 6.2 docker -compose installation error

Jump to solution

Hi Abhinav,

Thanks for your quick responce, I have changed the custom ports in docker-compose.yml and dockerfile for acs, share , proxy and postgress. Tomcat Starting ProtocolHandler ["http-nio-8080"] is  updated based on the custom port config.

In my working environment,  solr default port 8983 is occupied , I need to change the solr default port to custom port.

alfresco:

build:
dockerfile: ./DockerFile
context: ./configs-to-override/alfresco
mem_limit: 1500m
environment:
JAVA_OPTS: "
-Dsolr.host=solr6
-Dsolr.port=8983  

solr6:
image: alfresco/alfresco-search-services:1.4.0
mem_limit: 2g
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=7080
#Alfresco needs to know how to call solr
- SOLR_SOLR_HOST=solr6
- SOLR_SOLR_PORT=8983
#Create the default alfresco and archive cores
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
#HTTP by default
- ALFRESCO_SECURE_COMMS=none
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port

 

Highlighted
Moderator
Moderator

Re: Alfresco 6.2 docker -compose installation error

Jump to solution

Replied on the other thread you created, check response here: https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-config-custom-solr-port-while-alf...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)