Citrix App Layering | Adding version to OS Layer failing with error “Failed to duplicate layer. Please ensure that Windows was shut down properly.”

Adding version to OS Layer failing with error “Failed to duplicate layer. Please ensure that Windows was shut down properly”.

Screenshot of the error:

User-added image

On the ELM logs, we would see the below errors:

2021-07-14 09:20:34,824 INFO DefaultPool2 CopyPartitionByNtfsCloneJobStep: Cloning NTFS from block device /dev/nbd946p1 to /dev/nbd947p1

2021-07-14 09:20:34,875 ERROR DefaultPool2 CopyPartitionByNtfsCloneJobStep: NtfsClone failure (exitCode 1), repository reports 2760335364096 bytes remaining out of 3297175932928 bytes total

2021-07-14 09:20:34,880 ERROR DefaultPool2 CopyPartitionByNtfsCloneJobStep: NtfsClone failure: ERROR: Volume ‘/dev/nbd946p1’ is scheduled for a check or it was shutdown uncleanly. Please boot Windows or use the –force option to progress.

2021-07-14 09:20:34,880 ERROR DefaultPool2 JobStepEnumerator: Job step failed: MessageId=FailedNtfsClone, DefaultTitle=, CategoryData={[ExternalToolFailure { Call = “/usr/sbin/ntfsclone”, Args = “-O /dev/nbd947p1 /dev/nbd946p1”, Output = “”, Error = “ntfsclone v2018.3.1AR.1 (libntfs-3g)”, ErrorCode = 1 }]}

2021-07-14 09:20:34,880 INFO DefaultPool2 JobInterceptor: FinalizeLayerJob for JobId ‘768d6e’ has failed

Related:

  • No Related Posts

Cannot ‘Allow’ Citrix system file extensions when installing CF for Mac

Grab a copy of the database

  • The path is: /var/db/SystemPolicyConfiguration/ . See screenshot below and the required files:
  • image.png
  • Check if the kernel extension is allowed as shown below:
  • If it is allowed, then perform the steps highlighted below.

To fix the “Drive Unavailable” error, perform the following steps:

  1. Startup the Mac in recovery mode .
  2. Click the Utilities menu and select Terminal.
  3. Enter the following command:
    • /usr/sbin/spctl kext-consent add TEAMID
  4. Press Enter
    • Example: For Citrix the command would be: /usr/sbin/spctl kext-consent add S272Y5R93J
  5. Close the Terminal app and restart

If issue persists, Trigger the prompt by loading the kernel extension manually

sudo kextutil -t /Library/Filesystems/ctxfuse.fs/Contents/Extensions/10.12/ctxfuse.kext/

Note: Older builds (20.9 or less) can use sudo kextutil -t /Library/Filesystems/ctxfuse.fs/Contents/Extensions/10.11/ctxfuse.kext/

After running this command, open the system preferences in the security pane and see if you can approve the prompt.


While running the above command, if you encounter the Unable to stage kext” error then perform the action items highlighted below:

image.png

  1. As suggested here, run the below command:
    • chflags restricted /Volumes/Macintosh HD/private/var/db/KernelExtensionManagement
  2. People who have ran into the staging error have also reported upgrading to MacOS 10.15 Catalina also fixes the issue.

Related:

  • No Related Posts

Citrix Cloud: Unable to create/update machine catalog with the error “No facility available for disk upload. Unable to create any functioning volume service VMs. The given key was not present in the dictionary”

In rare conditions, you may be unable to create or update a machine catalog hosted on AWS. On analyzing the CDF traces, you may find an snippet similar to the one below.

73564371 0 12:41.4 53848 3220 1 RemoteHCLServerLog 1 Error [AWS]: VolumeServiceManager.ClaimSlot: No volume workers created after signalling unmet demand. Assuming dead volume service.

73564372 0 12:41.4 53848 3220 1 RemoteHCLServerLog 1 Error “[AWS]: PluginMachineManager.CreateDiskWithContent: There is no available service for populating the disk ‘prepare-identity’. Details: PluginUtilities.Exceptions.NoDiskContentTransferServiceException: No facility available for disk upload. Unable to create any functioning volume service VMs. The given key was not present in the dictionary. —> PluginUtilities.Exceptions.WrappedPluginException: Unable to create any functioning volume service VMs. The given key was not present in the dictionary. —> PluginUtilities.Exceptions.WrappedPluginException: The given key was not present in the dictionary.

— End of inner exception stack trace —

— End of inner exception stack trace —

