Hi,
we´re using here an VMWare Horizon 8 VDI Environment.
Our User Profiles are based on AppV Writables (User Profile Only).
Cause of the fact the profiles grow, we would to clean up the folder.
I want to beginn with Temp Folder in LocalAppData cause it´s the biggest trash folder.
So, i set up Profile Clean Up in DEM. Now, when i logoff, the Temp Folder get not be cleared.
In Flexengine.log i get the Following Error Messages:
2022-12-20 15:39:39.009 [DEBUG] Profile cleanup: Cleaning folder '<LocalAppData>\Temp'
2022-12-20 15:39:39.009 [ERROR] Profile cleanup: '<LocalAppData>\Temp' is not a valid path
In my DEM Console, i´ve set it up as to see on the screenshot.
There seems to be an error in my configuration.
But i found no example from VMWare how it must setup.
So i ask you for help.
Thanks.
With best regards,
Tjorben Rademakers
Hi @TRademakers,
Your config file looks OK.
I seem to recall an issue where App Volumes (sometimes?) detaches the writable volume before the DEM agent gets to run at logoff. If that happens, the user profile is no longer around, which means that DEM can't determine the physical folder corresponding with the <LocalAppData> folder token, as the Win32 call to get that user profile sub folder fails.
Can you provide the App Volumes svservice.log file together with the corresponding FlexEngine.log, either here or in a private message?
Hi @DEMdev ,
thanks for your reply.
That makes sense.
I want to provide you the logs.
But we´re using VMWare Instant Clone Tecnology. So i can´t get the svservice.log while the user log off cause the vm will be deleted.
I´ve searched for an option to provide an alternative path where the svservice.log should be written, but found nothing.
So, how i can get the svservice.log while the user logs off ?
Is there an option to provide an alternative path where the svservice.log gets written ?
In attachment i´ve provided you the FlexEngine.Log and the svservice.log from my Test today.
Hi @TRademakers,
Frohes neues Jahr and thank you for the log files. I don't know much about App Volumes, and I have no idea how/whether you could collect the svservice.log post-logoff. However, the logs you provided contain sufficient information.
These errors in the FlexEngine log indicate that the Windows user profile is no longer "available" when DEM runs at logoff:
2023-01-02 15:43:02.710 [INFO ] Starting FlexEngine v10.2.0.976 [IFP#d26188a1-4c019d>>]
[...]
2023-01-02 15:43:02.716 [ERROR] Error determining location of UserProfile folder
[...]
2023-01-02 15:43:02.716 [ERROR] LogProfileState: Error opening key 'Software\Microsoft\Windows NT\[...]'
[...]
2023-01-02 15:43:02.734 [ERROR] LogProfileState: Error opening key 'Software\Microsoft\Windows NT\[...]'
svservice.log shows some activity a little while before the logoff (these timestamps are in UTC, so one hour earlier than the local times in the FlexEngine log):
[2023-01-02 14:42:54.324 UTC] [svservice:P1564:T11012] OnTerminateShell called (Session([1][]), Handle [...]
[...]
[2023-01-02 14:42:59.512 UTC] [svservice:P1564:T11012] CAvApp::NotifyAppEvent: [Unload-Writable][...]
Even without knowing much about App Volumes I'm pretty confident that that "Unload-Writable" is a strong indication that the writable volume (containing the Windows user profile) is no longer attached when the DEM agent gets to run during logoff, which matches the symptoms we see in the FlexEngine log.
I'll see what I can find out internally about this, but don't let that keep you from opening a support case.
