What is the default location of the alfresco.log file

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2011 11:43 AM
My installation is returning a couple of errors in the catalina.out file:
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2011 05:08 PM
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
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