at CloudCommon.VolumeService.VolumeServiceManager.WriteDiskDataToVolume(String availabilityZoneId, String targetVmId, String volumeId, IStreamVirtualDisk diskData)

at CloudCommon.CloudPluginBase.PluginMachineManager.CreateDiskWithContent(String vmId, String diskName, Int32 diskIndex, IStreamVirtualDisk diskData, IHypAvailabilityZone zone, IVolumeServiceState volumeServiceState)”

73564374 2 12:41.5 53848 3220 1 RemoteHCLServerLog 1 Error “[AWS]: PluginMachineManager.CreateCompleteVM: Error while attempting to create VM (name=’Preparation – TESTING0MULTISESSION-29THAPRIL – 7qRw1h7ZUEGuD6qljZE47g’, id=’i-05481da2de3c21cd0′). Exception: ‘PluginUtilities.Exceptions.NoDiskContentTransferServiceException: No facility available for disk upload. Unable to create any functioning volume service VMs. The given key was not present in the dictionary. —> PluginUtilities.Exceptions.WrappedPluginException: Unable to create any functioning volume service VMs. The given key was not present in the dictionary. —> PluginUtilities.Exceptions.WrappedPluginException: The given key was not present in the dictionary.

— End of inner exception stack trace —

— End of inner exception stack trace —

at CloudCommon.VolumeService.VolumeServiceManager.WriteDiskDataToVolume(String availabilityZoneId, String targetVmId, String volumeId, IStreamVirtualDisk diskData)

at CloudCommon.CloudPluginBase.PluginMachineManager.CreateDiskWithContent(String vmId, String diskName, Int32 diskIndex, IStreamVirtualDisk diskData, IHypAvailabilityZone zone, IVolumeServiceState volumeServiceState)

at CloudCommon.CloudPluginBase.PluginMachineManager.ProcessDisks(String vmId, Dictionary`2 disks, IHypAvailabilityZone zone, IVolumeServiceState volumeServiceState)

at CloudCommon.CloudPluginBase.PluginMachineManager.CreateCompleteVM(String name, IVMMetadata metadata, String serviceOffering, IList`1 securityGroups, IList`1 disks, IVolumeServiceState volumeServiceState, Boolean enableNetwork, INetworkInterfaceDetails networkInterfaceDetails, IHypAvailabilityZone zone, Boolean dedicatedTenancy, CloudTenancy tenancyType, Boolean tagVms, String customProperties)'”

73564471 0 12:48.3 53848 3220 1 RemoteHCLServerLog 1 Error “CloudRunQueue-4 – caught exception PluginUtilities.Exceptions.NoDiskContentTransferServiceException: No facility available for disk upload. Unable to create any functioning volume service VMs. The given key was not present in the dictionary. —> PluginUtilities.Exceptions.WrappedPluginException: Unable to create any functioning volume service VMs. The given key was not present in the dictionary. —> PluginUtilities.Exceptions.WrappedPluginException: The given key was not present in the dictionary.

— End of inner exception stack trace —

— End of inner exception stack trace —

at CloudCommon.VolumeService.VolumeServiceManager.WriteDiskDataToVolume(String availabilityZoneId, String targetVmId, String volumeId, IStreamVirtualDisk diskData)

at CloudCommon.CloudPluginBase.PluginMachineManager.CreateDiskWithContent(String vmId, String diskName, Int32 diskIndex, IStreamVirtualDisk diskData, IHypAvailabilityZone zone, IVolumeServiceState volumeServiceState)

at CloudCommon.CloudPluginBase.PluginMachineManager.ProcessDisks(String vmId, Dictionary`2 disks, IHypAvailabilityZone zone, IVolumeServiceState volumeServiceState)

at CloudCommon.CloudPluginBase.PluginMachineManager.CreateCompleteVM(String name, IVMMetadata metadata, String serviceOffering, IList`1 securityGroups, IList`1 disks, IVolumeServiceState volumeServiceState, Boolean enableNetwork, INetworkInterfaceDetails networkInterfaceDetails, IHypAvailabilityZone zone, Boolean dedicatedTenancy, CloudTenancy tenancyType, Boolean tagVms, String customProperties)

at CloudCommon.CloudPluginBase.PluginHypervisor.<>c_DisplayClass39_0.<BeginCreateCompleteVM>b_0(PluginMachineManager manager)

at Citrix.HypervisorCommunicationsLibrary.TaskRunItem`2.Run(T manager)

at HypervisorsCommon.HCL.TaskRunner`1.Run()”

Related:

  • No Related Posts