SOLVED

OneDrive exits and does not run properly, with Roaming Profile users

%3CLINGO-SUB%20id%3D%22lingo-sub-2266589%22%20slang%3D%22en-US%22%3EOneDrive%20exits%20and%20does%20not%20run%20properly%2C%20with%20Roaming%20Profile%20users%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266589%22%20slang%3D%22en-US%22%3E%3CP%3EI%20wonder%20if%20anyone%20can%20help%20me%20get%20to%20the%20bottom%20of%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe're%20seeing%20OneDrive%20fail%20to%20run%20correctly%20for%20a%20large%20number%20of%20users.%20Starting%20from%20a%20Fresh%20profile%2C%20or%20new%20user%2C%20the%20OneDriveSetup.exe%20appears%20to%20run%20to%20install%20the%20package%20in%20%25APPDATA%25%20as%20expected%2C%20but%20it%20doesn't%20stay%20running%2C%20it%20bombs%20out%20immediately.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20tray%20icon%2C%20no%20hooks%20into%20the%20OneDrive%20folder%20in%20Windows%20File%20Explorer.%20It's%20not%20merely%20an%20issue%20of%20it%20not%20syncing%2C%20it%20just%20doesn't%20run%20at%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20no%20hints%20as%20to%20why%20it's%20exiting%20in%20any%20logs%20I%20can%20find.%20I've%20searched%20the%20normal%20Windows%20App%2FSystem%20Event%20Logs%2C%20and%20taken%20a%20log%20at%20the%20text%20logs%20that%20appear%20inside%20the%20OneDrive%20folder%20under%20%25APPDATA%25.%3C%2FP%3E%3CP%3EWe%20thought%20the%20version%20was%20too%20old%20at%20first%2C%20as%20Programs%20and%20Features%20was%20showing%20an%20older%20version%20number%20for%20the%20client%2C%20but%20poking%20the%20Updater%20app%20successfully%20install%20the%20latest%20version%20(it%20didn't%20do%20this%20without%20some%20coaxing)%20in%20a%20seemingly%20normal%20manner%2C%20and%20yet%20even%20after%20it's%20updated...it%20still%20won't%20stay%20running.%20Task%20Manager%20shows%20after%20traying%20to%20launch%20it%2C%20OneDrive.exe%20is%20present%20for%20a%20few%20seconds%2C%20but%20then%20disappears%20without%20ever%20having%20done%20anything.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%2C%20curiously%20a%20whole%20bunch%20of%20people%20do%20have%20it%20working%20OK%2C%20and%20we%20can't%20seem%20to%20figure%20out%20what's%20different%20about%20them.%20One%20Class%20of%20users%20not%20affected%20are%20those%20who%20have%20Local%20Profiles%20only%20(profile%20path%20in%20AD%20is%20blank).%20There%20are%20a%20small%20number%20of%20people%20with%20Roaming%20Profiles%20for%20whom%20it%20still%20works%2C%20but%20anyone%20who%20has%20their%20Roaming%20Profile%20wiped%20%26amp%3B%20rebuilt%20suffers%20from%20the%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20if%20the%20Roaming%20Profile%20thing%20is%20key%20to%20this%2C%20or%20a%20great%20big%20red%20herring.%20Just%20can't%20think%20what%20else%20could%20be%20affecting%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOther%20noteworthy%20facts%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20users%20have%20Laptops%20and%20generally%20only%20sign%20in%20to%20that%20one%20system%20but%20are%20able%20to%20sign%20into%20any%20other%20device%20flexibly%20as%20required.%3C%2FP%3E%3CP%3EWe%20have%20E3%20Licensing%20across%20the%20board.%3C%2FP%3E%3CP%3EGroup%20policy%20sets%20the%20OneDrive%20content%20folder%20as%20Excluded%20from%20Roaming%20Profile%20sync%2C%20and%20the%20only%20folder%20sync'd%20by%20default%20is%20named%20%22OneDrive%20-%20OurOrgName%22%20under%20the%20user's%20profile.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20case%20of%20affected%20users%2C%20this%20folder%20isn't%20even%20being%20created%2C%20but%20I%20wouldn't%20expect%20it%20to%20until%20sync%20starts%20happening%20and%20pulling%20their%20content%20down%20from%20the%20cloud%2C%20and%20it%20never%20gets%20a%20chance%20to%20run.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEveryone%20affected%20can%20still%20access%20their%20content%20just%20fine%20via%20sharepoint%2Fweb%20interface%2C%20and%20the%20files%20section%20within%20Teams%2C%20and%20the%20OneDrive%20App%20on%20their%20Mobile%20phones.%20It's%20just%20the%20desktop%20client%20we%20have%20the%20issue%20with.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20offer%20any%20thoughts%20of%20what%20to%20check%20or%20test%20next%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2266589%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I wonder if anyone can help me get to the bottom of this.

 

We're seeing OneDrive fail to run correctly for a large number of users. Starting from a Fresh profile, or new user, the OneDriveSetup.exe appears to run to install the package in %APPDATA% as expected, but it doesn't stay running, it bombs out immediately.

 

No tray icon, no hooks into the OneDrive folder in Windows File Explorer. It's not merely an issue of it not syncing, it just doesn't run at all.

 

There are no hints as to why it's exiting in any logs I can find. I've searched the normal Windows App/System Event Logs, and taken a log at the text logs that appear inside the OneDrive folder under %APPDATA%.

We thought the version was too old at first, as Programs and Features was showing an older version number for the client, but poking the Updater app successfully install the latest version (it didn't do this without some coaxing) in a seemingly normal manner, and yet even after it's updated...it still won't stay running. Task Manager shows after traying to launch it, OneDrive.exe is present for a few seconds, but then disappears without ever having done anything.

 

But, curiously a whole bunch of people do have it working OK, and we can't seem to figure out what's different about them. One Class of users not affected are those who have Local Profiles only (profile path in AD is blank). There are a small number of people with Roaming Profiles for whom it still works, but anyone who has their Roaming Profile wiped & rebuilt suffers from the issue.

 

Not sure if the Roaming Profile thing is key to this, or a great big red herring. Just can't think what else could be affecting it.

 

Other noteworthy facts;

 

All users have Laptops and generally only sign in to that one system but are able to sign into any other device flexibly as required.

We have E3 Licensing across the board.

Group policy sets the OneDrive content folder as Excluded from Roaming Profile sync, and the only folder sync'd by default is named "OneDrive - OurOrgName" under the user's profile.

 

In the case of affected users, this folder isn't even being created, but I wouldn't expect it to until sync starts happening and pulling their content down from the cloud, and it never gets a chance to run.

 

 

Everyone affected can still access their content just fine via sharepoint/web interface, and the files section within Teams, and the OneDrive App on their Mobile phones. It's just the desktop client we have the issue with.

 

 

Can anyone offer any thoughts of what to check or test next?

 

 

 

3 Replies
Hi,

I have got 2 questions :)

Maybe instead of choosing the normal one drive installation, maybe choosing the /allusers (machine wide installer) so it will be installed in the program files folder?

Maybe looking into fslogix instead of putting the onedrive data in the roaming profile?
best response confirmed by PhotoVoltaic (New Contributor)
Solution

It turned out to be something annoyingly simple, the GroupPolicy "Block OneDrive..." being Enabled, setting the "DisableFileSyncNGSC=1" regkey, but we didn't notice this sooner because not all client PCs had picked up this Policy for various reasons. It had nothing to do with Roaming Profiles, that did indeed turn out to be a total red herring.

Just another one of those cases were you're sure it's not X, it must be Y or Z. But actually, it was X all along.

I just saw your post and the solution below and was hoping to get a better idea of what you have done to make it work?
What have you set in user profile (in AD), and in GPO in order to make it work with Roaming Profiles? I assume that user folders are also stored remotely?

Any help will be greatly appreciated.