FSLOGIX – Error: VHD fails to attach “Container is already attached for another session”

ERROR: VHD(X) Fails to attached with “Container is already attached for another session” or “Status set to 300: The profile is already attached “show in logs

Reviewing the log file (C:\ProgramData\FsLogix\ODBC)

Below is an example of log file

Log file created 2017-07-10 at 08:23:08
UTC-00:00
Origin: C:\Program Files\FSLogix\Apps\frxsvc.exe (Version 2.8.6324.41468)
Windows 10.0.14393 (64-bit)
Computer Name: W10-LTSG2016 User Name: SYSTEM
WinDir: C:\Windows 
User Profile: C:\Windows\system32\config\systemprofile
Profile Version: 6
Installed system RAM: 4087 MB (load: 19 %)
Username: ctxuser1

FSLogix Service Version 2.8.6324.41468 Status: RUNNING
FSLogix Kernel Driver Version 2.8.6324.41468 Status: RUNNING
FSLogix Kernel Virtualization Driver Version 2.8.6324.41468 Status: RUNNING
---------------------------------------------------------------
[2017-07-10 08:23:08.622][pid:0b90][tid:0e58] ===== Begin: Attach Outlook Data Folder Container:ctxuser1 =====
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\RedirectType. Using default: 2
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] SID: S-1-5-21-3689082623-3625213197-2346425944-1119
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\Enabled. Data: 1
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] User is a member of the include group
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\ConcurrentUserSessions. Using default: 1
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] Container is already attached for another session
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] Status set to 300: The profile is already attached
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] [INFO :0x00000000] Container refcount incremented to: 3
[2017-07-10 08:23:08.653][pid:0b90][tid:0e58] ===== End: Attach Outlook Data Folder Container:ctxuser1 =====

 

VHDAccessMode being used is default = “0” which is Client tries to directly attach the VHD(X) file and Single VDI with User account being used.

CAUSE:

Unexpected shutdown/termination of Users Session/device leaves the Session information on device. This prevents fslogix mapping the VHD for users that where logged in during the unexpected termination. All other users are unaffected.

SOLUTION:

Option 1:

Update to lastest FSLogix version 2.8.4 (2.8.6374.42306) as it clears the session information during computer startup to prevent issue happening

Option 2:-

Step 1: Log into affected Server/Desktop

Step 2: Launch Registry Editor and Browse to the following registry location

HKEY_LOCAL_MACHINE\SOFTWARE\POLICIES\FSLOGIX\ODFC\Sessions (as per below screenshot)

fslogix_REG_LOCAITON_NOT_ATTACHED

Step 2: Delete any User SID’s contained here, (you must be an administrator to remove these registry keys) as this is normally removed upon a successful user logoff

Step 3:  Log off as administrator and Log back in as affected user/users

