Issue while creating AEM Backup | Community
Skip to main content
Siva_Sogalapalli
Community Advisor
Community Advisor
January 11, 2016
Solved

Issue while creating AEM Backup

  • January 11, 2016
  • 7 replies
  • 2190 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

7 replies

edubey
Level 10
January 11, 2016

to me it looks like access rights.

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

Siva_Sogalapalli
Community Advisor
Community Advisor
January 11, 2016

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

Kunal_Gaba_
January 11, 2016

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

Jitendra_S_Toma
Level 10
January 12, 2016

@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

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
January 12, 2016

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
joerghoh
Adobe Employee
Adobe Employee
January 14, 2016

Hi,

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

Jörg

June 22, 2016

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)