cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create alfresco.log

atTheBeach
Confirmed Champ
Confirmed Champ

I have a custom-log4j2.properties which sets

appender.rolling.fileName=/opt/tomcat/updated/logs/test.log

This works, and Alfresco logs to this file (test.log, not alfresco.log). However, catalina.out is telling me that it's "Unable to create file alfresco.log java.io.IOException: Permission denied".

Question: what is trying to create 'alfresco.log'? Where is it trying to create it? How do I fix this?

2 REPLIES 2

atTheBeach
Confirmed Champ
Confirmed Champ

Well, I've got half an answer. webapps/alfresco/WEB-INF/classes/log4j2.properties explicitly sets appender.rolling.fileName to 'alfresco.log'. If I replace this with an absolute path to the required file the error is fixed and logging works.

Does anyone happen to know how I over-ride this property, without explicitly changing this file?

cristinamr
World-Class Innovator
World-Class Innovator

Good morning.

Check this link. It might help you 🙂

Let us know the results.

Cheers,

Cris.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc