cancel
Showing results for 
Search instead for 
Did you mean: 

Installation Community Edition 7.0 error (debian 10 installation)

Diniz21
Confirmed Champ
Confirmed Champ
  • OS : Debian BUSTER
  • Tomcat 9
  • OpenJDK 11
  • Postgresql 11
  • alfresco-content-services-community-distribution-7.0.0.zip

alfresco-global.properties

dir.root=/var/lib/alfresco/alf_data
dir.keystore=/var/lib/alfresco/alf_data/keystore/metadata-keystore
dir.contentstore=/var/lib/alfresco/alf_data/contentstore
dir.contentstore.deleted=/var/lib/alfresco/alf_data/contentstore.deleted
#

db.schema.update=true
transform.service.enabled=false
local.transform.service.enabled=false
legacy.transform.service.enabled=false

#
db.username=alfresco
db.password=alfresco@dz57
db.name=alfresco_qualif1_db
db.host=172.31.12.142
db.port=5432
db.driver=org.postgresql.Driver
db.url=jdbcSmiley Tongueostgresql://${db.host}:${db.port}/${db.name}

Log ALFRESCO

2021-10-11 16:46:06,353 WARN [org.springframework.web.context.support.XmlWebApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeTableCache' defined in class path resource [alfresco/cache-context.xml]: Cannot resolve reference to bean 'authorityBridgeDAO' while setting bean property 'authorityBridgeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 09110000 Failed to create store root: /opt/alf_data/contentstore.deleted
2021-10-11 16:46:06,367 ERROR [org.springframework.web.context.ContextLoader] [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeTableCache' defined in class path resource [alfresco/cache-context.xml]: Cannot resolve reference to bean 'authorityBridgeDAO' while setting bean property 'authorityBridgeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name........

ls -ail /var/lib/alfresco

drwxrwxrwx tomcat:tomcat  alf_data 

Why directories contentstore and contentstore.deleted are not created ?

Help me please

Thank you

1 ACCEPTED ANSWER

I FOUND !!!!

It's debian security for tomcat9 (debian package) in /usr/lib/systemd/system/tomcat9.service

The tomcat user can write only in /etc/tomcat9/Catalina/ or /var/lib/tomcat9/webapps/ or /var/log/tomcat9/

 if i create alf_data in /var/lib/tomcat9/webapps/  everything is ok.

Spoiler
#
# Systemd unit file for Apache Tomcat
#

[Unit]
Description=Apache Tomcat 9 Web Application Server
Documentation=https://tomcat.apache.org/tomcat-9.0-doc/index.html
After=network.target
RequiresMountsFor=/var/log/tomcat9 /var/lib/tomcat9

[Service]

# Configuration
Environment="CATALINA_HOME=/usr/share/tomcat9"
Environment="CATALINA_BASE=/var/lib/tomcat9"
Environment="CATALINA_TMPDIR=/tmp"
Environment="JAVA_OPTS=-Djava.awt.headless=true"

# Lifecycle
Type=simple
ExecStartPre=+/usr/libexec/tomcat9/tomcat-update-policy.sh
ExecStart=/bin/sh /usr/libexec/tomcat9/tomcat-start.sh
SuccessExitStatus=143
Restart=on-abort

# Logging
SyslogIdentifier=tomcat9

# Security
User=tomcat
Group=tomcat
PrivateTmp=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
CacheDirectory=tomcat9
CacheDirectoryMode=750
ProtectSystem=strict
ReadWritePaths=/etc/tomcat9/Catalina/
ReadWritePaths=/var/lib/tomcat9/webapps/
ReadWritePaths=/var/log/tomcat9/

[Install]
WantedBy=multi-user.target

View answer in original post

11 REPLIES 11

Hi

I performed new tests

if dir.root=/tmp/alf_data (in alfresco.properties) alfresco and share start correctly but contentstore and contentstore.deleted is created in :

/tmp/systemd-private-88352a96ca094672baa5f29bf69fdf44-tomcat9.service-YERwho and not in /tmp/alf_data

imageimage

when I restart TOMCAT  I get the message : CONTROL INTEGRITY ERROR because directory /tmp/systemd-private-88352a96ca094672baa5f29bf69fdf44-tomcat9.service-YERwho is deleted

Please help me !!!

Thanks

I FOUND !!!!

It's debian security for tomcat9 (debian package) in /usr/lib/systemd/system/tomcat9.service

The tomcat user can write only in /etc/tomcat9/Catalina/ or /var/lib/tomcat9/webapps/ or /var/log/tomcat9/

 if i create alf_data in /var/lib/tomcat9/webapps/  everything is ok.

Spoiler
#
# Systemd unit file for Apache Tomcat
#

[Unit]
Description=Apache Tomcat 9 Web Application Server
Documentation=https://tomcat.apache.org/tomcat-9.0-doc/index.html
After=network.target
RequiresMountsFor=/var/log/tomcat9 /var/lib/tomcat9

[Service]

# Configuration
Environment="CATALINA_HOME=/usr/share/tomcat9"
Environment="CATALINA_BASE=/var/lib/tomcat9"
Environment="CATALINA_TMPDIR=/tmp"
Environment="JAVA_OPTS=-Djava.awt.headless=true"

# Lifecycle
Type=simple
ExecStartPre=+/usr/libexec/tomcat9/tomcat-update-policy.sh
ExecStart=/bin/sh /usr/libexec/tomcat9/tomcat-start.sh
SuccessExitStatus=143
Restart=on-abort

# Logging
SyslogIdentifier=tomcat9

# Security
User=tomcat
Group=tomcat
PrivateTmp=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
CacheDirectory=tomcat9
CacheDirectoryMode=750
ProtectSystem=strict
ReadWritePaths=/etc/tomcat9/Catalina/
ReadWritePaths=/var/lib/tomcat9/webapps/
ReadWritePaths=/var/log/tomcat9/

[Install]
WantedBy=multi-user.target