<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic alfresco.log error - FileNotFoundException in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108336#M30452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We are using Alfresco Content Services 5.2.5 (installation using the .zip).&lt;BR /&gt;When starting Alfresco, the following error is shown in the logs:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;&lt;A href="https://java.io" target="_blank" rel="nofollow noopener noreferrer"&gt;java.io&lt;/A&gt;.FileNotFoundException: alfresco.log (Permission denied)&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I have tried to make sure all log4j settings are coherent.&lt;BR /&gt;We want to write logs to the /var/log/alfresco folder.&lt;BR /&gt;&lt;EM&gt;l&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;og4j.appender.File.File=/var/log/alfresco/alfresco.log&lt;/EM&gt;&lt;SPAN&gt; has been set to both:&lt;BR /&gt;a) webapps/alfresco/WEB-INF/classes/log4j.properties&lt;BR /&gt;b) /opt/tomcat7/shared/classes/alfresco/extension/custom-log4j.properties&lt;BR /&gt;&lt;BR /&gt;1) How can we fix this error?&lt;BR /&gt;2) Is it relevant? Logs seem to be written to /var/log/alfresco/alfresco.log.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Liviu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2019 07:28:39 GMT</pubDate>
    <dc:creator>liviu_ioan</dc:creator>
    <dc:date>2019-08-22T07:28:39Z</dc:date>
    <item>
      <title>alfresco.log error - FileNotFoundException</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108336#M30452</link>
      <description>Hello,We are using Alfresco Content Services 5.2.5 (installation using the .zip).When starting Alfresco, the following error is shown in the logs:java.io.FileNotFoundException: alfresco.log (Permission denied)I have tried to make sure all log4j settings are coherent.We want to write logs to the /var</description>
      <pubDate>Thu, 22 Aug 2019 07:28:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108336#M30452</guid>
      <dc:creator>liviu_ioan</dc:creator>
      <dc:date>2019-08-22T07:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco.log error - FileNotFoundException</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108337#M30453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems , you have linux system and the user using which ou are starting the server does not have access to read or write in log files.Starting server using sudo/admin might resolve your issue.Other way will be to give read write permission to normal user using which you are starting the alfresco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 09:20:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108337#M30453</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2019-08-22T09:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco.log error - FileNotFoundException</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108338#M30454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Krutik Jayswal&lt;/B&gt;‌ Thanks, but my permissions are fine (permissions are set to the &lt;EM&gt;tomcat7&lt;/EM&gt; user, as they should be).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I belive the issue is related to the following discussions:&lt;/P&gt;&lt;P&gt;https://issues.alfresco.com/jira/browse/MNT-18557&lt;BR /&gt;https://issues.alfresco.com/jira/browse/MNT-14859&lt;BR /&gt;https://issues.alfresco.com/jira/browse/REPO-4278&lt;BR /&gt;https://issues.alfresco.com/jira/browse/REPO-4512&lt;/P&gt;&lt;P&gt;Quote from REPO-4512:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The current alfresco.log configuration is stored inside the war file, see.&lt;BR /&gt;The configuration creates the alfresco.log in the base directory, which is often Tomcat root. This contradicts with security best practices around file permissions which require Tomcat root to be read only. Note that overrides in the custom-log4j.properties does not solve this issue.&lt;BR /&gt;One has to modify the internals of the war file (log4j.properties) and specify the correct path to the logs folder to mitigate this issue.It is bad practice to modify the internals of the war file.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but I am unable to understand the conclusion or to find a fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 09:30:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-log-error-filenotfoundexception/m-p/108338#M30454</guid>
      <dc:creator>liviu_ioan</dc:creator>
      <dc:date>2019-08-22T09:30:11Z</dc:date>
    </item>
  </channel>
</rss>

