The import task will fail with this: The CachePoint Appliance could not import the gold image VM to create the Operating System Layer. Error is: Failed to copy folders recursively. Details:
Note there are other reasons you could have a failure to copy files recursively. Always check UniSysLibLog for details.
You may also see this error when publishing, if the offending file was added in an app layer. The error for the task in the Management Console will say:
A failure occurred while publishing the Layered Image: Failed to process a file system attribute for a file or directory.
You will see this in the UniSysLibLog file -
2017-04-24 15:37:48 ERROR 13027 [uni.ca.syslib.copyfolder] ProcessAttribute: failed getting 135292-byte attribute 'user.favicon' for file '/mnt/CAMS/B72F0BB00035D5E_PB72F0BB00035D5E_B0_R0_V0_mpt/Users/Installer/Favorites/whatever.url', errno 7 (Argument list too long)
The file it is specifically failing on is "C:/Users/Installer/Favorites/whatever.url". However this could be any file. The important thing is the error "ProcessAttribute: failed getting 135292-byte attribute".
The simplest option is to delete the offending file from the gold VM (or packaging machine if this is a file in a layer) and retry the operation again. Make sure you empty the Recycle Bin. To identify the file, look at the full path in the error message. From the example above:
/mnt/CAMS/B72F0BB00035D5E_PB72F0BB00035D5E_B0_R0_V0_mpt/Users/Installer/Favorites/whatever.urlC:\Users\Installer\Favorites>streams *.* streams v1.60 - Reveal NTFS alternate streams. Copyright (C) 2005-2016 Mark Russinovich Sysinternals - www.sysinternals.com C:\Users\ganderson\Favorites\BizSpark.url: :favicon:$DATA 3638 C:\Users\ganderson\Favorites\Chat Portal.url: :favicon:$DATA 1014 C:\Users\ganderson\Favorites\whatever.url: :favicon:$DATA 135292