[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Intermittent profile unloading issues with Citrix Profile Manager 4.1.1

Posted on 2013-12-15
Medium Priority
Last Modified: 2014-06-20
Hi experts,
Hoping someone can help with an Profile Management issue.

I have a reasonably sized farm (40+ farm servers). Application servers are running XenApp 6.5, and have all current hotfixes. All of these are provisioned using PVS 6.0.

We are using Profile Management After the server has been running for a few days, the local cached user profiles are not deleted from the server. I have turned on UPM logging on a number of my servers.

Looking through these logs, this is what I believe the scenario is:
Users log on, loading their Citrix profile from the store
Users log off, their profile is unloaded in due course
At some point, the log will show an issue with files from one of a user's profile files
When one of these entries are logged, the user profile folder will not delete
Subsequent users who log on and log off will not have their profiles delete
Restart the 'Citrix Profile Management' service, all existing profile folders will be deleted within 3-5 minutes
Users log on, loading their Citrix profile from the store
Users log off, their profile is unloaded in due course
At some point, the log will show an issue with files from one of a user's profile files
Profiles are not deleted again

Here are some log entries that initiate the issue:

2013-12-11;11:57:12.129;WARNING;;;;1092;A cache fill for user 'abc01def' of file 'D:\Users\abc01def\AppData\Roaming\Citrix\RadeCache\e7dc7e04-e9a4-4911-aa7f-6c6ea0d6ecdf\Device\C\Program Files (x86)\appname1\mnu27.psr:CITRIX_SHORT_FILE_NAME' is taking a long time...
2013-12-11;11:58:12.297;ERROR;;;;1092;User 'abc01def' appears to have stalled while trying to cache fill file 'D:\Users\abc01def\AppData\Roaming\Citrix\RadeCache\e7dc7e04-e9a4-4911-aa7f-6c6ea0d6ecdf\Device\C\Program Files (x86)\appname1\mnu27.psr:CITRIX_SHORT_FILE_NAME'. User may be blocked.
2013-11-20;10:22:36.152;WARNING;;;;1904;A cache fill for user 'ghi01jkl' of file 'C:\Users\ghi01jkl\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini' is taking a long time...
2013-11-20;10:23:36.802;ERROR;;;;1904;User 'ghi01jkl' appears to have stalled while trying to cache fill file 'C:\Users\ghi01jkl\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini'. User may be blocked.
2013-11-23;01:43:14.337;INFORMATION;MYDOMAIN;uvw01xy;3;8692;CheckIfMirroredFilesOutOfSync: Destination file <C:\Users\uvw01xy\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk> is newer than or equal to source file <\\mydomain.com\citrix\userprofiles\xa6\uvw01xy\UPM_Profile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk>.
2013-11-23;01:44:55.959;WARNING;;;;1864;A cache fill for user 'uvw01xyz' of file 'C:\Users\uvw01xy\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk' is taking a long time...
2013-11-23;01:45:57.361;ERROR;;;;1864;User 'uvw01xy' appears to have stalled while trying to cache fill file 'C:\Users\uvw01xy\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk'. User may be blocked.

A particular server may have been up for a couple of days with user profiles loading and unloading correctly, but once these types of entries are logged for one user, this user profile and all user profiles following will not unload at all. If I stop and then restart the 'Citrix Profile Management' service, all existing profiles will be unloaded within 3-5 minutes. Following this, user profiles continue to load and unload correctly, until an entry like the above is logged.
Initially I thought it was to do with long paths, however I am not so convinced now.
Any help would be appreciated.
Question by:_adroit_
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2

Expert Comment

ID: 39723409
I hope it will solve your prb. Please check the below link.


Download UPHclean tool and install in the servers. So it resolve the profile issue.

Author Comment

ID: 39731035
Hi ADforyou,

Thanks for your post. I have not previously deleted this file on the provisioned image. I have updated my image preparation script so that it stops the service and deletes the file.

I will see if this helps with the profiles not unloading.

As a side note, after obtaining access to "Forefront Endpoint Protection" management, I have noticed that the AV file, folder and process exclusions I advised the FEP administrator to setup were not actually applying to my servers. I have now applied these, and hopefully this will help as well.

As I am off for 2 weeks over the Christmas period, I will update this post once I am back at work. This will allow enough time to see whether the issue arrises again.
LVL 12

Expert Comment

by:Daniel Borger
ID: 39740047
I've seen a similar issue with using NetApp for the back end storage. If using NetApp move user profiles to a Windows share. also, look at the best practices for Antivirus.

if you have active write back enabled in Profile manager you could also turn that off to see if it helps.
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.


Author Comment

ID: 39801460
After arriving back from holiday, I have only had a little chance to look at this.

dborger, thanks for your input. I have made a number of Anti Virus changes and PVS image changes, as the servers were still happy with the AV setup, and hence were not picking up the FEP policys correctly. After discovering and applying this article (http://scug.be/sccm/2013/03/27/citrix-provisioning-services-and-microsoft-system-center-configuration-manager-2012-sp1/), the AV setup now appears correct. Hopefully this helps.

I have been running a script that removes from the XenApp servers any profiles that are no longer loaded, that have a last used time of 5 minutes or greater (this gives Profile Manager adequate time with the profile). Running this as a scheduled task every 15 minutes has eliminated 99% of profiles that have not been removed. Running this script is not ideal however. I have disabled this task to see how Profile Manager is handling the Profile unloading and removal on its own.

Interestingly, the user profiles that have not fully been removed have had a number of files left behind, such as Win.ini, Rsop.gpf, a number of desktop.ini files, the ntuser.ini file and the ntuser.pol file. All other files are removed. Using Sysinternals Process Explorer, I have occasionally seen handles open to one of these files. When the handle is closed, the profile unloads.

I also had Active Writeback enabled. After doing some reading on Active Writeback, I have disabled this as well. I have seen that some of the files that remained were listed in the <UserName>\Pending\ItemChanges.txt file.

I will update this in a couple of days. In the meantime, if anyone else has any other ideas, your input would be valued.
LVL 12

Expert Comment

by:Daniel Borger
ID: 39803093
Nice job digging into this.. I think you are headed down the right path with active write back.  Are you also using the profile streaming for Profile manager?

Author Comment

ID: 39805475
Yes, I am also using Profile Streaming.  have it to these settings:

Always cache
Cache files this size or larger (megabytes): 5

Profile streaming

Timeout for pending area lock files

Accepted Solution

_adroit_ earned 0 total points
ID: 40136146
Hi Experts,

I am glad to tell you that this was finally solved.

There were many attempts including turning off active write back, ensuring that the AV settings were correct and playing with Timeout for pending area lock files, all which did not really fix the issue.

As a temporary fix, I had a Powershell script that would run every 15 minutes, which would use 'Get-WmiObject Win32_UserProfile from the servers and pipe this Where-Object {($_.Loaded -like "False") and last use time was 5 mins ago, and would delete the profile.

So what was the fix?

The profile unload issue completely went away when I change the Citrix Profile Management Policy Group Policy setting of Local profile conflict handling from Rename local profile to Delete local profile.

Initially, this setting needed to use the Rename option, as some information from local profiles needed to be kept, to be migrated to the new profiles (such as Outlook SIgnatures)

I hope this helps someone else out there.

Author Closing Comment

ID: 40146748
Suggestions from others had not fixed the issue. The issue was resolved after I made a group policy setting change.

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question