cancel
Showing results for 
Search instead for 
Did you mean: 

What is the default location of the alfresco.log file

smiller
Champ in-the-making
Champ in-the-making
My installation is returning a couple of errors in the catalina.out file:

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: alfresco.log (Permission denied)

Indicating that the alfresco.log file is either trying to be placed in a directory that doesn't have permission to write files, or that the directory doesn't exist.  I've confirmed that the log(s) directory under the $CATALINA_HOME has tomcat ownership, but the file does not appear to be using that directory.  We're resorting to modifying the log4j.properties within the war files which is obviously not recommended, but cannot find any other alternative.  Also, modifying tomcat's log4j.properties file under $CATALINA_HOME/conf/log4j.properties does not seem to overwrite what was set in the war file's configurations.

We're running our installation via the .war file method on RHEL6.  $CATALINA_HOME defaults to /usr/share/tomcat6 with a bunch of symlinks for every sub-directory within.  /usr/share/tomca6/logs points to /var/log/tomcat6, which works fine for everything except alfresco.log.
1 REPLY 1

quietas
Champ on-the-rise
Champ on-the-rise
This seems to be a known issue for most of a year now that will not be fixed. http://issues.alfresco.com/jira/browse/ALF-5551

Workaround:
# sudo mkdir /var/log/alfresco
# sudo nano /opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties

– change  "log4j.appender.File.File=alfresco.log"  to "log4j.appender.File.File=/var/log/alfresco/alfresco.log"

Restart Alfresco