Importing images from a folder to CMS gallery

Hi,

I am working on a migration project from Wordpress to Bloomreach. We have given a zip of files that are to e uloaded to our Bloomreach CMS. I tried this using the import Groovy scripts provided here

I have some 10 images and needs, but when I execute the groovy , I get the below error on the console.

INFO 2019-08-13 16:21:28 Executing updater Example_Import_Image_Files
INFO 2019-08-13 16:21:29 Loading nodes to update
INFO 2019-08-13 16:21:29 Finished loading 1 nodes to update
DEBUG 2019-08-13 16:21:30 Imported binary from ‘/Bloomreach/Workspace/XXXXXXXX/repository-data/webfiles/src/main/resources/site/images/570677_1000_1_800.jpg’ to ‘/content/gallery/contenteximdemo/imported/570677_1000_1_800.jpg’.
ERROR 2019-08-13 16:21:30 Updating / failed - org.apache.commons.vfs2.FileSystemException: Could not delete “file:///E:/Bloomreach/Workspace/hobby-craft-bloomreach/target/tomcat9x/temp/570677_1000_1_800.jpg2352403427252067044.jpg”.
INFO 2019-08-13 16:21:30

===============================================================================================================
Execution Summary:

Total: 2, Processed: 1, Suceeded: 1, Failed: 0, Duration: 1788ms

Details (in CSV format):

SEQ,PROCESSED,SUCCEEDED,ID,PATH,TYPE,ATTRIBUTES,ERROR
1,false,false,/content/gallery/contenteximdemo/imported/530x300_Sewing1.webp,{file=/Bloomreach/Workspace/XXXXXXX/repository-data/webfiles/src/main/resources/site/images/530x300_Sewing1.webp},
2,true,true,9c568f1a-1439-4ad3-b728-1513624f6c86,/content/gallery/contenteximdemo/imported/570677_1000_1_800.jpg,hippogallery:imageset,{file=/Bloomreach/WorkspaceXXXXXXX/repository-data/webfiles/src/main/resources/site/images/570677_1000_1_800.jpg},

Why this deletion is happening and it stops. I just saw only one image on the gallery as the job stopped. Could someone help me here please ?

Hi,

It creates image variants such as thumbnail image in the temporary folder from the given original image, and deletes the temporary image after creating image gallery nodes in JCR.
For some reason, it seems failing to clean up the temporary files. Could you look into why it fails on that directory?

Regards,

Woonsan

Yes Understood, thumbnail image got created but it could not delete the temporary file.

How about the permission for this folder “target”, they should be ReadWrite ? I could see them as ReadOnly files and folders, hence it is not able to delete from the temp folder. I faced this error sometime before as well, when clickin on “Rebuild” option from the CMS while working on a demo project.