Jhosman
Jhosman

Reputation: 555

Where do I find the Alfresco log files?

In Alfresco server have disappeared several uploads, I check the log to see what happened to the files.

In /opt/alfresco/tomcat/logs

But the files are empty.

Upvotes: 2

Views: 9772

Answers (2)

xxxvodnikxxx
xxxvodnikxxx

Reputation: 1277

It dependes, which logs you mean, there are 3 or 4 basic log files:

  • Alfresco log
  • Share log
  • "indexator" log (Solr/Lucene)
  • Tomcat log

For Community edition installed from installator you can find locations there

  • ./tomcat/webapps/share/WEB-INF/classes/log4j.properties (logs for Alfresco share)
  • ./tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties (logs for alfresco)
  • ./solr4/log4j-solr.properties (logs for indexator, in this case solr4- Alfresco version 5.XX by default)

take scope on property log4j.appender.File.File

  • tomcat logs are standard in path which you wrote ./tomcat/logs/, their path definitions are in ./tomcat/conf/logging.properties

    • 1catalina.org.apache.juli.FileHandler.directory
    • 2localhost.org.apache.juli.FileHandler.directory
    • 3manager.org.apache.juli.FileHandler.directory
    • 4host-manager.org.apache.juli.FileHandler.directory
  • catalina.out I have found in ./tomcat/bin/catalina.sh

if [ -z "$CATALINA_OUT" ] ; then CATALINA_OUT="$CATALINA_BASE"/logs/catalina.out fi

  • tomcat access log path is defined in ./tomcat/conf/server.xml look on following

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" />

(founded in Alfresco 5.1e- 201602-GA, from .bin linux instalator)

Btw- I'm not sure, but I think in alf 4.2f Community version for alfresco.log, share.log and solr.log was a rule, that files were in actual directory, from which you were running alfresco.sh startup script

Source (forums.alfresco.com)

Upvotes: 1

Andreas Steffan
Andreas Steffan

Reputation: 6159

In the command line, try

$ ps axww | grep atalina.startup | grep -v ' atalin' | awk '{print $1}'
29047
$ ls -l /proc/29047/fd

replacing 29047 with your output.

That should give you all open files with their full path. Look for catalina.out and alfresco.log. Those should be there by default.

Upvotes: 4

Related Questions