120 second delay set on deleting logged off profiles
There are acutally two issues, one there are lots of locked folders and registries from random profiles. Two the UPM stops trying to remove old profiles if it cannot remove the oldest profile.
The locked files and folders:
The SYSTEM process is holding users NTUSER.DAT (registry) files open.
The C:\Users\userid\AppData\Local\Microsoft\Credentials and C:\Users\userid\AppData\Roaming\Microsoft\Credentials folders occasiotnally have ACLs that prevent Local Admins from viewing or change permissions, or changing ownership of the folder.
The more annoying part of this is that after five attempts to delete a profile, UPM gives up and stops trying to delete any more logged off profiles.
2015-07-06;11:12:44.297;ERROR;;;;5356;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process. 2015-07-06;11:12:44.297;ERROR;;;;5356;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process. 2015-07-06;11:13:44.299;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle. 2015-07-06;11:13:44.299;ERROR;;;;10864;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process. 2015-07-06;11:13:44.299;ERROR;;;;10864;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process. 2015-07-06;11:14:44.300;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle. 2015-07-06;11:14:44.300;ERROR;;;;11892;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process. 2015-07-06;11:14:44.300;ERROR;;;;11892;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process. 2015-07-06;11:15:44.302;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle. 2015-07-06;11:15:44.302;ERROR;;;;8408;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process. 2015-07-06;11:15:44.302;ERROR;;;;8408;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process. 2015-07-06;11:16:44.304;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle. 2015-07-06;11:16:44.304;ERROR;;;;9856;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process. 2015-07-06;11:16:44.304;ERROR;;;;9856;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process. 2015-07-06;11:17:44.305;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle.
If you restart the UPM process it will try again and stop functioning after five more attempts. There are no messages or errors added to the Windows event logs. I can reboot the servers back to the golden image, but that is a gross fix and a waste of people's times.
Any one have any ideas? Any way Citrix will fix this bug without me having to burn one of our support tickets?
Question
Christopher Andrews
Our environment:
There are acutally two issues, one there are lots of locked folders and registries from random profiles. Two the UPM stops trying to remove old profiles if it cannot remove the oldest profile.
The locked files and folders:
The more annoying part of this is that after five attempts to delete a profile, UPM gives up and stops trying to delete any more logged off profiles.
2015-07-06;11:12:44.297;ERROR;;;;5356;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process.
2015-07-06;11:12:44.297;ERROR;;;;5356;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process.
2015-07-06;11:13:44.299;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle.
2015-07-06;11:13:44.299;ERROR;;;;10864;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process.
2015-07-06;11:13:44.299;ERROR;;;;10864;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process.
2015-07-06;11:14:44.300;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle.
2015-07-06;11:14:44.300;ERROR;;;;11892;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process.
2015-07-06;11:14:44.300;ERROR;;;;11892;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process.
2015-07-06;11:15:44.302;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle.
2015-07-06;11:15:44.302;ERROR;;;;8408;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process.
2015-07-06;11:15:44.302;ERROR;;;;8408;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process.
2015-07-06;11:16:44.304;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle.
2015-07-06;11:16:44.304;ERROR;;;;9856;DeleteLocalProfile: Deleting 'C:\Users\userid01\ntuser.dat' from the local profile failed. Error 0x20: The process cannot access the file because it is being used by another process.
2015-07-06;11:16:44.304;ERROR;;;;9856;DeleteLocalProfile: Could not delete local profile: <C:\Users\userid01>: The process cannot access the file because it is being used by another process.
2015-07-06;11:17:44.305;INFORMATION;;;;12480;PeriodicMaintenance: A thread has terminated. Closing its handle.
If you restart the UPM process it will try again and stop functioning after five more attempts. There are no messages or errors added to the Windows event logs. I can reboot the servers back to the golden image, but that is a gross fix and a waste of people's times.
Any one have any ideas? Any way Citrix will fix this bug without me having to burn one of our support tickets?
Link to comment
18 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now