Olá! Bom dia!
Prezados, tenho uma instalação do Alfresco 6.2 em docker. Ocorre que estou tendo problemas de paradas do container REPO... passa dias ok, mas em outros dias tenho este erro e o REPO pára...
Alguém pode dá um norte do que pode ser...
Hi! Good Morning!
Dear, I have an installation of Alfresco 6.2 in docker. It happens that I'm having problems with REPO container stops ... it goes ok days, but on other days I have this error and the REPO stops ...
Has anyone seen something like this ...
18/02/2021 15:46:4618-Feb-2021 18:46:46.264 INFO [http-nio-8080-exec-8] org.apache.coyote.AbstractProcessor.parseHost The host [:8080] is not valid
18/02/2021 15:46:46 Note: further occurrences of request parsing errors will be logged at DEBUG level.
18/02/2021 15:46:46 java.lang.IllegalArgumentException
18/02/2021 15:46:46 at org.apache.tomcat.util.http.parser.Host.parse(Host.java:73)
18/02/2021 15:46:46 at org.apache.tomcat.util.http.parser.Host.parse(Host.java:40)
18/02/2021 15:46:46 at org.apache.coyote.AbstractProcessor.parseHost(AbstractProcessor.java:293)
18/02/2021 15:46:46 at org.apache.coyote.http11.Http11Processor.prepareRequest(Http11Processor.java:1201)
18/02/2021 15:46:46 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:775)
18/02/2021 15:46:46 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
18/02/2021 15:46:46 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
18/02/2021 15:46:46 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
18/02/2021 15:46:46 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
18/02/2021 15:46:46 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
18/02/2021 15:46:46 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
18/02/2021 15:46:46 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
18/02/2021 15:46:46 at java.base/java.lang.Thread.run(Thread.java:834)
Hi @cristinamr !
Nada fora do padrão!
Abaixo segue o docker-compose usado....
No caso de ser um ambiente em Docker... o alfresco-global.properties fica em branco dentro do container, não é? As alterações que são necessárias são feitas nos parâmetros diretamente no docker-compose.yml.
Obrigado pela atençao em responder!
version: "2"
volumes:
postgresql-data:
postgresql-backups:
search-cores-alfresco:
search-cores-archive:
search-contentstore:
repository-data:
repository-logs:
share-logs:
services:
postgres:
container_name: alfresco-comm_postgresql
image: postgres:11.7
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:
- 5432:5432
volumes:
- postgresql-data:/var/lib/postgresql/data
- postgresql-backups:/var/backups
alfresco:
container_name: alfresco-comm_repository
image: alfresco/alfresco-governance-repository-community:V3.3.1.x-latest
mem_limit: 8192m
environment:
JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbcostgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=myhost
-Dshare.port=80
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Daos.baseUrlOverwrite=http://myhost:8080/alfresco/aos
-Dmessaging.broker.url=\"failovernio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Ddeployment.method=DOCKER_COMPOSE
-Dlocal.transform.service.enabled=true
-DlocalTransform.pdfrenderer.url=http://alfresco-pdf-renderer:8090/
-DlocalTransform.imagemagick.url=http://imagemagick:8090/
-DlocalTransform.libreoffice.url=http://libreoffice:8090/
-DlocalTransform.tika.url=http://tika:8090/
-DlocalTransform.misc.url=http://transform-misc:8090/
-Dlegacy.transform.service.enabled=true
-Dalfresco-pdf-renderer.url=http://alfresco-pdf-renderer:8090/
-Djodconverter.url=http://libreoffice:8090/
-Dimg.url=http://imagemagick:8090/
-Dtika.url=http://tika:8090/
-Dtransform.misc.url=http://transform-misc:8090/
-Dcsrf.filter.enabled=false
-Xms8192m
-Xmx8192m
-Dmail.host=smtp.gmail.com
-Dmail.port=465
-Dmail.username=mycustomemail@gmail.com
-Dmail.password=pass
-Dmail.protocol=smtps
-Dmail.smtps.starttls.enable=true
-Dmail.smtps.auth=true
"
volumes:
- repository-data:/usr/local/tomcat/alf_data
- repository-logs:/usr/local/tomcat/logs
share:
container_name: alfresco-comm_share
image: mycustomimage\alfresco-governance-share-community:V3.3.1.x-latest
mem_limit: 1g
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
JAVA_OPTS: "
-Xms500m
-Xmx500m
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"
ports:
- 80:8080
volumes:
- share-logs:/usr/local/tomcat/logs
alfresco-pdf-renderer:
container_name: alfresco-comm_pdf-renderer
image: alfresco/alfresco-pdf-renderer:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8090:8090
imagemagick:
container_name: alfresco-comm_imagemagick
image: alfresco/alfresco-imagemagick:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8091:8090
libreoffice:
container_name: alfresco-comm_libreoffice
image: alfresco/alfresco-libreoffice:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8092:8090
tika:
container_name: alfresco-comm_tika
image: alfresco/alfresco-tika:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8093:8090
transform-misc:
container_name: alfresco-comm_transform-misc
image: alfresco/alfresco-transform-misc:2.1.0
mem_limit: 1g
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8094:8090
solr6:
container_name: alfresco-comm_solr6
#image: alfresco/alfresco-search-services:1.4.0
#image: alfresco/alfresco-search-services:1.4.2
image: alfresco/alfresco-search-services:2.0.0-A8
mem_limit: 2g
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=8080
#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
volumes:
- search-cores-alfresco:/opt/alfresco-search-services/solrhome/alfresco
- search-cores-archive:/opt/alfresco-search-services/solrhome/archive
- search-contentstore:/opt/alfresco-search-services/contentstore
activemq:
container_name: alfresco-comm_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:
container_name: alfresco-comm_ngnix
image: alfresco/acs-community-ngnix:1.0.0
mem_limit: 128m
depends_on:
- alfresco
ports:
- 8080:8080
links:
- alfresco
- share
Boa tarde.
Como ainda não tenho experiência prática do Alfresco com Docker, não sei como posso ajudar.
Nós continuamos usando Alfresco instalado a partir do zip.
Acho que seu problema está aqui:
share:
...
ports: - 80:8080
...
Você tem essa configuração no bloco de Share, mas ela não deveria estar lá e também não está especificada.
Por exemplo, no meu caso eu configurei https e tenho isso no bloco de proxy:
proxy:
...
ports: - 80:80 - 443:443
...
Portanto, no seu caso, você não deve especificar no bloco de Share. Em vez disso, você pode usar a configuração normal, como aqui.
Você pode verificar quais portas está usando com esses comandos:
$ docker-compose up -d $ docker ps --format '{{.Names}}\t{{.Image}}\t{{.Ports}}'
Verifique-os e diga-nos.
Olá! @cristinamr bom dia!
Realmente, pode ser isto mesmo. Vendo aqui outro tutoriais notei estes detalhes também.
Apliquei as mudanças no compose e subi o ambiente novamente. Vou aguardar aqui alguns dias para ver ser vai ocorrer o erro e parada do REPO novamente.
Posto as novidades aqui!
Muito Obrigado pela sua observação.
Olá!
REPO container ainda parando e com esta linhas finais no log...
24/02/2021 13:29:2124-Feb-2021 16:29:21.570 INFO [http-nio-8080-exec-7] org.apache.coyote.AbstractProcessor.parseHost The host [:80] is not valid
24/02/2021 13:29:21 Note: further occurrences of request parsing errors will be logged at DEBUG level.
24/02/2021 13:29:21 java.lang.IllegalArgumentException
24/02/2021 13:29:21 at org.apache.tomcat.util.http.parser.Host.parse(Host.java:73)
24/02/2021 13:29:21 at org.apache.tomcat.util.http.parser.Host.parse(Host.java:40)
24/02/2021 13:29:21 at org.apache.coyote.AbstractProcessor.parseHost(AbstractProcessor.java:293)
24/02/2021 13:29:21 at org.apache.coyote.http11.Http11Processor.prepareRequest(Http11Processor.java:1201)
24/02/2021 13:29:21 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:775)
24/02/2021 13:29:21 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
24/02/2021 13:29:21 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
24/02/2021 13:29:21 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
24/02/2021 13:29:21 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
24/02/2021 13:29:21 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
24/02/2021 13:29:21 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
24/02/2021 13:29:21 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
24/02/2021 13:29:21 at java.base/java.lang.Thread.run(Thread.java:834)
Discussions about Alfresco Content Services and Alfresco Process Services in Portuguese
Related:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.