Step 4: VHD(X) will attached as per normal (see log file below showing attachment successful.

[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] ===== Begin: Attach Outlook Data Folder Container:ctxuser1 =====
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\RedirectType. Using default: 2
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] SID: S-1-5-21-3689082623-3625213197-2346425944-1119
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\Enabled. Data: 1
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] User is a member of the include group
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\ConcurrentUserSessions. Using default: 1
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDAccessMode. Using default: 0
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\AttachVHDSDDL. Using default:
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\OutlookFolderPath. Using default:
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] ODFC path: C:\Users\ctxuser1\AppData\Local\Microsoft\Outlook
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\NoProfileContainingFolder. Using default: 0
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration Read (REG_SZ): SOFTWARE\Policies\FSLogix\ODFC\VHDLocations.
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\FlipFlopProfileDirectoryName. Data: 1
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDNameMatch. Using default: ODFC*
[2017-07-10 08:40:53.604][pid:0b90][tid:0e58] [INFO :0x00000000] Looking in: \\LAB-DC1\O365Container\fslogix
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] VHD(X) not found in : \\LAB-DC1\O365Container\fslogix
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Existing VHD(X) not found in any of the specified locations
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Searching locations for one where a VHD can be created
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] We have Create access: \\LAB-DC1\O365Container\fslogix\ctxuser1_S-1-5-21-3689082623-3625213197-2346425944-1119
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] ODFC VHD not found. Creating new VHD.
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\DirectAttachOnCreateVHD. Using default: FALSE
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDNamePattern. Using default: ODFC_%username%
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration Read (REG_SZ): SOFTWARE\Policies\FSLogix\ODFC\VolumeType. Data: VHDX
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDXSectorSize. Using default: 0
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\SizeInMBs. Using default: 30000
[2017-07-10 08:40:53.636][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\IsDynamic. Using default: TRUE
[2017-07-10 08:40:56.870][pid:0b90][tid:0e58] [INFO :0x00000000] VirtualDiskAPI::CreateDisk success
[2017-07-10 08:41:00.089][pid:0b90][tid:0e58] [INFO :0x00000000] Formatting volume \\?\Volume{026574b0-2d7f-401f-9693-fd14c50b1376}\
[2017-07-10 08:41:38.384][pid:0b90][tid:0e58] [INFO :0x00000000] Format Complete
[2017-07-10 08:41:38.525][pid:0b90][tid:0e58] [INFO :0x00000000] ODFC Root VHD Path: \\LAB-DC1\O365Container\fslogix\ctxuser1_S-1-5-21-3689082623-3625213197-2346425944-1119\ODFC_ctxuser1.VHDX
[2017-07-10 08:41:38.525][pid:0b90][tid:0e58] [INFO :0x00000000] Current VHD Type: VHDX
[2017-07-10 08:41:38.556][pid:0b90][tid:0b94] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\ReAttachRetryCount. Using default: 60
[2017-07-10 08:41:38.556][pid:0b90][tid:0b94] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\ReAttachIntervalSeconds. Using default: 10
[2017-07-10 08:41:39.009][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VolumeWaitTimeMS. Using default: 20000
[2017-07-10 08:41:39.103][pid:0b90][tid:0e58] [INFO :0x00000000] AttachVirtualDisk success
[2017-07-10 08:41:39.462][pid:0b90][tid:0e58] [INFO :0x00000000] Volume name: \\?\Volume{026574b0-2d7f-401f-9693-fd14c50b1376}\
[2017-07-10 08:41:39.462][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\MirrorLocalOSTToVHD. Data: 1
[2017-07-10 08:41:39.462][pid:0b90][tid:0e58] [INFO :0x00000000] New Outlook VHD. Mirroring previous Outlook data to VHD
[2017-07-10 08:41:39.603][pid:0b90][tid:0e58] [ERROR:0x0000001d] CopyDirectory (Error: 29 / The system cannot write to the specified device. )
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] Added redirection C:\Users\ctxuser1\AppData\Local\Microsoft\Outlook -> \\?\Volume{026574b0-2d7f-401f-9693-fd14c50b1376}\ODFC
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] Status set to 0: Success
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] ODFC setup successful
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\FSLogix\Apps\RoamSearch. Using default: 0
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\RoamSearch. Using default: 0
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] Configuration setting not found: SOFTWARE\FSLogix\Profiles\RoamSearch. Using default: 0
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] Search is not configured
[2017-07-10 08:41:39.619][pid:0b90][tid:0e58] [INFO :0x00000000] HKCU is available and locked
[2017-07-10 08:41:39.634][pid:0b90][tid:0e58] [INFO :0x00000000] Restoring OneDrive credentials
[2017-07-10 08:41:39.634][pid:0b90][tid:0e58] [INFO :0x00000000] No OneDrive tenant found
[2017-07-10 08:41:39.634][pid:0b90][tid:0e58] [INFO :0x00000000] OneDrive setup successful
[2017-07-10 08:41:39.634][pid:0b90][tid:0e58] [INFO :0x00000000] Container refcount incremented to: 1
[2017-07-10 08:41:39.634][pid:0b90][tid:0e58] ===== End: Attach Outlook Data Folder Container:ctxuser1 =====

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s