FSLogix + CPM OneDrive Folders Deletion Issue

Copper Contributor

I use CPM with Citrix VAD 7 2203 LTSR CU1 to manage user profiles.

I use FSLogix 2.9.8228.50276 to manage Office Container.

OneDrive is enabled in Office Container with the VHDX

 

I have an issue at logout ending.

CPM wants to delete the profile folder which is not empty.

It sees that there is still OneDrive Folders. One to three folders among : <Tenant_Name>, Onedrive, OneDrive - <Tenant Name>.

When CPM want to delete them, error says : Element not found.

I have the same thing with file explorer. Folder are locked until reboot.

Looks like vhdx unmount create a lock between Fslogix and CPM.

Logoff lasts about 25 mn before giving up and leaving the folder in place.

 

CPM logs samples :

2022-09-06;11:37:05.905;ERROR;;;;72500;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:37:05.905;ERROR;;;;72500;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:37:05.905;ERROR;;;;72500;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:38:05.905;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:38:05.906;ERROR;;;;85104;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:38:05.914;ERROR;;;;85104;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:38:05.914;ERROR;;;;85104;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:39:05.913;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:39:05.915;ERROR;;;;11088;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:39:05.915;ERROR;;;;11088;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:39:05.915;ERROR;;;;11088;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:40:05.914;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:40:05.916;ERROR;;;;19832;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:40:05.916;ERROR;;;;19832;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:40:05.916;ERROR;;;;19832;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:41:05.916;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:41:05.917;ERROR;;;;20956;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:41:05.918;ERROR;;;;20956;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:41:05.918;ERROR;;;;20956;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:42:05.917;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:42:05.918;ERROR;;;;82048;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:42:05.918;ERROR;;;;82048;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:42:05.918;ERROR;;;;82048;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:43:05.918;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:43:05.918;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:43:05.918;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:43:05.918;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:43:05.919;ERROR;;;;86684;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:43:05.919;ERROR;;;;86684;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:43:05.919;ERROR;;;;86684;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:44:05.918;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:44:05.919;ERROR;;;;26104;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:44:05.919;ERROR;;;;26104;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:44:05.919;ERROR;;;;26104;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:45:05.919;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:45:05.920;ERROR;;;;38888;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:45:05.920;ERROR;;;;38888;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:45:05.920;ERROR;;;;38888;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:46:05.920;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:46:05.921;ERROR;;;;15524;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:46:05.921;ERROR;;;;15524;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:46:05.921;ERROR;;;;15524;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:47:05.921;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:47:05.922;ERROR;;;;79068;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:47:05.922;ERROR;;;;79068;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:47:05.922;ERROR;;;;79068;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:48:05.923;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:48:05.924;ERROR;;;;69040;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:48:05.924;ERROR;;;;69040;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:48:05.924;ERROR;;;;69040;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:49:05.924;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:49:05.926;ERROR;;;;80732;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:49:05.926;ERROR;;;;80732;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:49:05.927;ERROR;;;;80732;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:50:05.926;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:50:05.927;ERROR;;;;84912;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:50:05.927;ERROR;;;;84912;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:50:05.927;ERROR;;;;84912;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:51:05.926;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:51:05.927;ERROR;;;;1144;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:51:05.927;ERROR;;;;1144;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:51:05.928;ERROR;;;;1144;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:52:05.927;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:52:05.928;ERROR;;;;20936;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:52:05.928;ERROR;;;;20936;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:52:05.928;ERROR;;;;20936;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:53:05.928;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:53:05.928;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:53:05.929;ERROR;;;;68812;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:53:05.929;ERROR;;;;68812;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:53:05.929;ERROR;;;;68812;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:54:05.929;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:54:05.931;ERROR;;;;49240;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:54:05.931;ERROR;;;;49240;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:54:05.931;ERROR;;;;49240;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:55:05.929;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:55:05.930;ERROR;;;;74052;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:55:05.931;ERROR;;;;74052;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:55:05.931;ERROR;;;;74052;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:56:05.931;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:56:05.931;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:56:05.931;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:56:05.932;ERROR;;;;78784;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:56:05.932;ERROR;;;;78784;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:56:05.932;ERROR;;;;78784;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:57:05.931;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:57:05.931;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:57:05.932;ERROR;;;;81208;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:57:05.932;ERROR;;;;81208;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:57:05.933;ERROR;;;;81208;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:58:05.932;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:58:05.932;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:58:05.933;ERROR;;;;22544;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:58:05.934;ERROR;;;;22544;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:58:05.934;ERROR;;;;22544;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;11:59:05.933;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;11:59:05.934;ERROR;;;;47568;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;11:59:05.934;ERROR;;;;47568;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;11:59:05.934;ERROR;;;;47568;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;12:00:05.934;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;12:00:05.935;ERROR;;;;79188;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;12:00:05.935;ERROR;;;;79188;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;12:00:05.935;ERROR;;;;79188;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.
2022-09-06;12:01:05.934;INFORMATION;;;;4160;PeriodicMaintenance: A thread has terminated. Closing its handle.
2022-09-06;12:01:05.935;ERROR;;;;31836;DeleteDirectory: Deleting the directory <D:\Profiles\username\<Tenant_Name>> failed with: Élément introuvable.
2022-09-06;12:01:05.935;ERROR;;;;31836;DeleteDirectory: Deleting the directory <D:\Profiles\username> failed with: Le répertoire n’est pas vide.
2022-09-06;12:01:05.935;ERROR;;;;31836;DeleteLocalProfile: Could not delete local profile: <D:\Profiles\username>: Le répertoire n’est pas vide.

1 Reply

Hi @Gilles_Jibrane,

Did you end up getting any answers for this one?

I had the exact same issue, confirmed present as of 20/02/2022, however when I re-checked it just now I couldn't reproduce it anymore.

 

Only difference since then will have been automatic updates to the OneDrive client (currently running 23.002.0102.0006 without any issues). Hopefully that means that Microsoft have fixed this in a OneDrive update, not that they'll ever tell you anything apart from "We've resolved product issues to improve the reliability and performance of the OneDrive sync app."

 

I'm also running CVAD 7 1912 LTSR CU7 with FSLogix 2.9.8228.50276 on Server 2019 Version 1809 Build 17763.4377, in case that helps for comparison.

 

Best of luck,

Josh