The original thread and the images can be viewed here
This is a follow up of this issue. I'm starting from resetting OneDrive and deleting the credentials, because that's easier to tell the story:
Since this is normally how I solve sync issues as a last resort I ran /Applications/OneDrive.app/Contents/Resources/ResetOneDriveAppStandalone.command and /Applications/OneDrive.app/Contents/Resources/RemoveOneDriveCreds.command after quitting OneDrive (Personal and Business). After that I manually deleted ~/Library/Group Containers/UBF8T346G9.OneDriveStandaloneSuite , since the script is always failing to delete this (permission denied) and ~/Library/Group Containers/UBF8T346G9.OfficeOneDriveSyncIntegration. Then I restart my Mac and reconnect first to my personal OneDrive (I don't have to enter the credentials, even though the script should have deleted them). Second, I reconnect to my OneDrive for Business. Till that point everything seems fine and OneDrive is working, but that's just till I restart my Mac.
As soon as I restart my Mac some weird OneDrive update is triggered: This is shown in the Finder when navigating to the OneDrive folder:
Screenshot
(It says: OneDrive is running an update right now and will be available again soon)
My OneDrive daemon states this:
Screenshot
(It says: OneDrive is setting up/is prepared)
After the "update" is done, The OneDrive for Business folder looses it's cloud icon and the link in the sidebar, but is still working:
Screenshot
After a second restart, OneDrive creates a second folder with a (2) suffix and it creates a second shortcut in the finder sidebar. The old the Finder link reappears and the old folder gets its cloud icon back, but the folder is disconnected:
Screenshot Screenshot
(The next screenshot is shown in the original OneDrive for Business folder (without the (2) suffix)).
Screenshot
(It says: Please restart OneDrive to continue synchronizing this location)
I've reset OneDrive multiple times, but this always happens. However, it never happens, if I only set up OneDrive personal, so it seems to be connected with OneDrive for Business. I can also set up OneDrive personal, restart the Mac multiple times without the "update" being triggered. As soon as I add the Business account the "update" is triggered and the described issue starts. All these issues started last week (Tuesday or Thursday).
How can I fix that OneDrive always creates a duplicate folder. And sub question: Why are my credentials not deleted by RemoveOneDriveCreds.command, even though the scripts state they are?