question

SenhorDolas-2197 avatar image
0 Votes"
SenhorDolas-2197 asked AmitaMenon-3691 edited

FSLogix and Profile Locked on WVD

Hi
Using WVD / FSLogix profile disks.
I noticed that a user profile is not loading correctly accross many Desktops
Profile locked... but where? How can I find out where and what is locking my vhdx profile?
Log:


 [11:47:20.105][tid:00000e67.000067][INFO]            Mutex acquired
 [11:47:20.105][tid:00000e67.000067][INFO]           ===== Begin Session:  LoadProfile: Mickey
 [11:47:20.105][tid:00000e67.000067][INFO]             Configuration Read (DWORD): SOFTWARE\FSLogix\Profiles\Enabled.  Data: 1
 [11:47:20.105][tid:00000e67.000067][INFO]             User: Mickey. SID: S-1-5-21.....
 [11:47:20.106][tid:00000e67.000067][INFO]             Include group SID: S-1-5-21....
 [11:47:20.106][tid:00000e67.000067][INFO]             Exclude group SID: S-1-5-21....
 [11:47:20.106][tid:00000e67.000067][INFO]             User is a member of the include group
 [11:47:20.106][tid:00000e67.000067][INFO]             Status set to 200: Setup in progress
 [11:47:20.106][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\RedirectType.  Using default: 2
 [11:47:20.106][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\ConcurrentUserSessions.  Using default: 1
 [11:47:20.107][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\VolumeWaitTimeMS.  Using default: 20000
 [11:47:20.107][tid:00000e67.000067][INFO]             Configuration Read (DWORD): SOFTWARE\FSLogix\Profiles\DeleteLocalProfileWhenVHDShouldApply.  Data: 1
 [11:47:20.107][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\FSLogixShellPath.  Using default: 
 [11:47:20.107][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\AccessNetworkAsComputerObject.  Using default: 0
 [11:47:20.107][tid:00000e67.000067][INFO]             Accessing network as user object
 [11:47:20.107][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\AttachVHDSDDL.  Using default: 
 [11:47:20.108][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\ProfileType.  Using default: 0
 [11:47:20.108][tid:00000e67.000067][INFO]             Profile type: Normal
 [11:47:20.108][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\CCDLocations.  Using default: 
 [11:47:20.108][tid:00000e67.000067][INFO]             Configuration Read (REG_SZ): SOFTWARE\FSLogix\Profiles\VHDLocations.
 [11:47:20.108][tid:00000e67.000067][INFO]             VHDLocations found - configured to use Local Disk
 [11:47:20.108][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\DiffDiskParentFolderPath.  Using default: C:\windows\TEMP\
 [11:47:20.109][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\NoProfileContainingFolder.  Using default: 0
 [11:47:20.109][tid:00000e67.000067][INFO]             Configuration Read (DWORD): SOFTWARE\FSLogix\Profiles\FlipFlopProfileDirectoryName.  Data: 1
 [11:47:20.109][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\VHDNameMatch.  Using default: Profile*
 [11:47:20.109][tid:00000e67.000067][INFO]             Configuration Read (REG_SZ): SOFTWARE\FSLogix\Profiles\VolumeType.  Data: VHDX
 [11:47:20.992][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\LockedRetryCount.  Using default: 12
 [11:47:20.992][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\LockedRetryInterval.  Using default: 5
 [11:47:21.040][tid:00000e67.000067][ERROR:00000020]   Open vhd(x) failed, file is locked.  Retrying 12 time(s) at 5 second intervals (The process cannot access the file because it is being used by another process.)
 [11:47:26.044][tid:00000e67.000067][INFO]             Retrying open vhd(x) 1/12
 [11:47:31.272][tid:00000e67.000067][INFO]             Retrying open vhd(x) 2/12
 [11:47:36.451][tid:00000e67.000067][INFO]             Retrying open vhd(x) 3/12
 [11:47:41.645][tid:00000e67.000067][INFO]             Retrying open vhd(x) 4/12
 [11:47:46.941][tid:00000e67.000067][INFO]             Retrying open vhd(x) 5/12
 [11:47:52.121][tid:00000e67.000067][INFO]             Retrying open vhd(x) 6/12
 [11:47:57.182][tid:00000e67.000067][INFO]             Retrying open vhd(x) 7/12
 [11:48:02.228][tid:00000e67.000067][INFO]             Retrying open vhd(x) 8/12
 [11:48:07.292][tid:00000e67.000067][INFO]             Retrying open vhd(x) 9/12
 [11:48:12.514][tid:00000e67.000067][INFO]             Retrying open vhd(x) 10/12
 [11:48:17.705][tid:00000e67.000067][INFO]             Retrying open vhd(x) 11/12
 [11:48:22.908][tid:00000e67.000067][INFO]             Retrying open vhd(x) 12/12
 [11:48:23.032][tid:00000e67.000067][INFO]             Status set to 11: Cannot open virtual disk
 [11:48:23.032][tid:00000e67.000067][INFO]             Error set to 32
 [11:48:23.032][tid:00000e67.000067][ERROR:00000020]   Failed to open virtual disk: \\AzureFileShare.file.core.windows.net\Profile_Store\mickey_Mickey_S-1-5-...\Profile_Mickey.vhdx (The process cannot access the file because it is being used by another process.)
 [11:48:23.032][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\PreventLoginWithFailure.  Using default: 0
 [11:48:23.034][tid:00000e67.000067][ERROR:0000001f]   LoadProfile failed.  User: Mickey. SID: S-1-5-21....-823518204-790525478-682003330-27835. (A device attached to the system is not functioning.)
 [11:48:23.034][tid:00000e67.000067][INFO]             loadProfile time: 62922 milliseconds
 [11:48:23.034][tid:00000e67.000067][INFO]           ===== End Session:  LoadProfile: Mickey
 [11:48:23.034][tid:00000e67.000067][INFO]           ===== End Session: Logon
 [11:48:23.116][tid:00000e44.00005568][INFO]           ===== Begin Session: Profile Directory Changed: S-1-5-21-823518204-790525478-682003330-27835
 [11:48:23.116][tid:00000e44.00005568][INFO]            New Profile Directory: C:\Users\Mickey
 [11:48:23.116][tid:00000e44.00005568][INFO]            Error set to 32
 [11:48:23.118][tid:00000e44.00005568][INFO]           ===== End Session: Profile Directory Changed: S-1-5-21-823518204-790525478-682003330-27835
 [11:48:30.279][tid:00000e67.000067][INFO]           ===== Begin Session: StartShell
 [11:48:30.280][tid:00000e67.000067][INFO]            User: SID: S-1-5-21.... (Mickey)
 [11:48:30.280][tid:00000e67.000067][INFO]            Acquiring mutex for user logon
 [11:48:30.280][tid:00000e67.000067][INFO]            Configuration setting not found: SOFTWARE\FSLogix\Profiles\LogonSyncMutexTimeout.  Using default: 60000
 [11:48:30.280][tid:00000e67.000067][INFO]            Mutex acquired
 [11:48:30.317][tid:00000e67.000067][INFO]           ===== Begin Session:  Logon notification: Mickey
 [11:48:30.317][tid:00000e67.000067][INFO]             Session configuration read (REG_SZ): SOFTWARE\FSLogix\Profiles\Sessions\SID: S-1-5-21....\ActivityId = 'a8f631f5-.........-c28a....d601'
 [11:48:30.317][tid:00000e67.000067][INFO]             Configuration setting not found: SOFTWARE\FSLogix\Profiles\ConcurrentUserSessions.  Using default: 1
 [11:48:30.317][tid:00000e67.000067][INFO]             Checking Profile Data Export for SID: S-1-5-21....
 [11:48:30.317][tid:00000e67.000067][INFO]             Error set to 32
 [11:48:30.317][tid:00000e67.000067][INFO]             No user VHD has been attached. This is not a profile we should handle
 [11:48:30.317][tid:00000e67.000067][INFO]           ===== End Session:  Logon notification: Mickey
 [11:48:30.330][tid:00000e67.000067][INFO]           ===== End Session: StartShell

Any help greatly appreciated

M









azure-virtual-desktopwindows-server-fslogix
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI
since there is forum, we can not post private information in here ,we can open a case to Microsoft professional support in WVD portal ,i think they help you.

0 Votes 0 ·

Hi @JiaYou-MSFT

Yes please let me log a call?

Can you send me your email and I will contact you from my work email?

Thanks, M

0 Votes 0 ·

HI
Have you opened a case for wvd issue ? I think process is the same .like picture.
48816-55.png


1 Vote 1 ·
55.png (57.7 KiB)
Show more comments
SenhorDolas-2197 avatar image
0 Votes"
SenhorDolas-2197 answered

Thanks everyone that replied back to me.
I have resolved this by rebootin the Virtual Machine that had my "good profile" on and this seemed to release it so FSLogix could saved it in the file share location.
After this I did some testing, removed icons from desktop, pinned some to taskbar and these followed me when I logged in to different pools and desktops.
What I was hopping to achieve was a way to see what was locking my profile and how I could release that lock without the need of a reboot.

Happy Xmas everyone
M

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
1 Vote"
AndreasBaumgarten answered SenhorDolas-2197 commented

Could you please check the following:

  • Navigate to the folder where the vxdx is stored.

  • Verify if there is a file with the extension *.lock

  • Open the *.lock file and see if there are some more details in the file. Even if the content is not "human readable" check if there is a computer name in the lock file.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AndreasBaumgarten

No, there is only the VHFX file there, no other files.

M

0 Votes 0 ·
FredrikEndresen-9130 avatar image
1 Vote"
FredrikEndresen-9130 answered SenhorDolas-2197 commented

Hey!

Fslogix now (from the latest version) uses the SID of the local include\exclude groups. So if the GPO is set up to Replace instead of Update, it will stop working after a gpupdate within users session. This because the local groups get recreated and get new SIDs. VHDX will then not detach at logoff, and users folder still be under C:\Users..

Based on your symptoms, I would have checked the GPO`s and make sure that the group settings are set to Update and NOT Replace.

Regards
Fredrik

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@FredrikEndresen-9130

Do you mean check the redir.xml file for exclusion for the GPO?
Not sure if I am following, would you be able to picture an example please?
Thanks, M

0 Votes 0 ·

Hi,

No, not XML file.

Check your Group Policy that add\removes members to "FSLogix Profile Include List" and "FSLogix Profile Exclude List".
Usually set under Computer Configuration - Preferences - Control Panel Settings - Local Users and Groups

If these get applied with "Replace" instead og "Update" you will get a problem like yours.

Regards
Fredrik

0 Votes 0 ·

@FredrikEndresen-9130

We don't have that setting on and the version of FSLogix agent is: 2.9.7349
can you include a pic of the setting?
Thanks

0 Votes 0 ·
FredrikEndresen-9130 avatar image
1 Vote"
FredrikEndresen-9130 answered

It`s not in the FSLogix templates / registry settings.


50114-fslogix-groups.png



fslogix-groups.png (23.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HamidiHarun-7459 avatar image
0 Votes"
HamidiHarun-7459 answered

in our environment, we added those settings on the image (computer management), and not in GPO. The update/replace options are not there. Will this also affecting us?

screenshot below:
![68996-image.png][1]



image.png (105.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.