07-09-2021 07:50 AM
I am intergrating alfresco communitty edition with LDAP. i tried all options available but could not able to resolve the issue.i already defined volumes property with it location but still getting the error.please any who can help me out
Docker.compose YML
version: "2"
services:
alfresco:
image: alfresco/alfresco-content-repository-community:7.0.0
mem_limit: 1500m
environment:
JAVA_TOOL_OPTIONS: "
-Dencryption.keystore.type=JCEKS
-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
-Dencryption.keyAlgorithm=DESede
-Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore
-Dmetadata-keystore.password=mp6yc0UD9e
-Dmetadata-keystore.aliases=metadata
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
-Dmetadata-keystore.metadata.algorithm=DESede
"
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.http.connection.timeout=1000
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=127.0.0.1
-Dshare.port=8080
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
-Dmessaging.broker.url=\"failovernio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Ddeployment.method=DOCKER_COMPOSE
-DlocalTransform.core-aio.url=http://transform-core-aio:8090/
-Dcsrf.filter.enabled=false
-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
-Dauthentication.chain=alfinst:alfrescoNtlm,ldap-ad1:ldap-ad
-Dldap.authentication.allowGuestLogin=false
-Dldap.authentication.userNameFormat=%s@nust.edu.pk
-Dldap.authentication.java.naming.provider.url=ldap://10.250.64.73:389
-Dldap.authentication.defaultAdministratorUserNames=Administrator,alfresco
-Dldap.synchronization.java.naming.security.principal=demo.ict
-Dldap.synchronization.java.naming.security.credentials=demo
-Dldap.synchronization.groupSearchBase=DC=mydomain,DC=local
-Dldap.synchronization.userSearchBase=DC=mydomain,DC=local
"
volumes: "
- ./data/alfresco/alf_data:/usr/local/tomcat/alf_data
"
transform-core-aio:
image: alfresco/alfresco-transform-core-aio:2.3.10
mem_limit: 1536m
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
ports:
- 8090:8090
share:
image: alfresco/alfresco-share:7.0.0
mem_limit: 1g
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
JAVA_OPTS: "
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"
postgres:
image: postgres:13.1
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
solr6:
image: alfresco/alfresco-search-services:2.0.1
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
ports:
- 8083:8983 #Browser port
activemq:
image: alfresco/alfresco-activemq:5.16.1
mem_limit: 1g
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP
proxy:
image: alfresco/alfresco-acs-nginx:3.1.1
mem_limit: 128m
environment:
DISABLE_PROMETHEUS: "true"
DISABLE_SYNCSERVICE: "true"
DISABLE_ADW: "true"
depends_on:
- alfresco
ports:
- 8080:8080
links:
- alfresco
- share
ERROR Details
mplete
alfresco_1 | 2021-07-09 11:25:33,104 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1]
alfresco_1 | 2021-07-09 11:25:33,224 WARN [authentication.ldap.LDAPInitialDirContextFactoryImpl] [main] LDAP server supports anonymous bind ldap://10.250.64.73:389
alfresco_1 | 2021-07-09 11:25:33,337 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1] complete
alfresco_1 | 2021-07-09 11:25:37,137 INFO [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor Repository Template Processor for extension ftl
alfresco_1 | 2021-07-09 11:25:37,142 INFO [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor Repository Script Processor for extension js
alfresco_1 | 2021-07-09 11:25:39,536 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
alfresco_1 | 2021-07-09 11:25:39,618 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete
alfresco_1 | 2021-07-09 11:25:39,719 INFO [domain.schema.SchemaBootstrap] [main] Connecting to database: jdbcostgresql://postgres:5432/alfresco, UserName=alfresco, PostgreSQL JDBC Driver
alfresco_1 | 2021-07-09 11:25:39,719 INFO [domain.schema.SchemaBootstrap] [main] Schema managed by database dialect org.alfresco.repo.domain.dialect.PostgreSQLDialect.
alfresco_1 | 2021-07-09 11:25:39,778 INFO [domain.schema.SchemaBootstrap] [main] Applied patches detected: 223
alfresco_1 | 2021-07-09 11:25:39,848 INFO [domain.schema.SchemaBootstrap] [main] Checking and patching Alfresco tables took 70 ms
alfresco_1 | 2021-07-09 11:25:39,850 INFO [domain.schema.SchemaBootstrap] [main] Activiti tables need to be checked for patches
alfresco_1 | 2021-07-09 11:25:39,889 INFO [domain.schema.SchemaBootstrap] [main] Checking and patching Activiti tables took 39 ms
alfresco_1 | 2021-07-09 11:25:39,929 INFO [domain.schema.SchemaBootstrap] [main] Checking that all patches have been applied took 39 ms
alfresco_1 | 2021-07-09 11:25:39,929 INFO [domain.schema.SchemaBootstrap] [main] Updating the DB schema took 206 ms
alfresco_1 | 2021-07-09 11:25:39,931 INFO [domain.schema.SchemaBootstrap] [main] No changes were made to the schema.
alfresco_1 | 2021-07-09 11:25:40,989 WARN [repo.admin.ConfigurationChecker] [main] 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 | 2021-07-09 11:25:40,990 INFO [repo.admin.ConfigurationChecker] [main] The root data directory ('dir.root') is: ./alf_data
alfresco_1 | 2021-07-09 11:25:41,014 ERROR [repo.admin.ConfigurationChecker] [main] CONTENT INTEGRITY ERROR: System content not found in content store: 'store://2021/6/24/5/56/d369cd7f-4b22-490c-8545-3d3cb2248057.bin'
alfresco_1 | 2021-07-09 11:25:41,015 ERROR [repo.admin.ConfigurationChecker] [main] Ensure that the 'dir.root' property './alf_data' is pointing to the correct data location.
alfresco_1 | 2021-07-09 11:25:41,030 ERROR [web.context.ContextLoader] [main] 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:602)
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:426)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:943)
alfresco_1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
alfresco_1 | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
alfresco_1 | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
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:4716)
alfresco_1 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5177)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
alfresco_1 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
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.base/java.security.AccessController.doPrivileged(Native Method)
alfresco_1 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:688)
alfresco_1 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
alfresco_1 | at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)
alfresco_1 | at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1866)
alfresco_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
alfresco_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
alfresco_1 | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
alfresco_1 | at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
alfresco_1 | at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
alfresco_1 | at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
alfresco_1 | at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
alfresco_1 | at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
alfresco_1 | at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
alfresco_1 | at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
alfresco_1 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
alfresco_1 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
alfresco_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
alfresco_1 | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
alfresco_1 | at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
alfresco_1 | at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
alfresco_1 | at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
alfresco_1 | at org.apache.catalina.core.StandardService.startInternal(StandardService.java:434)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
alfresco_1 | at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
alfresco_1 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
alfresco_1 | at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
alfresco_1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
alfresco_1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
alfresco_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alfresco_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alfresco_1 | at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
alfresco_1 | at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
alfresco_1 | 09-Jul-2021 11:25:41.049 SEVERE [main] 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-2021 11:25:41.052 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/alfresco] startup failed due to previous errors
alfresco_1 | 2021-07-09 11:25:41,105 WARN [context.support.XmlWebApplicationContext] [main] Exception thrown from ApplicationListener handling ContextClosedEvent
alfresco_1 | java.lang.NullPointerException
07-10-2021 12:26 PM
Why does your database have no volume attached for persistent state? Whenever you shut down / kill the DB container you will effectively loose all metadata, permissions, users etc. in your Alfresco instance and have to start from scratch.
Did you add the volume to your Alfresco service after starting it without one, and are still using the same database? If so, then this error is to be expected. The state of the database contains a reference to a file in the alf_data/contentstore. When you added the volume and restarted the Alfresco service, the container was actually killed (deleting all local data) and re-created with the (empty) volume. Now when Alfresco starts up, it wants to validate data found in the database, and cannot find the expected file(s).
Maybe you should look at https://github.com/Alfresco/alfresco-docker-installer which helps you set up a ready to use Docker Compose-based ACS instance with the relevant volumes for persistent state etc.. And anything that the project creates can still be customised to fit your specific needs, but at least you have a working based from which to start.
Explore our Alfresco products with the links below. Use labels to filter content by product module.