When OneDrive crashes I lose all my synced SharePoint folders

%3CLINGO-SUB%20id%3D%22lingo-sub-677425%22%20slang%3D%22en-US%22%3EWhen%20OneDrive%20crashes%20I%20lose%20all%20my%20synced%20SharePoint%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-677425%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20OneDrive%20for%20Business%20running%20on%20an%20AWS%20EC2%20instance%20that%20connects%20back%20to%20an%20account%20that%20we%20use%20for%20our%20automation%20processes.%20Uptime%20and%20sync%20stability%20are%20key%20to%20these%20processes.%20Lately%2C%20I%20have%20noticed%20times%20that%20if%20OneDrive%20fails%20(is%20not%20shut%20down%20properly)%20all%20of%20the%20associations%20to%20synched%20SharePoint%20folders%20are%20lost%20and%20I%20have%20to%20manually%20resync%20ALL%20of%20them%20again.%26nbsp%3B%20there%20are%20about%2030%20different%20synced%20locations%20that%20we%20use%20which%20I%2C%20fortunately%2C%20have%20documented%20now%20because%20of%20this%20issue%2C%20but%20it%20is%20a%20painful%20process%20to%20resync%20them%20all%20manually.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20resync%20all%20of%20the%20SharePoint%20locations%20with%20a%20script%20instead%20of%20doing%20it%20one%20by%20one%3F%20is%20there%20a%20config%20file%20or%20registry%20key%20I%20can%20point%20to%20reestablish%20the%20connection%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20separate%20but%20maybe%20related%20issue%20is%20that%20our%20process%20in%20the%20server%20sometimes%20generate%20a%20lot%20of%20new%20files%20or%20file%20changes%20and%20this%20makes%20OneDrive%20also%20crash.%20I%20have%20tried%20numerous%20ways%20to%20temporarily%20shutdown%20OneDrive%20and%20restart%20it%20but%20I%20have%20not%20been%20successful%20unless%20I%20am%20logged%20into%20the%20AWS%20server%20directly.%20It%20doesn't%20work%20when%20logged%20off%20(using%20Task%20Scheduler%20or%20other%20methods).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAdam%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-677425%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecrash%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESync%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-677501%22%20slang%3D%22en-US%22%3ERe%3A%20When%20OneDrive%20crashes%20I%20lose%20all%20my%20synced%20SharePoint%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-677501%22%20slang%3D%22en-US%22%3EI%20know%20you%20don't%20want%20to%20hear%20this%2C%20but%20you%20are%20really%20using%20OneDrive%20to%20do%20something%20it%20wasn't%20designed%20to%20do%20and%20should%20probably%20look%20into%20using%20something%20meant%20for%20that%20in%20azure%20storage%20along%20with%20flow%20%2F%20logic%20apps%20to%20get%20it%20over%20to%20SharePoint.%20%3CBR%20%2F%3E%3CBR%20%2F%3EAnyway%2C%20about%20the%20auto%20mounting%20of%20SharePoint%20sites%2C%20that's%20coming%20soon%20to%20GPO%20so%20you%20can%20auto%20mount%20drives%20that%20way.%20If%20GPO%20works%2C%20that's%20really%20only%20just%20updating%20registry%20keys%20so%20once%20we%20can%20get%20ahold%20of%20that%20admx%20update%20for%20this%2C%20you%20should%20be%20able%20to%20look%20into%20where%20it's%20setting%20registry%20keys%20for%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-677502%22%20slang%3D%22en-US%22%3ERe%3A%20When%20OneDrive%20crashes%20I%20lose%20all%20my%20synced%20SharePoint%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-677502%22%20slang%3D%22en-US%22%3EActually%2C%20here%20you%20go.%20Not%20sure%20if%20it's%20released%20all%20the%20way%20but%20is%20soon.%20It%20has%20the%20reg%20key%20in%20this%20article.%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2F3k09.wordpress.com%2F2019%2F06%2F04%2Fautomatically-mount-sharepoint-team-site-libraries-for-onedrive-sync-in-file-explorer%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2F3k09.wordpress.com%2F2019%2F06%2F04%2Fautomatically-mount-sharepoint-team-site-libraries-for-onedrive-sync-in-file-explorer%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E(Verify%20the%20reg%20key%20%5BHKCU%5CSoftware%5CPolicies%5CMicrosoft%5COneDrive%5CTenantAutoMount%5D%E2%80%9DLibraryName%E2%80%9D%3D%E2%80%9DLibraryID%E2%80%9D)%3C%2FLINGO-BODY%3E
Highlighted
Frequent Visitor

We have OneDrive for Business running on an AWS EC2 instance that connects back to an account that we use for our automation processes. Uptime and sync stability are key to these processes. Lately, I have noticed times that if OneDrive fails (is not shut down properly) all of the associations to synched SharePoint folders are lost and I have to manually resync ALL of them again.  there are about 30 different synced locations that we use which I, fortunately, have documented now because of this issue, but it is a painful process to resync them all manually. 

 

Is there a way to resync all of the SharePoint locations with a script instead of doing it one by one? is there a config file or registry key I can point to reestablish the connection? 

 

A separate but maybe related issue is that our process in the server sometimes generate a lot of new files or file changes and this makes OneDrive also crash. I have tried numerous ways to temporarily shutdown OneDrive and restart it but I have not been successful unless I am logged into the AWS server directly. It doesn't work when logged off (using Task Scheduler or other methods). 

 

Any help would be appreciated. 

 

Regards,


Adam

 

2 Replies
Highlighted
I know you don't want to hear this, but you are really using OneDrive to do something it wasn't designed to do and should probably look into using something meant for that in azure storage along with flow / logic apps to get it over to SharePoint.

Anyway, about the auto mounting of SharePoint sites, that's coming soon to GPO so you can auto mount drives that way. If GPO works, that's really only just updating registry keys so once we can get ahold of that admx update for this, you should be able to look into where it's setting registry keys for it.
Highlighted
Actually, here you go. Not sure if it's released all the way but is soon. It has the reg key in this article.
https://3k09.wordpress.com/2019/06/04/automatically-mount-sharepoint-team-site-libraries-for-onedriv...

(Verify the reg key [HKCU\Software\Policies\Microsoft\OneDrive\TenantAutoMount]”LibraryName”=”LibraryID”)