Reputation: 555
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
Reputation: 1277
It dependes, which logs you mean, there are 3 or 4 basic log files:
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
catalina.out
I have found in ./tomcat/bin/catalina.sh
if [ -z "$CATALINA_OUT" ] ; then
CATALINA_OUT="$CATALINA_BASE"/logs/catalina.out
fi
./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 "%r" %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
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