FSLogix Profile does not completely unload after a User logoff

%3CLINGO-SUB%20id%3D%22lingo-sub-2282943%22%20slang%3D%22en-US%22%3EFSLogix%20Profile%20does%20not%20completely%20unload%20after%20a%20User%20logoff%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2282943%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20symptoms%20of%20the%20problem%3A%3C%2FP%3E%3CP%3Ea)%20User%20attempts%20to%20login%3C%2FP%3E%3CP%3Eb)%20Temp%20profile%20is%20created%20because%20FSLogfix%20could%20not%20load%20the%20profile%3C%2FP%3E%3CP%3Ec)%20User%20logs%20off%26nbsp%3B%3C%2FP%3E%3CP%3Ed)%20Task%20Manager%20still%20shows%20a%20stuck%20process%20under%20the%20%22logged%20off%22%20user.%3C%2FP%3E%3CP%3Ee)%20Attempting%20to%20Kill%20the%20process%20results%20in%20%22Access%20Denied%22%26nbsp%3B%3C%2FP%3E%3CP%3Ef)%20A%20Restart%20is%20the%20is%20the%20only%20way%20to%20release%20the%20hung%20process%3C%2FP%3E%3CP%3Eg)%20Cleanup%20any%20leftover%20profiles%20in%20the%20%5Cusers%20folder%26nbsp%3B%3C%2FP%3E%3CP%3Eh)%20User%20is%20then%20allowed%20to%20login%20and%20saved%20profile%20to%20load.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFSLogix%20Event%20Logs%3A%3C%2FP%3E%3CP%3E1)%20Event%20ID%3A%2026%20%5B04%2F21%2F21%209%3A18%3A17%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BFindFile%20failed%20for%20path%3A%20%3CFSLOGIXPROFILES%20share%3D%22%22%3E%5C%3CUSERID-%3E%3CSID%3E%5CProfile*.VHDX%20(The%20specified%20network%20name%20is%20no%20longer%20available.)%3C%2FSID%3E%3C%2FUSERID-%3E%3C%2FFSLOGIXPROFILES%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20Event%20ID%3A%2026%26nbsp%3B%5B04%2F21%2F21%209%3A18%3A17%5D%3C%2FP%3E%3CP%3EVirtualDiskAPI%3A%3ACreateFormattedDisk%20failed%20to%20create%20vhd(x)%3A%20%3CFSLOGIXPROFILES%20share%3D%22%22%3E%5C%3CUSERID-%3E%3CSID%3E%5CProfile_%3CUSERID%3E.VHDX%20(The%20file%20exists.)%3C%2FUSERID%3E%3C%2FSID%3E%3C%2FUSERID-%3E%3C%2FFSLOGIXPROFILES%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3)%20Event%20ID%3A%2025%20%5B04%2F21%2F21%209%3A18%3A17%5D%3C%2FP%3E%3CP%3EProfile%20load%3A%20Status%3A%200x9%20Reason%3A%200x0%20Error%3A%200x0%20Username%3A%20%3CUSERID%3E%20SID%3A%20%3CSID%3E%3C%2FSID%3E%3C%2FUSERID%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4)%20Event%20ID%3A%2026%26nbsp%3B%5B04%2F21%2F21%209%3A18%3A17%5D%3C%2FP%3E%3CP%3ELoadProfile%20failed.%20User%3A%20%3CUSERID%3E.%20SID%3A%20%3CSID%3E.%20(A%20device%20attached%20to%20the%20system%20is%20not%20functioning.)%3C%2FSID%3E%3C%2FUSERID%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E5)%20Event%20ID%3A%2026%26nbsp%3B%5B04%2F21%2F21%209%3A18%3A22%5D%3C%2FP%3E%3CP%3EFailed%20to%20restore%20credentials.%20Unable%20to%20decrypt%20value%20from%20BlobDpApi%20attribute%20(The%20specified%20file%20could%20not%20be%20decrypted.)%3C%2FP%3E%3CP%3E%5Bnot%20sure%20if%20the%20last%20event%20is%20related%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPossible%20Causes%3A%3C%2FP%3E%3CP%3E-Idle%20timeout%20disconnect%20and%20Logoff%20policy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2283166%22%20slang%3D%22en-US%22%3ERe%3A%20FSLogix%20Profile%20does%20not%20completely%20unload%20after%20a%20User%20logoff%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2283166%22%20slang%3D%22en-US%22%3EI%20like%20the%20idea%20of%20the%20GPO%20item%20to%20deny%20login%20as%20temp%2C%20but%20the%20question%20is%20how%20to%20prevent%20it%20from%20happening%20in%20the%20first%20place.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2283163%22%20slang%3D%22en-US%22%3ERe%3A%20FSLogix%20Profile%20does%20not%20completely%20unload%20after%20a%20User%20logoff%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2283163%22%20slang%3D%22en-US%22%3ENot%20that%20this%20is%20the%20golden%20bullet%20but%20if%20you%20deny%20logon%20as%20temp%20profile%20it%20stops%20them%20logging%20on%20which%20in%20turn%20means%20a%20call%20to%20desk%20which%20typically%20involves%20them%20jumping%20on%20the%20share%20and%20killing%20the%20connection.%20If%20in%20azure%20file%20share%20the%20power%20shell%20to%20force%20close%20is%20usually%20enough.%20If%20shared%20from%20a%20file%20server%20I%20have%20found%20it%20can%20end%20up%20being%20a%20vm%20reboot%20as%20closing%20the%20open%20files%20on%20file%20server%20isn%E2%80%99t%20enough.%20I%20can%E2%80%99t%20say%20how%20it%E2%80%99s%20different%20just%20the%20findings%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288087%22%20slang%3D%22en-US%22%3ERe%3A%20FSLogix%20Profile%20does%20not%20completely%20unload%20after%20a%20User%20logoff%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288087%22%20slang%3D%22en-US%22%3EGiven%20that%20MS%20have%20never%20fixed%20people%20logging%20into%20standard%20windows%20with%20temporary%20profiles%20I%20wouldn%E2%80%99t%20put%20all%20your%20eggs%20in%20that%20basket%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2334033%22%20slang%3D%22en-US%22%3ERe%3A%20FSLogix%20Profile%20does%20not%20completely%20unload%20after%20a%20User%20logoff%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2334033%22%20slang%3D%22en-US%22%3EUpdate%20as%20of%20%5B05%2F06%2F21%5D%3A%3CBR%20%2F%3EIt%20appears%20that%20the%20previous%20instance%20fixed%20itself.%20but%20....%3CBR%20%2F%3EI%20have%20the%20exact%20reoccurrence%20%5B05%2F06%2F21%5D.%20The%20symptoms%20are%20exactly%20the%20same.%3CBR%20%2F%3ENew%20possible%20Cuase%3B%3CBR%20%2F%3E-%20The%20FSLogix%20profile%20is%20an%20SMB%20share%20on%20a%20cluster%20volume.%20The%20Cluster%20Manager%20is%20showing%20some%20issues%20that%20I%20have%20yet%20to%20understand%2C%20and%20fix.%3CBR%20%2F%3Emore%20info%20to%20follow%20as%20I%20learn%20more%20of%20what%20is%20going%20on.%3CBR%20%2F%3E--Action%20plan%3A%20get%20away%20from%20Cluster%20and%20move%20to%20Azure%20Storage%20account%20with%20AzureFile%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2844467%22%20slang%3D%22en-US%22%3ERe%3A%20FSLogix%20Profile%20does%20not%20completely%20unload%20after%20a%20User%20logoff%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2844467%22%20slang%3D%22en-US%22%3EDid%20moving%20to%20Azure%20Files%20resolve%20your%20locked%20profile%20issues%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

