question

WyattBest-2299 avatar image
0 Votes"
WyattBest-2299 asked AmitaMenon-3691 edited

FSLogix Mirror Error [ERROR:0000001d] C:\Users\\AppData\Roaming\Microsoft\Protect The system cannot write to the specified device.

We have a pool of 4 WVD session hosts. User profile storage is on Azure SMB share. Each time a user logs on, FSLogix reports errors for three folders:

[09:59:41.946][tid:00000e30.00003370][INFO] ===== Begin Session: Logon
[09:59:42.047][tid:00000e30.00003370][INFO] ===== Begin Session: LoadProfile: WBest
[09:59:44.047][tid:00000e30.00000e34][INFO] ===== Begin Session: Volume re-attach
[09:59:44.047][tid:00000e30.00000e34][INFO] ===== End Session: Volume re-attach
[09:59:44.797][tid:00000e30.00003370][ERROR:0000001d] Mirror error: C:\Users\WBest\AppData\Roaming\Microsoft\Protect -> C:\Users\local_WBest\AppData\Roaming\Microsoft\Protect (The system cannot write to the specified device.)
[09:59:44.857][tid:00000e30.00003370][ERROR:0000001d] Mirror error: C:\Users\WBest\AppData\Roaming\Microsoft\Credentials -> C:\Users\local_WBest\AppData\Roaming\Microsoft\Credentials (The system cannot write to the specified device.)
[09:59:44.907][tid:00000e30.00003370][ERROR:0000001d] Mirror error: C:\Users\WBest\AppData\Local\Microsoft\Credentials -> C:\Users\local_WBest\AppData\Local\Microsoft\Credentials (The system cannot write to the specified device.)
[09:59:45.337][tid:00000e30.00003370][INFO] ===== End Session: LoadProfile: WBest
[09:59:45.337][tid:00000e30.00003370][INFO] ===== End Session: Logon
[09:59:46.382][tid:00000e30.00003370][INFO] ===== Begin Session: StartShell

I checked manually; a text file placed in \AppData\Roaming\Microsoft\Protect does not persist across logins to WVD. If I manually mount my profile VHD after creating a text file and logging out, the text file is not present, and the timestamps on the files in Protect are very old (months). It appears that nothing is being written in either direction (log on or log off).

We have severe problems with Microsoft Office authentication; I think this may be the cause. Each time a user logs in and opens Outlook, Microsoft-Windows-AAD/Operational event logs begin to fill up with errors about being unable to decrypt the cached token in \AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\LocalState. I am guessing this relates to the above files and folders not persisting.

Any ideas what could cause this?

azure-virtual-desktopwindows-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.

KarlieWeng-MSFT avatar image
1 Vote"
KarlieWeng-MSFT answered WyattBest-2299 commented

Hello @WyattBest-2299

Would it be related with this registry :

RobocopyLogPath REG_SZ

Specifies a log file name and path where the output of robocopy calls (for example, during mirroring of data in or out of a VHD) will be logged. If the value is non-existent, then the robocopy results are not logged at all. This setting is recommended to be used only for troubleshooting.

Reference article Logging and diagnostics



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.

Best Regards
Karlie

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

My problem was that RobocopyLogPath was set to a directory path only and didn't include a filename. This caused robocopy to crash. Providing a valid filename resolved the problem.

Bad value: \\fileserver\Home\Groups\ITS\FSLogixLogs\%ComputerName%
Correct value: \\fileserver\Home\Groups\ITS\FSLogixLogs\%ComputerName%\robocopy.log



0 Votes 0 ·
WyattBest-2299 avatar image
0 Votes"
WyattBest-2299 answered WyattBest-1453 edited

Hello @KarlieWeng-MSFT,

Yes, that registry key is set. I believe that the failure to mirror these folders is causing our Office authentication to fail.

Do you know whether I should expect the contents of these three folders to persist across sessions?

Sincerely,
Wyatt Best

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.

47451047 avatar image
0 Votes"
47451047 answered WyattBest-2299 commented

RobocopyLogPath - I can't set it up in group policies ? Because I don't see it there.

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

You can set a Registry key under Computer Configuration > Preferences > Windows Setting > Registry.

In my screenshot, I have set the action to delete because I no longer need it:
118747-image.png


0 Votes 0 ·
image.png (49.1 KiB)
47451047 avatar image
0 Votes"
47451047 answered WyattBest-2299 commented

I installed manually, restarted the server, but the file is not there.

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

I would suggest you create a new question.

0 Votes 0 ·