question

GraemeBennett-9240 avatar image
0 Votes"
GraemeBennett-9240 asked LeilaKong-MSFT answered

FSLogix Profile Containers. Failed to delete C:\Users\local_username (The directory is not empty.) (Access is denied.)

I am having an issue where some of the FSLogix temporary folders do not get deleted when the user logs off. The next time they log in, they will get a folder C:\Users\local_username1 (where the '1' is appended to the end).
This causes issues with some programs; they will error trying to access the users %TEMP% or %TMP%.
The error in C:\ProgramData\FSLogix\Logs\Profile states that:
Failed to delete C:\Users\local_username (The directory is not empty.)
Failed to delete C:\Users\local_username (Access is denied.)

Here is some background information:
- Windows Server 2019 Standard [10.0.17763 N/A Build 17763]
- Microsoft FSlogix Apps [2.9.7654.46150]
- Six (6) Servers in the collection. Aproximately 80 users per server.
- VHD located on a Samba share; RAID 10; good performance
- Policies
Administrative Templates
FSLogix
Days to keep log files Enabled 1
Enable logging Enabled All logs enabled
FSLogix/Profile Containers
Delete local profile when FSLogix Profile should apply Enabled
Enabled Enabled
VHD location Enabled \\SOMESERVER\Profiles
FSLogix/Profile Containers/Advanced
Keep local folder after user logs out Disabled
Redirect temporary file folders to local computer Enabled Redirect TEMP, TMP and INetCache to local drive

Any suggestions would be appreciated.

windows-server-fslogix
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.

ThomasBrandlehner-1945 avatar image
0 Votes"
ThomasBrandlehner-1945 answered
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.

LeilaKong-MSFT avatar image
0 Votes"
LeilaKong-MSFT answered

Hello @GraemeBennett-9240 ,

Thanks for your query.

1.Will the issue be fixed if you downgrade to FSLogix 2004 (2.9.7349.30108)?
2.Please 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.
https://www.meinekleinefarm.net/caution-fslogix-2009-2-9-7621-30127-profiles-wont-logoff-completely/
3.Please also check the following post similar with your problem:
https://docs.microsoft.com/en-us/answers/questions/229309/fslogix-unclean-logoff-causing-locked-files-until.html?page=1&pageSize=10&sort=oldest
4.The next version of FSLogix is scheduled to be released due June 2021. You may check then if the issue can be fixed with the new version, thank you.


Best regards,
Leila


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



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.

LeilaKong-MSFT avatar image
0 Votes"
LeilaKong-MSFT answered

Hello @GraemeBennett-9240 ,

Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.

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.

LeilaKong-MSFT avatar image
0 Votes"
LeilaKong-MSFT answered

Hello @GraemeBennett-9240 ,

We haven’t heard from you in a couple of days.
How are things going there on this issue?

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.

KuhnMarc-3050 avatar image
0 Votes"
KuhnMarc-3050 answered

Hi all

we also are struggeling with the FSLogix local Profiles. We initially had the following setup:

  • Server 2019

  • Citrix CVAD 1912 CU1

  • FSLogix 2.9.7654.46150

  • Permissions on Folder with VHDX User Profile Disk (This folder only / Full Control)

We discovered that everything is running well, but the local Profiles are still present after a user logoff. In the log we see that error:

Failed to delete C:\Users\local_username (Access is denied.)

Then we tried today to install the latest version (2.9.7838.44263) on a Test VDA. Now we receive that error here:

Failed to delete C:\Users\local_username (The directory is not empty.)

Does anybody having the same issues or is this solved? By the way, we also have this regkey in place:

HKEY_LOCAL_MACHINE\SOFTWARE\FSLogix\Apps\CleanupInvalidSessions (REG_DWORD, 0x1)

What we saw, that if i just login and logout it is working just fine. If i start to use tools like Adobe Acrobat or Outlook the local Profile get's stuck after logout.

Is there any solution for that?

Many thanks for your help.

Best regards,
Marc










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.

LeilaKong-MSFT avatar image
0 Votes"
LeilaKong-MSFT answered

Hello @GraemeBennett-9240 ,

Thanks for your feedback.

Did you try to downgrade to FSLogix 2004 (2.9.7349.30108) and check if the issue can be resolved?

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.

KuhnMarc-3050 avatar image
0 Votes"
KuhnMarc-3050 answered LeilaKong-MSFT commented

Hi Leila

no, but we will try to do so and let you know.

Best regards,
Marc

· 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.

Hello @KuhnMarc-3050 ,

Thanks for your cooperation! I'm looking forward to your feedback.
https://docs.microsoft.com/en-us/fslogix/whats-new

0 Votes 0 ·
KuhnMarc-3050 avatar image
0 Votes"
KuhnMarc-3050 answered

Hi Leila

as far as we can tell everything seems to work with 2004. Thanks for your help on that. I'm wondering why MS wasn't able to correct that in the new release just came out.

Best regards,
Marc

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.

KuhnMarc-3050 avatar image
0 Votes"
KuhnMarc-3050 answered

Hi Leila

i'm sorry, wrong feedback. We still have the same issues with the Version 2004, some profiles can't be deleted after logout, so that's not the solution. At least for our case.

Any other thoughts on this or was anybody able to solve that?

Best regards,
Marc

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.

AndreaSima avatar image
0 Votes"
AndreaSima answered

We also have the same problem with FSlogix version 2.9.7838.44263.
Servers are 2016 datacenters.

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.