The symptoms of the problem:

a) User attempts to login

b) Temp profile is created because FSLogfix could not load the profile

c) User logs off 

d) Task Manager still shows a stuck process under the "logged off" user.

e) Attempting to Kill the process results in "Access Denied" 

f) A Restart is the is the only way to release the hung process

g) Cleanup any leftover profiles in the \users folder 

h) User is then allowed to login and saved profile to load. 

 

FSLogix Event Logs:

1) Event ID: 26 [04/21/21 9:18:17]

   FindFile failed for path: <FSLogixProfiles share>\<userID-<sid>\Profile*.VHDX (The specified network name is no longer available.)

 

2) Event ID: 26 [04/21/21 9:18:17]

VirtualDiskAPI::CreateFormattedDisk failed to create vhd(x): <FSLogixProfiles share>\<userID-<sid>\Profile_<userID>.VHDX (The file exists.)

 

3) Event ID: 25 [04/21/21 9:18:17]

Profile load: Status: 0x9 Reason: 0x0 Error: 0x0 Username: <userID> SID: <sid>

 

4) Event ID: 26 [04/21/21 9:18:17]

LoadProfile failed. User: <userID>. SID: <sid>. (A device attached to the system is not functioning.)

 

5) Event ID: 26 [04/21/21 9:18:22]

Failed to restore credentials. Unable to decrypt value from BlobDpApi attribute (The specified file could not be decrypted.)

[not sure if the last event is related]

 

Possible Causes:

-Idle timeout disconnect and Logoff policy

6 Replies
Not that this is the golden bullet but if you deny logon as temp profile it stops them logging on which in turn means a call to desk which typically involves them jumping on the share and killing the connection. If in azure file share the power shell to force close is usually enough. If shared from a file server I have found it can end up being a vm reboot as closing the open files on file server isn’t enough. I can’t say how it’s different just the findings
I like the idea of the GPO item to deny login as temp, but the question is how to prevent it from happening in the first place.
Given that MS have never fixed people logging into standard windows with temporary profiles I wouldn’t put all your eggs in that basket
Update as of [05/06/21]:
It appears that the previous instance fixed itself. but ....
I have the exact reoccurrence [05/06/21]. The symptoms are exactly the same.
New possible Cuase;
- The FSLogix profile is an SMB share on a cluster volume. The Cluster Manager is showing some issues that I have yet to understand, and fix.
more info to follow as I learn more of what is going on.
--Action plan: get away from Cluster and move to Azure Storage account with AzureFile
Did moving to Azure Files resolve your locked profile issues?

@Jeff_Paulsen 

 

I have a few different instances around using both methods and get significantly less issues with the Azure files method than on a drive attached to a server, personally I think this maybe due to bandwidth limits of the VM that hosts the profiles and the bandwidth limits of Azure Files are generally a lot better and also there are less factors with this.

 

That being said the latest FSLogix update claims to resolve yet more of these issues and after doing the update before this one i have seen less issues still so it maybe you want to look at updating fslogix's on all AVD's first located here Microsoft/FSLogix Updates