Installation Community Edition 7.0 error (debian 10 installation)

cancel
Showing results for 
Search instead for 
Did you mean: 
Diniz21
Active Member II

Re: Installation Community Edition 7.0 error

Jump to solution

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

alfresco1.pngalfresco2.png

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

Diniz21
Active Member II

Re: Installation Community Edition 7.0 error

Jump to solution

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