FsLogix - Unclean logoff causing locked files until server reboot

Much R 101 Reputation points
2021-01-13T16:29:50.18+00:00

Problem is described by M4deman under unclean-logoff-causing-locked-files-until-server-reboot

It seems to have something to do with the 2009 version.
The latest version of FSLogix is installed whats-new

Description

After a user logoff, the "System" Process (PID 4) locks the following folders:

C:\Users\local_username\AppData\Local\Microsoft\Credentials
C:\Users\local_username\AppData\Roaming\Microsoft\Credentials

The user is completely logged of, according to Task Manager.

In the FSLogix Profile Log file I can see the following:

[07:53:55.601][tid:00000c90.0000ce44][ERROR:00000020] Delete profile failed for sid S-1-5-21-3364776539-3721753400-1968955100-1179, Cleaning up manually. (Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.)
The last sentence means that the process cannot access the file, because another process already uses it.

Also the whole "local_username" folder cannot be deleted:

[08:23:15.479][tid:00000c90.0000bcc4][WARN: 00000005] Failed to delete C:\Users\local_usename (Access is denied)
Access Denied

Does someone have any info on this behaviour?

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Windows for business | Windows Client for IT Pros | User experience | FSLogix

107 answers

Sort by: Oldest
  1. BananaBread-1757 1 Reputation point
    2021-09-27T23:25:16.967+00:00

    We too are facing this issue with a recent implementation. We have other sites setup with fsl running on the older versions without issues.

    In addition to the black screen logons, we also experience users where they cannot connect to any 365 services. Appears to be related to aad/ssso in cominbation with fsl.

    We have a case logged with MS, and still waiting to hear back from them..

    Was this answer helpful?

    0 comments No comments

  2. Robert Berggren 1 Reputation point
    2021-09-28T16:53:52.21+00:00

    Today I got the "The Group Policy Client service failed the sign-in" Access denied.

    I found this workaround to at least let the user in again. HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileService\References\<sid affected user>
    RefCount set the value to 0. Then when the user logged in a new local_username was created. Would it be possible to zero out this key at log off somehonw?

    Was this answer helpful?


  3. Андрей Михалевский 3,476 Reputation points
    2021-10-12T06:57:06.257+00:00

    Was this answer helpful?


  4. Brandon Clark 1 Reputation point
    2021-10-19T13:10:26.007+00:00

    Hey all, just so you're aware. I troubleshot this error along with Microsoft Support for 48 hours straight. In that time I got to learn FsLogix pretty well. In OUR case, it was Symantec DLP, the Data Loss Protection software. The issue was our DLP software was OUT OF DATE. DLP (from Symantec/Broadcom) uses a FILTER DRIVER. This out of date filter driver was causing ONEDRIVE to hang, which in turn caused the Office Container to hang because of a stuck handle. Once we ugpraded our Symnatec DLP from 15.5 to 15.7, the issue went away. This was confirm with an open ticket to Broadcom as well.

    Was this answer helpful?


  5. Martijn Kools 171 Reputation points
    2021-10-19T14:13:13.96+00:00

    I have two different Citrix environments. Both are pretty much identical. Same FSLogix version, same GPOs, same patch level. Almost same everything except for the language and some apps.

    Both run on Citrix PVS, Windows Server 2019 with XenApp 1912 LTSR CU3, FSLogix 2105. Both vdisks are monthly rebuilt from scratch, fully scripted.

    On one env I have the issue:

    [01:20:09.192][tid:00001990.00001ff8][WARN: 00000005] Failed to delete C:\Users\local_x (Access is denied.)
    [01:20:09.192][tid:00001990.00001ff8][WARN: 00000005] Failed to delete C:\Users\local_x (Access is denied.)
    [01:20:09.192][tid:00001990.00001ff8][WARN: 00000005] Failed to delete C:\Users\local_x (Access is denied.)
    [01:20:09.192][tid:00001990.00001ff8][WARN: 00000005] Failed to delete C:\Users\local_x (Access is denied.)
    [01:20:09.192][tid:00001990.00001ff8][WARN: 00000005] Failed to delete C:\Users\local_x (Access is denied.)

    On the other one I don't:

    [15:17:25.851][tid:000017d4.000068e0][INFO] Successfully removed C:\Users\local_x

    Both run Windows Defender with the EXACT same settings (they even share the same GPO).

    I checked BrandonClark's command fltmc filters and they give the same output on both envs.

    So why does it not work on env A and why does it work on env B?

    Luckily, I don't have the issue where the users can't re-logon and the vdisk is locked. The vdisk actually is not locked any longer after logoff and people can just relogon. If they happen to hit the same server it will usually create a different folder like local_username_1 or something like that.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.