cancel
Showing results for 
Search instead for 
Did you mean: 

nothing in alfresco.log, even when debug !

mystikcool
Champ in-the-making
Champ in-the-making
Hi,

I'm facing a problem with my brand new Alfresco v3.2. Installation went fine. I can log in as admin. Now I wanted to add LDAP authentication (not even synchro). I followed the wiki, but it doesn't work. I'd like to check the logs, but I see nothing.

After some manipulation of the file path-to-Tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties, I could get a "alfresco.log" correctly created (in my /var/log). But this file remains desperatly empty! I tried to put some flags to "debug" in the log4j.properties, but that didn't help.

Any suggestions?
Many many thanks in advance!
7 REPLIES 7

kbonnet
Champ in-the-making
Champ in-the-making
What about the alfresco logging in [tomcat]/logs/catalina.out? Everything should be there too. At least you can start troubleshooting on your ldap issues.

Koen

mystikcool
Champ in-the-making
Champ in-the-making
I don't have more info in the catalina.out about LDAP or login… but in the meantime I fixed it - not the logging issue, but the ldap issue.

Thanks for the help !!

mystikcool
Champ in-the-making
Champ in-the-making
Ok I'm back with another problem (setting up CIFS), and again I'd really like to see some logging…

Here's what I figured out:

I can modify webapps/alfresco/WEB-INF/classes/log4j.properties, and these are taken into account. A file as well created with the name and path I specify there (but for some reason, nothing is ever written to that file - despite I set the log filter to DEBUG)
But also, when I run Tomcat, I get an error in catalina.out: permission denied to alfresco.log
If I run Tomcat as root, that alfresco.log is created from where I ran Tomcat. This is apparently ANOTHER log file than the one I can specify in log4j.properties.

So I was wondering: where can I change this? I only want 1 log file in a given directory.

Thanks a lot and don't hesitate to ask if you need more info

mrogers
Star Contributor
Star Contributor
Looks like you have some permissions problems related to who owns the directories and who is running alfresco.

You should not touch files within the WEB-INF folder, but for now experiment with setting the location of your log file,  to an absolute directory that you know has 777 permisions.

mystikcool
Champ in-the-making
Champ in-the-making
Hi, thanks for the fast reply.

Well, that's what I did. And the file is correctly created. But empty…so I'll keep investigating.

BTW I now use a dev-log4j.properties in shared/classes/alfresco/extension, and not modify the files in the webapps.

mrogers
Star Contributor
Star Contributor
There's clearly something strange going on here.   I'm presuming you are using some Unix variant since you talk about a "root" account and a /var/log filesystem.    Equally there's a large amount of people using log4j successfully.

If you give exact details of your OS And Alfresco version then hopefully someone else reading this thread will be able to confirm whether the exact same version works for them (or not!).

Also how did you install alfresco and which account are you using to run it?    Have you changed any configuration yourself?   Could you also post the contents of your log4j config file.

kbonnet
Champ in-the-making
Champ in-the-making
In my experience log4j always creates the alfresco.log in the location you're starting tomcat from, until you specify an absolute path. When you're starting tomcat as a non-root user, try being in the home dir of that user when starting tomcat.

Does that help?

Koen