App Layering error "A failure occurred while publishing the Layered Image: "Failed scanning a directory for files” Alternate

App Layering error "A failure occurred while publishing the Layered Image: "Failed scanning a directory for files” Alternate

book

Article ID: CTX231949

calendar_today

Updated On:

Description

When publishing an image the ELM gives an error,  "A failure occurred while publishing the Layered Image: Failed scanning a directory for files."

Resolution

Edit the layer with the issue and remove the file causing the issue. 
If this is file that can not be removed, you may need to contact Citrix Support to determine why the problem is occurring.
 

Problem Cause

This issue can occur when there is some problem copying a file or folder in a layer.

In this case the UniSysLibLog shows
2018-01-24 08:02:55 INFO  7022 [uni.ca.syslib.copyfolder] IsObjectAMountPoint: Failed trying to open  to the target of '.../Users/Administrator/AppData/Local/Microsoft/Windows/INetCache/Low/Content.IE5' as a directory, but found the directory bit set in the ntfs attributes, so will consider it to be a directory, error 2 (No such file or directory)
...
2018-01-24 08:02:55 WARN  7022 [uni.ca.syslib.copyfolder] CopyFolder: task 3b0026, failed scanning '.../Users/Administrator/AppData/Local/Microsoft/Windows/INetCache/Low/Content.IE5' errno 2 (No such file or directory)
...
2018-01-24 08:02:55 ERROR 7022 [uni.ca.syslib.fileassem] compositeAllLayers: job 0x3b0026, failed copying files for package 0x1c8000, source mount '...', error 2029

It is failing to copy Content.IE5.  the package ID is  0x1c8000 and that ID is the ID of the layer that has the problem. 

Note:- If you do not see the package ID, search backwards through the log until you find where that specific mount point was mounted and you should see the package ID there.