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
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.
# # 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
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.