02-20-2021 11:38 PM
I am using docker-compose so all the answers about expanding the war wont work for me. And I don't understand why this is happening with the docker images. I am useing a custom image with almost nothing changed. the Docker file looks like this:
FROM alfresco/alfresco-content-repository-community ARG TOMCAT_DIR=/usr/local/tomcat USER root # Add services configuration to alfresco-global.properties RUN echo -e '\n\ dir.root=/usr/local/tomcat/alf_data\n\ alfresco.host=localhost\n\ alfresco.port=8080\n\ alfresco.protocol=http\n\ db.driver=com.mysql.cj.jdbc.Driver\n\ db.url=jdbc:mysql://192.168.0.11:3366/alfresco\n\ db.host=localhost\n\ db.port=3366\n\ db.name=alfresco\n\ db.user=alfresco\n\ db.password=alfresco\n\ \n\ share.host=localhost\n\ share.port=8080\n\ share.protocol=http\n\ \n\ ftp.enabled=true\n\ ftp.port=2121\n\ \n\ ' >> /usr/local/tomcat/shared/classes/alfresco-global.properties RUN mkdir -p $TOMCAT_DIR/amps RUN mkdir -p $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib COPY jars/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/ COPY amps/*.amp $TOMCAT_DIR/amps/ RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force
but the stack trace is weird too:
alfresco_1 | Caused by: org.alfresco.error.AlfrescoRuntimeException: 01210003 Failed to create key: metadata alfresco_1 | in key store: alfresco_1 | Location: classpath:alfresco/keystore/keystore alfresco_1 | Provider: null alfresco_1 | Type: pkcs12 alfresco_1 | at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:664) alfresco_1 | at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:915) alfresco_1 | at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:188) alfresco_1 | at org.alfresco.encryption.KeyStoreChecker.validateKeyStores(KeyStoreChecker.java:49) alfresco_1 | at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:73) alfresco_1 | ... 33 more alfresco_1 | Caused by: org.alfresco.error.AlfrescoRuntimeException: 01210002 Unable to get secret key: no key information is provided alfresco_1 | at org.alfresco.encryption.AlfrescoKeyStoreImpl.getSecretKey(AlfrescoKeyStoreImpl.java:775) alfresco_1 | at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:642) alfresco_1 | ... 37 more
that classpath looks wrong to me. And yes, I did a complete new database and cleared the alf-data directory.
Any ideas?
02-22-2021 03:41 AM
Use 6.2.0-ga Docker Image instead of latest for alfresco-content-repository-community
Explore our Alfresco products with the links below. Use labels to filter content by product module.