K
Ken L
I have two Windows XP Pro users on my network that are both seeing problems
when logging on. They receive the following message:
Windows cannot load the locally stored profile. Possible causes of this
error include insufficient security rights or a corrupt local profile. If
this problem persists, contact your network administrator.
The process cannot access the file because it is being used by another
process.
Windows creates a new, temporary profile directory for the user. If the
user then does a Windows restart and logs back into the domain (using the
same credentials as used in the original logon attempt), their usual profile
gets loaded without any problem.
Both users do a logoff at the end of the day. They see the error when they
log back into the network the next morning. The only thing that ran against
the machines overnight was ntbackup which showed a normal completion in its
log.
Does anyone have any idea what's going on here and how to logon without
requiring a restart?
Thanks in advance for any assistance. Please post any replies only to the
newgroup.
Ken L.
PS:
I turned on the registry entry to do verbose logging of the startup process.
The last several messages in the userenv.log just before the error message
is issued are as follows.
USERENV(280.284) 08:06:09:378 LoadUserProfile: Yes, we can impersonate the
user. Running as self
USERENV(280.284) 08:06:09:378
=========================================================
USERENV(280.284) 08:06:09:378 LoadUserProfile: Entering, hToken = <0x8fc>,
lpProfileInfo = 0x6e3e0
USERENV(280.284) 08:06:09:378 LoadUserProfile: lpProfileInfo->dwFlags =
<0x0>
USERENV(280.284) 08:06:09:378 LoadUserProfile: lpProfileInfo->lpUserName =
<gun>
USERENV(280.284) 08:06:09:378 LoadUserProfile: NULL central profile path
USERENV(280.284) 08:06:09:378 LoadUserProfile: lpProfileInfo->lpDefaultPath
= <\\KCFILE1\netlogon\Default User>
USERENV(280.284) 08:06:09:378 LoadUserProfile: NULL server name
USERENV(280.284) 08:06:09:378 LoadUserProfile: In console winlogon process
USERENV(280.284) 08:06:09:378 In LoadUserProfileP
USERENV(280.284) 08:06:09:394
=========================================================
USERENV(280.284) 08:06:09:394 LoadUserProfile: Entering, hToken = <0x8fc>,
lpProfileInfo = 0x6e3e0
USERENV(280.284) 08:06:09:394 LoadUserProfile: lpProfileInfo->dwFlags =
<0x0>
USERENV(280.284) 08:06:09:394 LoadUserProfile: lpProfileInfo->lpUserName =
<gun>
USERENV(280.284) 08:06:09:394 LoadUserProfile: NULL central profile path
USERENV(280.284) 08:06:09:394 LoadUserProfile: lpProfileInfo->lpDefaultPath
= <\\KCFILE1\netlogon\Default User>
USERENV(280.284) 08:06:09:394 LoadUserProfile: NULL server name
USERENV(280.284) 08:06:09:394 LoadUserProfile: User sid:
S-1-5-21-1614895754-1214440339-1417001333-1124
USERENV(280.284) 08:06:09:394 CSyncManager::EnterLock
<S-1-5-21-1614895754-1214440339-1417001333-1124>
USERENV(280.284) 08:06:09:394 CSyncManager::EnterLock: No existing entry
found
USERENV(280.284) 08:06:09:394 CSyncManager::EnterLock: New entry created
USERENV(280.284) 08:06:09:394 CHashTable::HashAdd:
S-1-5-21-1614895754-1214440339-1417001333-1124 added in bucket 20
USERENV(280.284) 08:06:09:394 LoadUserProfile: Wait succeeded. In critical
section.
USERENV(280.284) 08:06:09:409 RestoreUserProfile: Entering
USERENV(280.284) 08:06:09:409 RestoreUserProfile: User is a Admin
USERENV(280.284) 08:06:09:409 IsCentralProfileReachable: Entering
USERENV(280.284) 08:06:09:409 IsCentralProfileReachable: Null path.
Leaving
USERENV(280.284) 08:06:09:409 RestoreUserProfile: Profile path = <>
USERENV(280.284) 08:06:09:409 ExtractProfileFromBackup: A profile already
exists
USERENV(280.284) 08:06:09:409 PatchNewProfileIfRequred: A profile already
exists with the current sid, exitting
USERENV(280.284) 08:06:09:409 CreateLocalProfileKey: Not setting additional
Security
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Found entry in
profile list for existing local profile
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Local profile
image filename = <%SystemDrive%\Documents and Settings\gun>
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Expanded local
profile image filename = <C:\Documents and Settings\gun>
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: No local
mandatory profile. Error = 2
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Found local
profile image file ok <C:\Documents and Settings\gun\ntuser.dat>
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Failed to query
low profile unload time with error 2
USERENV(280.284) 08:06:09:425 Local Existing Profile Image is reachable
USERENV(280.284) 08:06:09:425 Local profile name is <C:\Documents and
Settings\gun>
USERENV(280.284) 08:06:09:425 RestoreUserProfile: No central profile.
Attempting to load local profile.
USERENV(280.284) 08:06:09:456 MyRegLoadKey: Failed to load subkey
<S-1-5-21-1614895754-1214440339-1417001333-1124>, error =32
USERENV(280.284) 08:06:09:456 MyRegLoadKey: Returning 00000020
USERENV(280.284) 08:06:09:456 RestoreUserProfile: MyRegLoadKey returned
FALSE.
USERENV(280.284) 08:06:09:456 ReportError: Impersonating user.
USERENV(280.284) 08:06:09:487 ReportError: Logging Error <Windows cannot
load the locally stored profile. Possible causes of this error include
insufficient security rights or a corrupt local profile. If this problem
persists, contact your network administrator.
DETAIL - The process cannot access the file because it is being used by
another process.
USERENV(280.284) 08:06:09:487 ErrorDialogEx: Calling DialogBoxParam
USERENV(280.284) 08:06:09:534 ErrorDlgProc:: DialogBoxParam
USERENV(280.284) 08:06:11:425 RestoreUserProfile: Failed to load local
profile and profile path is NULL, going to overwrite local profile
USERENV(280.284) 08:06:11:425 RestoreUserProfile: Issuing default profile
USERENV(280.284) 08:06:11:440 RestoreUserProfile: Deleting cached profile
directory <C:\Documents and Settings\gun>.
USERENV(280.284) 08:06:11:472 ReportError: Impersonating user.
USERENV(280.284) 08:06:11:472 CreateLocalProfileImage: One way or another
we haven't got an existing local profile, try and create one
USERENV(280.284) 08:06:11:472 GetUserDomainName: DomainName = <YYNET>
USERENV(280.284) 08:06:11:487 CreateSecureDirectory: Entering with
<C:\Documents and Settings\TEMP.YYNET.025>
when logging on. They receive the following message:
Windows cannot load the locally stored profile. Possible causes of this
error include insufficient security rights or a corrupt local profile. If
this problem persists, contact your network administrator.
The process cannot access the file because it is being used by another
process.
Windows creates a new, temporary profile directory for the user. If the
user then does a Windows restart and logs back into the domain (using the
same credentials as used in the original logon attempt), their usual profile
gets loaded without any problem.
Both users do a logoff at the end of the day. They see the error when they
log back into the network the next morning. The only thing that ran against
the machines overnight was ntbackup which showed a normal completion in its
log.
Does anyone have any idea what's going on here and how to logon without
requiring a restart?
Thanks in advance for any assistance. Please post any replies only to the
newgroup.
Ken L.
PS:
I turned on the registry entry to do verbose logging of the startup process.
The last several messages in the userenv.log just before the error message
is issued are as follows.
USERENV(280.284) 08:06:09:378 LoadUserProfile: Yes, we can impersonate the
user. Running as self
USERENV(280.284) 08:06:09:378
=========================================================
USERENV(280.284) 08:06:09:378 LoadUserProfile: Entering, hToken = <0x8fc>,
lpProfileInfo = 0x6e3e0
USERENV(280.284) 08:06:09:378 LoadUserProfile: lpProfileInfo->dwFlags =
<0x0>
USERENV(280.284) 08:06:09:378 LoadUserProfile: lpProfileInfo->lpUserName =
<gun>
USERENV(280.284) 08:06:09:378 LoadUserProfile: NULL central profile path
USERENV(280.284) 08:06:09:378 LoadUserProfile: lpProfileInfo->lpDefaultPath
= <\\KCFILE1\netlogon\Default User>
USERENV(280.284) 08:06:09:378 LoadUserProfile: NULL server name
USERENV(280.284) 08:06:09:378 LoadUserProfile: In console winlogon process
USERENV(280.284) 08:06:09:378 In LoadUserProfileP
USERENV(280.284) 08:06:09:394
=========================================================
USERENV(280.284) 08:06:09:394 LoadUserProfile: Entering, hToken = <0x8fc>,
lpProfileInfo = 0x6e3e0
USERENV(280.284) 08:06:09:394 LoadUserProfile: lpProfileInfo->dwFlags =
<0x0>
USERENV(280.284) 08:06:09:394 LoadUserProfile: lpProfileInfo->lpUserName =
<gun>
USERENV(280.284) 08:06:09:394 LoadUserProfile: NULL central profile path
USERENV(280.284) 08:06:09:394 LoadUserProfile: lpProfileInfo->lpDefaultPath
= <\\KCFILE1\netlogon\Default User>
USERENV(280.284) 08:06:09:394 LoadUserProfile: NULL server name
USERENV(280.284) 08:06:09:394 LoadUserProfile: User sid:
S-1-5-21-1614895754-1214440339-1417001333-1124
USERENV(280.284) 08:06:09:394 CSyncManager::EnterLock
<S-1-5-21-1614895754-1214440339-1417001333-1124>
USERENV(280.284) 08:06:09:394 CSyncManager::EnterLock: No existing entry
found
USERENV(280.284) 08:06:09:394 CSyncManager::EnterLock: New entry created
USERENV(280.284) 08:06:09:394 CHashTable::HashAdd:
S-1-5-21-1614895754-1214440339-1417001333-1124 added in bucket 20
USERENV(280.284) 08:06:09:394 LoadUserProfile: Wait succeeded. In critical
section.
USERENV(280.284) 08:06:09:409 RestoreUserProfile: Entering
USERENV(280.284) 08:06:09:409 RestoreUserProfile: User is a Admin
USERENV(280.284) 08:06:09:409 IsCentralProfileReachable: Entering
USERENV(280.284) 08:06:09:409 IsCentralProfileReachable: Null path.
Leaving
USERENV(280.284) 08:06:09:409 RestoreUserProfile: Profile path = <>
USERENV(280.284) 08:06:09:409 ExtractProfileFromBackup: A profile already
exists
USERENV(280.284) 08:06:09:409 PatchNewProfileIfRequred: A profile already
exists with the current sid, exitting
USERENV(280.284) 08:06:09:409 CreateLocalProfileKey: Not setting additional
Security
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Found entry in
profile list for existing local profile
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Local profile
image filename = <%SystemDrive%\Documents and Settings\gun>
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Expanded local
profile image filename = <C:\Documents and Settings\gun>
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: No local
mandatory profile. Error = 2
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Found local
profile image file ok <C:\Documents and Settings\gun\ntuser.dat>
USERENV(280.284) 08:06:09:425 GetExistingLocalProfileImage: Failed to query
low profile unload time with error 2
USERENV(280.284) 08:06:09:425 Local Existing Profile Image is reachable
USERENV(280.284) 08:06:09:425 Local profile name is <C:\Documents and
Settings\gun>
USERENV(280.284) 08:06:09:425 RestoreUserProfile: No central profile.
Attempting to load local profile.
USERENV(280.284) 08:06:09:456 MyRegLoadKey: Failed to load subkey
<S-1-5-21-1614895754-1214440339-1417001333-1124>, error =32
USERENV(280.284) 08:06:09:456 MyRegLoadKey: Returning 00000020
USERENV(280.284) 08:06:09:456 RestoreUserProfile: MyRegLoadKey returned
FALSE.
USERENV(280.284) 08:06:09:456 ReportError: Impersonating user.
USERENV(280.284) 08:06:09:487 ReportError: Logging Error <Windows cannot
load the locally stored profile. Possible causes of this error include
insufficient security rights or a corrupt local profile. If this problem
persists, contact your network administrator.
DETAIL - The process cannot access the file because it is being used by
another process.
USERENV(280.284) 08:06:09:487 ErrorDialogEx: Calling DialogBoxParam
USERENV(280.284) 08:06:09:534 ErrorDlgProc:: DialogBoxParam
USERENV(280.284) 08:06:11:425 RestoreUserProfile: Failed to load local
profile and profile path is NULL, going to overwrite local profile
USERENV(280.284) 08:06:11:425 RestoreUserProfile: Issuing default profile
USERENV(280.284) 08:06:11:440 RestoreUserProfile: Deleting cached profile
directory <C:\Documents and Settings\gun>.
USERENV(280.284) 08:06:11:472 ReportError: Impersonating user.
USERENV(280.284) 08:06:11:472 CreateLocalProfileImage: One way or another
we haven't got an existing local profile, try and create one
USERENV(280.284) 08:06:11:472 GetUserDomainName: DomainName = <YYNET>
USERENV(280.284) 08:06:11:487 CreateSecureDirectory: Entering with
<C:\Documents and Settings\TEMP.YYNET.025>