cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.4a alfresco.log stored in wrong location

captnbob
Champ in-the-making
Champ in-the-making
Hi all.

Installing Alfresco 3.4a, the alfresco.log file ended up being written to / (root directory) on the server.
This seems incorrect.

To correct this, I edited this file:
/opt/alfresco-3.4a/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties
The log appender entry was this:
     log4j.appender.File.File=alfresco.log
Changed it to this (after creating the directory /var/log/alfresco, the location used for Alfresco 3.2 CE on previous installations):
     /var/log/alfresco/alfresco.log

I installed a clean Ubuntu 10.04 sever with the default Alfresco Community Edition 3.4a (64bit).

If this is a problem, hopefully it can be corrected in a later version.

___________
/Brian
5 REPLIES 5

derek
Star Contributor
Star Contributor

fossoffice
Champ in-the-making
Champ in-the-making
Not enough, I think, for 4.0.d. Even after configuring the file:
/opt/alfresco-4.0.d/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties
some logging continued to happen at root directory. Most annoying, because now it logs in 2 places simultaneously.
I found out that there is another file:
/opt/alfresco-4.0.d/tomcat/webapps/share/WEB-INF/classes/log4j.properties
with the same use. I edited this accordingly and I'll watch the behavior for a few days. Then I'll come back to announce the results.

Kostas Katsaros

fossoffice
Champ in-the-making
Champ in-the-making
Starting from Alfresco community 4.2.a the file:
…/tomcat/webapps/share/WEB-INF/classes/log4j.properties
must be configured accordingly in order for the share.log to be in the right place.

Kostas Katsaros

fossoffice
Champ in-the-making
Champ in-the-making
Ok, here is another one: the file solr.log, wandering around the filesystem.
The conf file needed to be changed is this:
…/tomcat/work/Catalina/localhost/solr/WEB-INF/classes/log4j.properties

Kostas Katsaros

alch3mi5t
Champ in-the-making
Champ in-the-making
Actually, the correct path to log4j-solr.properties is alfresco/alf_data/solr
the Tomcat's work directory is it's "work" directory, so it's not reliable for data persistency.