Expand my Community achievements bar.

SOLVED

Issue while creating AEM Backup

Avatar

Community Advisor

Hi All,

I'm trying to create backup from Felix console (http://localhost:4502/system/console/jmx/com.adobe.granite%3Atype%3DRepository)

I'm using startBackup(java.lang.String target) operation to create backup and passing target path. It works fine when I use my local drive path as target. But it's not working if I use share drive which is created using 'Map Network Drive' option. It would be great if you some can advise on this.

Log details:

[Backup Worker Thread] com.day.crx.core.backup.Backup Backup started.
11.01.2016 08:55:17.353 *ERROR* [Backup Worker Thread] com.day.crx.core.backup.Backup Failed to create temporary directory
11.01.2016 08:55:31.349 *INFO* [Backup Worker Thread] com.day.crx.core.backup.Backup Read size (10.918 gb) in 13.99s
11.01.2016 08:55:31.349 *WARN* [Backup Worker Thread] com.day.crx.core.backup.Backup Backup failed with error java.io.IOException: Could not create a temporary directory; prefix= backup. suffix=.temp directory=Z:\AEMBackups\2016\01
    at com.day.crx.core.backup.FileUtil.createTempDirectory(FileUtil.java:461)
    at com.day.crx.core.backup.Backup.createTemporaryDirectory(Backup.java:320)
    at com.day.crx.core.backup.Backup$1.run(Backup.java:207)
    at java.lang.Thread.run(Unknown Source)

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi

Please have a look at this forum thread :- https://forums.adobe.com/thread/1069762?tstart=0

//

 You should create a directory with following conditions in consideration:

> The directory in which you want to place the backup must not be in the same level where crx-quickstart is available

> Make sure sufficient permissions are given with the same ownership as of crx-quickstart directory

 

Now execute the backup pointing to this location and you will succeed.

 

Another comment was

//

If you are using backup feature from crx console, I mean http://localhost:4502/crx/config/backup.jsp  I can say that we had also some problems with this functionalities.

First off all what you need to check are the permissions, because when you check a source code there is line which creates a File object using a path specified by you to make a backup of repository.

File targetDir = new File(req.getParameter("targetDir", listDir.getParentFile().getAbsolutePath()));

You need to have sure that the proper read write access has been granted for this path.

Another issue is that maybe there was already prepared some hotfix if you are using CQ5.4. Please refer to the following link:

http://dev.day.com/content/kb/home/Crx/CrxSystemAdministration/CRXOnlineBackup.html

and also to this one:

http://dev.day.com/content/docs/en/crx/current/release_notes/overview.html which contains a hotfix number #34797 which was applied to backup.jsp file.

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

7 Replies

Avatar

Level 10

to me it looks like access rights.

Are you have same access ( read/write) rights in both local and network drive?

Avatar

Community Advisor

Yes, I've access same access. Even I tried to create/remove folders/files on network drive and i'm able to do it.

Avatar

Employee Advisor

Have you checked the rights of the user which owns the AEM process as well ?

Avatar

Level 9

@sivaprasadreddys ,

In order to verify whether it is access issue or not. Create another folder (e.g. Test) in share drive which has all access and run the backup process again.

Jitendra

Avatar

Correct answer by
Administrator

Hi

Please have a look at this forum thread :- https://forums.adobe.com/thread/1069762?tstart=0

//

 You should create a directory with following conditions in consideration:

> The directory in which you want to place the backup must not be in the same level where crx-quickstart is available

> Make sure sufficient permissions are given with the same ownership as of crx-quickstart directory

 

Now execute the backup pointing to this location and you will succeed.

 

Another comment was

//

If you are using backup feature from crx console, I mean http://localhost:4502/crx/config/backup.jsp  I can say that we had also some problems with this functionalities.

First off all what you need to check are the permissions, because when you check a source code there is line which creates a File object using a path specified by you to make a backup of repository.

File targetDir = new File(req.getParameter("targetDir", listDir.getParentFile().getAbsolutePath()));

You need to have sure that the proper read write access has been granted for this path.

Another issue is that maybe there was already prepared some hotfix if you are using CQ5.4. Please refer to the following link:

http://dev.day.com/content/kb/home/Crx/CrxSystemAdministration/CRXOnlineBackup.html

and also to this one:

http://dev.day.com/content/docs/en/crx/current/release_notes/overview.html which contains a hotfix number #34797 which was applied to backup.jsp file.

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Employee Advisor

Hi,

Can you show us the content of this directory Z:\AEMBackups\2016\01?

Jörg

Avatar

Level 1

I have similar issue , when trying to backup in to Network drive Gave all permission to myself but still it failed with below details

21.06.2016 17:25:06.177 *INFO* [Backup Worker Thread] com.day.crx.core.backup.Backup Backup started.
21.06.2016 17:25:06.178 *ERROR* [Backup Worker Thread] com.day.crx.core.backup.Backup Failed to create temporary directory
21.06.2016 17:25:40.296 *INFO* [Backup Worker Thread] com.day.crx.core.backup.Backup Read size (132.155 gb) in 34.11s
21.06.2016 17:25:40.296 *WARN* [Backup Worker Thread] com.day.crx.core.backup.Backup Backup failed with error java.io.IOException: Could not create a temporary directory; prefix= backup. suffix=.temp directory=Z:\chaitanya
    at com.day.crx.core.backup.FileUtil.createTempDirectory(FileUtil.java:456)
    at com.day.crx.core.backup.Backup.createTemporaryDirectory(Backup.java:320)
    at com.day.crx.core.backup.Backup$1.run(Backup.java:207)
    at java.lang.Thread.run(Unknown Source)