Search code examples
aem

AEM 6.2 create backup issue


While creating new online backup of my Author instance it is showing error showing below:

enter image description here

In the log it is showing error:

30.11.2017 12:11:59.105 *ERROR* [112.196.146.254 [1512043919094] GET /libs/granite/backup/content/createBackup/content/items/backupform.check.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.RuntimeException: java.io.FileNotFoundException: /home/ubuntu/AEM/Dev/author/crx-quickstart/launchpad/felix/bundle305/data/classes/org/apache/jsp/libs/granite/backup/components/backupform/check_html_jsp.java (Permission denied)
    at org.apache.sling.commons.fsclassloader.impl.FSClassLoaderProvider.getOutputStream(FSClassLoaderProvider.java:225)
    at org.apache.sling.scripting.jsp.SlingIOProvider.getOutputStream(SlingIOProvider.java:145)
    at org.apache.sling.scripting.jsp.jasper.JspCompilationContext.getOutputStream(JspCompilationContext.java:146)
    at org.apache.sling.scripting.jsp.jasper.compiler.Compiler.generateJava(Compiler.java:150)

I have checked the bundle 305 is active. Can anyone suggest why it is unable to create a backup and showing this error.


Solution

  • You seem to be dealing with filesystem-level permissions problem.

    java.io.FileNotFoundException:
    /home/ubuntu/AEM/Dev/(...)/check_html_jsp.java (Permission denied)
    

    This error tells you that the AEM process was denied permission to access or save a file at the path provided.

    Check which user started AEM and if the user has the permissions necessary to access the directory that you're trying to use (/home/ubuntu/AEM/Dev). Change the path or the permissions.