Hi guys,
I'm dealing with the Docker approach to start the new Alfresco 6 version. Unfortunately, none of the configurations I've tried so far works. Unfortunately again, the Early Access Program topics are now all private and not accessible anymore.
I'm not able to startup all necessary containers to be able to login. It always crashes and it looks like it's always related to the SOLR6 stuff.
This is a YAML file, supposed to be working (from GitHub - Alfresco/acs-deployment ). If I start it, I get the following errors (full log attached "docker-compose-up_acs_deployment.log"):
alfresco-pdf-renderer_1 | 2018-07-09 13:01:23.321 INFO 1 --- [ main] org.alfresco.transformer.Application : Started Application in 48.955 seconds (JVM running for 53.514)
solr6_1 | 2018-07-09 13:01:31.626 ERROR (Thread-12) [ x:alfresco] o.a.s.c.CoreContainer Error creating core [alfresco]: Error opening new searcher
solr6_1 | org.apache.solr.common.SolrException: Error opening new searcher
solr6_1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:903)
solr6_1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:776)
solr6_1 | at org.apache.solr.core.CoreContainer.create(CoreContainer.java:842)
solr6_1 | at org.apache.solr.core.CoreContainer.create(CoreContainer.java:779)
solr6_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.createAndRegisterNewCore(AlfrescoCoreAdminHandler.java:552)
solr6_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.newCore(AlfrescoCoreAdminHandler.java:458)
solr6_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.newDefaultCore(AlfrescoCoreAdminHandler.java:385)
solr6_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.setupNewDefaultCores(AlfrescoCoreAdminHandler.java:141)
solr6_1 | at org.alfresco.solr.AlfrescoCoreAdminHandler.lambda$startup$0(AlfrescoCoreAdminHandler.java:111)
solr6_1 | at java.lang.Thread.run(Thread.java:748)
solr6_1 | Caused by: org.apache.solr.common.SolrException: Error opening new searcher
solr6_1 | at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1820)
solr6_1 | at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1931)
solr6_1 | at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:992)
solr6_1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:876)
solr6_1 | ... 9 more
and later on:
2018-07-09 13:01:31.726 ERROR (Thread-12) [ x:alfresco] o.a.s.AlfrescoCoreAdminHandler Failed to create default alfresco cores (workspace/archive stores)
solr6_1 | org.apache.solr.common.SolrException: Error CREATEing SolrCore 'alfresco': Unable to create core [alfresco] Caused by: Lock held by this virtual machine: /opt/alfresco-search-services/data/alfresco/index/write.lock
Another try is the latest YAML file I'm using (without PDF renderer, libreoffice,...) based on: acs-community-deployment/docker-compose.yml at master · Alfresco/acs-community-deployment · GitHub. It doesn't work either. Logs below (and attached "docker-compose-up_acs_community_deployment.log")...
version: "2"
services:
alfresco:
image: alfresco/alfresco-content-repository-community:6.0.7-ga
mem_limit: 1500m
environment:
JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
-Dsolr.host=solr6
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=localhost
-Ddeployment.method=DOCKER_COMPOSE
-Dcsrf.filter.enabled=false
-Xms1g -Xmx1g
"
ports:
- 8082:8080 #Browser port
share:
image: alfresco/alfresco-share:6.0.b
mem_limit: 1g
environment:
- REPO_HOST=alfresco
- REPO_PORT=8080
- "CATALINA_OPTS= -Xms500m -Xmx500m"
ports:
- 8080:8080
postgres:
image: postgres:10.1
mem_limit: 1500m
environment:
- POSTGRES_PASSWORD=alfresco
- POSTGRES_USER=alfresco
- POSTGRES_DB=alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG
ports:
- 5432:5432
solr6:
image: alfresco/alfresco-search-services:1.2.0-RC1
mem_limit: 2500m
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=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port
This is the startup log with the first error:
alfresco_1 | 2018-07-09 12:32:23,647 WARN [repo.admin.ConfigurationChecker] [localhost-startStop-1] The 'dir.root' property is set to a relative path './alf_data'. 'dir.root' should be overridden to point to a specific folder.
alfresco_1 | 2018-07-09 12:32:23,647 INFO [repo.admin.ConfigurationChecker] [localhost-startStop-1] The root data directory ('dir.root') is: ./alf_data
alfresco_1 | 2018-07-09 12:32:23,715 ERROR [repo.admin.ConfigurationChecker] [localhost-startStop-1] CONTENT INTEGRITY ERROR: System content not found in content store: 'store://2018/7/6/9/18/09605d4c-f51c-4f20-9d74-e2128068b932.bin'
alfresco_1 | 2018-07-09 12:32:23,715 ERROR [repo.admin.ConfigurationChecker] [localhost-startStop-1] Ensure that the 'dir.root' property './alf_data' is pointing to the correct data location.
alfresco_1 | 09-Jul-2018 12:32:23.745 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
alfresco_1 | 09-Jul-2018 12:32:23.751 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/alfresco] startup failed due to previous errors
alfresco_1 | 2018-07-09 12:32:23,732 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
alfresco_1 | org.alfresco.error.AlfrescoRuntimeException: 06090018 Ensure that the 'dir.root' property './alf_data' is pointing to the correct data location.
alfresco_1 | at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:212)
alfresco_1 | at org.alfresco.repo.admin.ConfigurationChecker.access$0(ConfigurationChecker.java:167)
alfresco_1 | at org.alfresco.repo.admin.ConfigurationChecker$1$1.doWork(ConfigurationChecker.java:155)
alfresco_1 | at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
alfresco_1 | at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:151)
alfresco_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
alfresco_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:338)
alfresco_1 | at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:161)
alfresco_1 | at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
alfresco_1 | at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:221)
alfresco_1 | at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:186)
alfresco_1 | at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:206)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:353)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:887)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
alfresco_1 | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
alfresco_1 | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
alfresco_1 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
alfresco_1 | at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
alfresco_1 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4753)
alfresco_1 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5215)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
alfresco_1 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
alfresco_1 | at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129)
alfresco_1 | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
alfresco_1 | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
alfresco_1 | at java.security.AccessController.doPrivileged(Native Method)
alfresco_1 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:726)
alfresco_1 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
alfresco_1 | at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141)
alfresco_1 | at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
alfresco_1 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
alfresco_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
alfresco_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
alfresco_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
alfresco_1 | at java.lang.Thread.run(Thread.java:748)
And then, there thousands of SOLR errors:
alfresco_1 | 09-Jul-2018 12:32:25.734 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 85542 ms
solr6_1 | 2018-07-09 12:32:25.988 ERROR (searcherExecutor-7-thread-1-processing-x:archive) [ x:archive] o.a.s.t.AbstractTracker Model tracking failed for core: archive
solr6_1 | org.alfresco.error.AlfrescoRuntimeException: 06090000 archive 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:287)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:245)
solr6_1 | at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:267)
solr6_1 | at org.alfresco.solr.lifecycle.SolrCoreLoadRegistration.registerForCore(SolrCoreLoadRegistration.java:109)
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.util.concurrent.FutureTask.run(FutureTask.java:266)
solr6_1 | at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
solr6_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
solr6_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
solr6_1 | at java.lang.Thread.run(Thread.java:748)
solr6_1 | 2018-07-09 12:32:30.082 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@59d4cd39_Worker-3) [ ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - archive
solr6_1 | org.alfresco.error.AlfrescoRuntimeException: 06090001 api/solr/aclchangesets return status:404
solr6_1 | at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:169)
solr6_1 | at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:326)
solr6_1 | at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:303)
solr6_1 | at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
solr6_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:210)
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)
solr6_1 | 2018-07-09 12:32:30.171 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@59d4cd39_Worker-2) [ ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - alfresco
solr6_1 | org.alfresco.error.AlfrescoRuntimeException: 06090003 api/solr/aclchangesets return status:404
Any advice? Or does anybody found a configuration that's working? My overall goal is to install existing AMP files into the repo and share container (according this documentation: acs-packaging/create-custom-image-using-existing-docker-image.md at master · Alfresco/acs-packaging ... ).
I appreciate any inputs.
Thanks!
Mario
I followed Alfresco Documentation from this link: Deploying using Docker Compose
When I restarted ACS with the commands:
for stop: CTRL + C
for start: docker-compose up
I had the same error:
2018-07-09 13:01:31.726 ERROR (Thread-12) [ x:alfresco] o.a.s.AlfrescoCoreAdminHandler Failed to create default alfresco cores (workspace/archive stores)
solr6_1 | org.apache.solr.common.SolrException: Error CREATEing SolrCore 'alfresco': Unable to create core [alfresco] Caused by: Lock held by this virtual machine: /opt/alfresco-search-services/data/alfresco/index/write.lock
After that, I stopped and removed all containers with the command: docker-compose down
When I started ACS again (docker-compose up), I didn't have any errors. Both times, I was able to log in into Alfresco/Share/Solr.
It seems that there is a problem when you start ACS for the second time.
My OS is macOS High Sierra 10.13.6
Probably this can help you: https://github.com/keensoft/alfresco-docker-template/tree/master/templates/201806-GA
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.