AnsweredAssumed Answered

'failed to create directory for file storage', owned by root

Question asked by greenmoss on Dec 18, 2008
Latest reply on Apr 6, 2014 by rjohnson
I've got alfresco 3 B release installed, and am seeing some errors like this:

A system error happened during the operation: Failed to create directory for file storage:
/var/lib/alfresco/alf_data/contentstore/2008/12/8/15/18

I look at the user alfresco is running as:

$ ps aux | grep [a]lfresco
alfresco  8035  0.3 55.6 1046848 284764 pts/1  Sl   Dec17   5:04 /usr/lib/jvm/java-6-sun/bin/java -XX:MaxPermSize=128m -Xms256m -Xmx512m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/alfresco/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/alfresco/tomcat/common/endorsed -classpath :/opt/alfresco/tomcat/bin/bootstrap.jar:/opt/alfresco/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/alfresco/tomcat -Dcatalina.home=/opt/alfresco/tomcat -Djava.io.tmpdir=/opt/alfresco/tomcat/temp org.apache.catalina.startup.Bootstrap start
alfresco  8048  0.0  0.2 329468  1320 pts/1    Sl   Dec17   0:01 /usr/lib/openoffice/program/soffice.bin -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager -nologo -headless -nofirststartwizard -splash-pipe=5

so the whole process is running as alfresco. Looking through the "trouble directories":

$ ls -l /var/lib/alfresco/alf_data/contentstore/2008/
total 8
drwxr-xr-x 4 alfresco alfresco 4096 2008-11-28 10:08 11
drwxr-xr-x 3 root     root     4096 2008-12-04 16:10 12

This is obviously the cause of the problem. But why did one get set as owner root? Also, *something* clearly got added there:

$ ls -lR /var/lib/alfresco/alf_data/contentstore/2008/12/
/var/lib/alfresco/alf_data/contentstore/2008/12/:
total 4
drwxr-xr-x 3 root root 4096 2008-12-04 16:10 4

/var/lib/alfresco/alf_data/contentstore/2008/12/4:
total 4
drwxr-xr-x 4 root root 4096 2008-12-04 16:11 16

/var/lib/alfresco/alf_data/contentstore/2008/12/4/16:
total 8
drwxr-xr-x 2 root root 4096 2008-12-04 16:10 10
drwxr-xr-x 2 root root 4096 2008-12-04 16:11 11

/var/lib/alfresco/alf_data/contentstore/2008/12/4/16/10:
total 28
-rw-r–r– 1 root root 25088 2008-12-04 16:10 65fb71e5-e9b8-4885-bc88-792ad5ce3f86.bin

/var/lib/alfresco/alf_data/contentstore/2008/12/4/16/11:
total 4
-rw-r–r– 1 root root 33 2008-12-04 16:11 7b84aaa6-0fe1-4b66-9c6c-7f08c3dcb316.bin



I guess I'll manually chown to user alfresco for now. Can anyone advise how to prevent these directories/files being created with owner root?

Outcomes