FsLogix - Unclean logoff causing locked files until server reboot

Much R 71 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?

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,249 questions
FSLogix
FSLogix
A set of solutions that enhance, enable, and simplify non-persistent Windows computing environments and may also be used to create more portable computing sessions when using physical devices.
463 questions
{count} votes

105 answers

Sort by: Most helpful
  1. Fredrik Endresen 91 Reputation points
    2021-01-15T13:11:34.21+00:00

    Check your GPO settings that defines the local FSLogix include\exclude groups.

    FSLogix now 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.

    This may cause the problem you describe.

    0 comments No comments

  2. Much R 71 Reputation points
    2021-01-15T15:23:03.35+00:00

    Hi there,

    Thanks to everyone for the answers.

    @ KarlieWeng-MSFT:

    1. We only used FSLogix on Windows 2019 RDS server.
    2. Software is only installed with admin users.
    3. I already know the article. It also happens to users with a new profile.
    4. The error with the GPO occurs when the folders described above are blocked by "System" or "lsass.exe". Only a restart releases the folder again. Then the logon works without any problems. Even several days ...

    @ FredrikEndresen-9130:
    We do not use a GPO to distribute or configure the groups. I do this manually for each RDS server.

    Thanks

    0 comments No comments

  3. Much R 71 Reputation points
    2021-01-21T16:07:18.98+00:00

    Hi,

    I found Marco's article describing the same problem.

    He also confirms the problem with the new version of FSLogix

    Link: caution-fslogix-2009-2-9-7621-30127-profiles-wont-logoff-completely

    0 comments No comments

  4. Much R 71 Reputation points
    2021-01-22T07:37:31.043+00:00

    Hi,

    I saw that there is a update for the version 2009.
    whats-new

    Unfortunately, this doesn’t solve the problem either.

    Best regards
    Michael

    0 comments No comments

  5. Bracko Ewald 21 Reputation points
    2021-01-25T16:16:19.713+00:00

    We are encountering the same issue with the 2004 release (2.9.7349.30108), too.
    The fslogix agent doesn't delete the redirections and unmount the containers on rare occasions.
    But when it starts to happen more and more users are affected.
    A reboot of the system will "fix" it for the moment.
    Maybe this is caused by another Microsft update...