Hi There,
when starting the docker-compose up of the alfresco container
the share application starts I get the UI but i am told tha the admin, admin is not correct and in my console i have the following message:
solr6_1 | org.alfresco.error.AlfrescoRuntimeException: 05080054 GetModelsDiff return status is 404
solr6_1 | at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1181)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:292)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:250)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:210)
solr6_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:205)
solr6_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
solr6_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
solr6_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Thanks for Help
It looks like Alfresco service didn't started properly. Try to start only Alfresco service in order to get the cause of the problem.
Also checkout this post : https://hub.alfresco.com/t5/alfresco-content-services-forum/can-t-login-in-alfresco-when-deployed-us...
You may get some pointers.
Thanks a lot,
Do you please have a solution for cors issues when i try to consume webscript from an alfresco 6.2 (docker linux)
i get the following error:
14-Jun-2021 07:22:34.506 INFO [JobLockService1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.alfresco.repo.lock.JobLockServiceImpl$4]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.alfresco.repo.lock.JobLockServiceImpl$4]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1380)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1368)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1182)
at org.alfresco.repo.lock.JobLockServiceImpl.releaseLockVerify(JobLockServiceImpl.java:470)
at org.alfresco.repo.lock.JobLockServiceImpl$2.run(JobLockServiceImpl.java:385)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
14-Jun-2021 07:28:44.678 INFO [Thread-52] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
14-Jun-2021 07:28:44.684 INFO [Thread-52] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
14-Jun-2021 07:28:44.690 INFO [Thread-52] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
14-Jun-2021 07:28:44.741 INFO [Thread-52] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
14-Jun-2021 07:28:44.744 INFO [Thread-52] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
14-Jun-2021 07:28:44.751 INFO [Thread-52] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
14-Jun-2021 07:28:44.754 INFO [Thread-52] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
Like it was indicated earlier, your logs again indicates that service did not started correctly.
Could you please share the docker-compose.yml file here? How much memory you have allocated ? Did you tried comparing the docker-compose.yml with this one: https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/6.2.N-docker-compose.yml
Also share the screenshot of following commands:
docker ps -a
docker stats
Hi thanks for your reactivity,
1. concerning the memory i have 12 GB
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
5f1c7914c23d alfresco_proxy_1 0.00% 4.16MiB / 128MiB 3.25% 4.85MB / 4.81MB 0B / 24.6kB 3
fe336ccd144a alfresco_content-app_1 0.00% 6.316MiB / 256MiB 2.47% 21.3kB / 200kB 12.3kB / 12.3kB 5
ca8463ceb1e4 alfresco_alfresco_1 0.97% 3.576GiB / 4.312GiB 82.92% 38.1MB / 50.5MB 0B / 4.1kB 139
e7572ce79f3e alfresco_alfresco-pdf-renderer_1 0.15% 220.6MiB / 512MiB 43.09% 13.2kB / 5.41kB 0B / 0B 30
f07fe6db8d00 alfresco_tika_1 0.13% 251.1MiB / 512MiB 49.04% 26.2kB / 157kB 0B / 0B 28
0174e4bceb3a alfresco_activemq_1 0.26% 270.3MiB / 1GiB 26.39% 97.2kB / 103kB 0B / 17.6MB 52
5596bad13aaa alfresco_postgres_1 0.04% 67.68MiB / 1.078GiB 6.13% 34.1MB / 24.8MB 0B / 16.5MB 18
b71f00b8c75f alfresco_transform-misc_1 0.14% 255.4MiB / 512MiB 49.87% 20.8kB / 18.7kB 0B / 0B 28
e4a06f8c7fb3 alfresco_imagemagick_1 0.13% 242.9MiB / 512MiB 47.43% 17.9kB / 388kB 0B / 0B 30
5af502e696ae alfresco_libreoffice_1 0.14% 274.4MiB / 512MiB 53.59% 14.2kB / 87kB 0B / 205kB 39
7c4f50909b9f alfresco_ocrmypdf_1 0.00% 2.82MiB / 512MiB 0.55% 9.38kB / 0B 0B / 0B 1
32174258ac0a alfresco_share_1 0.16% 640.2MiB / 1.078GiB 57.99% 320kB / 4.41MB 4.1kB / 98.3kB 45
142f8ed7e9e3 alfresco_solr6_1 0.47% 982.7MiB / 2.156GiB 44.51% 16.3MB / 12.5MB 0B / 176kB 96
2. concerning the yml
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
version: "2"
services:
alfresco:
build:
context: ./alfresco
args:
ALFRESCO_TAG: ${ALFRESCO_CE_TAG}
DB: postgres
API_EXPLORER_TAG: ${API_EXPLORER_TAG}
mem_limit: 4416m
depends_on:
- postgres
environment:
JAVA_OPTS : '
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.driver=org.postgresql.Driver
-Ddb.url=jdbcostgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.baseUrl=/solr
-Dindex.subsystem.name=solr6
-Dalfresco.host=${SERVER_NAME}
-Dalfresco.port=8080
-Dshare.host=${SERVER_NAME}
-Dshare.port=8080
-Daos.baseUrlOverwrite=http://${SERVER_NAME}/alfresco/aos
-Dmessaging.broker.url="failovernio://activemq:61616)?timeout=3000&jms.useCompression=true"
-Ddeployment.method=DOCKER_COMPOSE
-Dcsrf.filter.enabled=false
-Dopencmis.server.override=true
-Dopencmis.server.value=http://${SERVER_NAME}:8080
-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
-Dalfresco.restApi.basicAuthScheme=true
-Dauthentication.protection.enabled=false
-XX:+UseG1GC -XX:+UseStringDeduplication
-Xms3904m -Xmx3904m
-Docr.command=/opt/alfresco/bin/ocrmypdf.sh
-Docr.output.verbose=true
-Docr.output.file.prefix.command=
-Docr.extra.commands="-j1 --author keensoft --rotate-pages -l spa+eng+fra --deskew --clean --skip-text"
-Docr.server.os=linux
'
volumes:
- ./data/alf-repo-data:/usr/local/tomcat/alf_data
- ./logs/alfresco:/usr/local/tomcat/logs
- ./data/ocr/input:/ocr_input
- ./data/ocr/output:/ocr_output
alfresco-pdf-renderer:
image: alfresco/alfresco-pdf-renderer:${TRANSFORM_ENGINE_TAG}
mem_limit: 512m
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8090:8090
imagemagick:
image: alfresco/alfresco-imagemagick:${TRANSFORM_ENGINE_TAG}
mem_limit: 512m
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8091:8090
libreoffice:
image: alfresco/alfresco-libreoffice:${TRANSFORM_ENGINE_TAG}
mem_limit: 512m
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8092:8090
tika:
image: alfresco/alfresco-tika:${TRANSFORM_ENGINE_TAG}
mem_limit: 512m
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8093:8090
transform-misc:
image: alfresco/alfresco-transform-misc:${TRANSFORM_ENGINE_TAG}
mem_limit: 512m
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"
ports:
- 8094:8090
share:
build:
context: ./share
args:
SHARE_TAG: ${SHARE_TAG}
SERVER_NAME: ${SERVER_NAME}
mem_limit: 1104m
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
CSRF_FILTER_REFERER: "http://srv-tunisre-mm/.*"
CSRF_FILTER_ORIGIN: "http://srv-tunisre-mm"
JAVA_OPTS: "
-Xms976m -Xmx976m
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"
volumes:
- ./logs/share:/usr/local/tomcat/logs
postgres:
image: postgres:${POSTGRES_TAG}
mem_limit: 1104m
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
command: "
postgres
-c max_connections=200
-c logging_collector=on
-c log_min_messages=LOG
-c log_directory=/var/log/postgresql"
ports:
- 5432:5432
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
- ./logs/postgres:/var/log/postgresql
solr6:
build:
context: ./search
args:
SEARCH_TAG: $SEARCH_CE_TAG
SOLR_HOSTNAME: solr6
ALFRESCO_HOSTNAME: alfresco
ALFRESCO_COMMS: none
CROSS_LOCALE: "true"
mem_limit: 2208m
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"
SOLR_JAVA_MEM: "-Xms1952m -Xmx1952m"
SOLR_OPTS: "
-XX:NewSize=848m
-XX:MaxNewSize=848m
"
volumes:
- ./data/solr-data:/opt/alfresco-search-services/data
activemq:
image: alfresco/alfresco-activemq:${ACTIVEMQ_TAG}
mem_limit: 1g
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP
content-app:
image: alfresco/alfresco-content-app:${ACA_TAG}
mem_limit: 256m
depends_on:
- alfresco
- share
# HTTP proxy to provide HTTP Default port access to services
# SOLR API and SOLR Web Console are protected to avoid unauthenticated access
proxy:
image: angelborroy/acs-proxy:1.2.0
mem_limit: 128m
environment:
- PORT=8080
depends_on:
- alfresco
- solr6
- share
- content-app
volumes:
- ./config/nginx.htpasswd:/etc/nginx/conf.d/nginx.htpasswd
ports:
- 8080:8080
ocrmypdf:
build: ./ocrmypdf
mem_limit: 512m
hostname: ocrmypdf
volumes:
- ./data/ocr/input:/ocr_input
- ./data/ocr/output:/ocr_output
I tried to add the cors parameters in the JAVA_OPTS : '
-Dcors.enabled=true
-Dcors.allowed.origins=*
it does not work
i tried to change the web.xml file of the docker container
do you have other suggestions to get aroud the cors problem when trying to use alfresco from third part application.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.