org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied)

Pentaho BI Platform Tracking | Sridhar Dhanapalan | 8 years ago
  1. 0

    Report Designer writes to files in its own installation. This means that it cannot operate in a multi-user environment. I should be able to install Report Designer as root, and then execute it as any user. This is the standard means of installing and running applications. Any files that need to be written (application settings, JNDI connections, etc.) are done so in the user's home directory ($HOME/.Report). If I try to run PRD as a normal user after having installed it as root, it gives errors in the console about not being able to write to files. Here's one example that appears after starting PRD: 14:24:47,577 ERROR [Logger] misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0023 - Could not return object IVersionHelper of scope null 14:24:47,578 ERROR [Logger] Error: Pentaho Pentaho BI Platform 1.7.1.1112 14:24:47,579 ERROR [Logger] misc-org.pentaho.core.audit.AuditHelper: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) at org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:106) at org.pentaho.core.audit.AuditEntry.auditAll(AuditEntry.java:61) at org.pentaho.core.audit.AuditEntry.auditJobDuration(AuditEntry.java:54) at org.pentaho.core.audit.AuditHelper.audit(AuditHelper.java:81) at org.pentaho.core.session.BaseSession.<init>(BaseSession.java:55) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:51) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:47) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:43) at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:292) at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:212) at org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:65) at org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:33) at org.pentaho.reportdesigner.crm.report.ReportDialog.preload(ReportDialog.java:472) at org.pentaho.reportdesigner.crm.report.ReportDialog.access$100(ReportDialog.java:229) at org.pentaho.reportdesigner.crm.report.ReportDialog$2$1.run(ReportDialog.java:347) Caused by: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) at java.io.FileWriter.<init>(FileWriter.java:90) at org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:72) ... 14 more 14:24:47,580 ERROR [Logger] Error end: To work around this, I am forced to run these commands as root: # touch report-designer/pentaho.log report-designer/resources/solutions/system/logs/audit/PentahoAuditLog.log # find report-designer/ -iname "*.log" -exec chmod 0666 {} + # find report-designer/ -iname "*.properties" -exec chmod 0666 {} + This means that the files are writable, but the problem is that they are writable by everyone. These files should really be in $HOME/.Report so that the application doesn't need to write to its own installation directory.

    Pentaho BI Platform Tracking | 8 years ago | Sridhar Dhanapalan
    org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied)
  2. 0

    Report Designer writes to files in its own installation. This means that it cannot operate in a multi-user environment. I should be able to install Report Designer as root, and then execute it as any user. This is the standard means of installing and running applications. Any files that need to be written (application settings, JNDI connections, etc.) are done so in the user's home directory ($HOME/.Report). If I try to run PRD as a normal user after having installed it as root, it gives errors in the console about not being able to write to files. Here's one example that appears after starting PRD: 14:24:47,577 ERROR [Logger] misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0023 - Could not return object IVersionHelper of scope null 14:24:47,578 ERROR [Logger] Error: Pentaho Pentaho BI Platform 1.7.1.1112 14:24:47,579 ERROR [Logger] misc-org.pentaho.core.audit.AuditHelper: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) at org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:106) at org.pentaho.core.audit.AuditEntry.auditAll(AuditEntry.java:61) at org.pentaho.core.audit.AuditEntry.auditJobDuration(AuditEntry.java:54) at org.pentaho.core.audit.AuditHelper.audit(AuditHelper.java:81) at org.pentaho.core.session.BaseSession.<init>(BaseSession.java:55) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:51) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:47) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:43) at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:292) at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:212) at org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:65) at org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:33) at org.pentaho.reportdesigner.crm.report.ReportDialog.preload(ReportDialog.java:472) at org.pentaho.reportdesigner.crm.report.ReportDialog.access$100(ReportDialog.java:229) at org.pentaho.reportdesigner.crm.report.ReportDialog$2$1.run(ReportDialog.java:347) Caused by: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) at java.io.FileWriter.<init>(FileWriter.java:90) at org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:72) ... 14 more 14:24:47,580 ERROR [Logger] Error end: To work around this, I am forced to run these commands as root: # touch report-designer/pentaho.log report-designer/resources/solutions/system/logs/audit/PentahoAuditLog.log # find report-designer/ -iname "*.log" -exec chmod 0666 {} + # find report-designer/ -iname "*.properties" -exec chmod 0666 {} + This means that the files are writable, but the problem is that they are writable by everyone. These files should really be in $HOME/.Report so that the application doesn't need to write to its own installation directory.

    Pentaho BI Platform Tracking | 8 years ago | Sridhar Dhanapalan
    org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied)
  3. 0

    RE: Unable to reinstall the theme - Forums | Liferay

    liferay.com | 1 year ago
    java.io.FileNotFoundException: D:\Demo\GC_Tomcat\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\GreenCrescentProviderSearch-portlet\WEB-INF\classes\portlet.properties (Access is denied)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to reinstall the theme - Forums | Liferay

    liferay.com | 1 year ago
    java.io.FileNotFoundException: D:\Demo\GC_Tomcat\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\GreenCrescentProviderSearch-portlet\WEB-INF\classes\portlet.properties (Access is denied)
  6. 0

    Bug ID: JDK-5018710 FileWriter does not throw IOException for Samba mounted read-only drives

    java.com | 9 months ago
    java.io.FileNotFoundException: /smb-solaris/file.txt (Permission denied)

  1. bluebunnty 8 times, last 2 weeks ago
  2. nasimk 33 times, last 1 week ago
  3. Alexandru Popa 6 times, last 4 weeks ago
  4. pranavprakash 2 times, last 2 months ago
  5. rp 1 times, last 4 months ago
1 more registered users
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied)

    at java.io.FileOutputStream.openAppend()
  2. Java RT
    FileWriter.<init>
    1. java.io.FileOutputStream.openAppend(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    3. java.io.FileWriter.<init>(FileWriter.java:90)
    3 frames
  3. org.pentaho.core
    PentahoSystem.init
    1. org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:72)
    2. org.pentaho.core.audit.AuditEntry.auditAll(AuditEntry.java:61)
    3. org.pentaho.core.audit.AuditEntry.auditJobDuration(AuditEntry.java:54)
    4. org.pentaho.core.audit.AuditHelper.audit(AuditHelper.java:81)
    5. org.pentaho.core.session.BaseSession.<init>(BaseSession.java:55)
    6. org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:51)
    7. org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:47)
    8. org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:43)
    9. org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:292)
    10. org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:212)
    10 frames
  4. org.pentaho.jfreereport
    PentahoUtility.startup
    1. org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:65)
    2. org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:33)
    2 frames
  5. org.pentaho.reportdesigner
    ReportDialog$2$1.run
    1. org.pentaho.reportdesigner.crm.report.ReportDialog.preload(ReportDialog.java:472)
    2. org.pentaho.reportdesigner.crm.report.ReportDialog.access$100(ReportDialog.java:229)
    3. org.pentaho.reportdesigner.crm.report.ReportDialog$2$1.run(ReportDialog.java:347)
    3 frames