A Microsoft file hosting and synchronization service.
I have had the same issue with the message that Onedrive needs to be restartet to sync the folder. Have tried all the suggestions, but no luck. I finally tried to download a clean Onedrive app from Appstore instead of using a version from Microsoft / Onedrive. The version currently in Appstore is 23.211.1024.0002 while the last version that I could download from Microsoft was newer with version 23.226.1031.
The version downloaded from Appstore behaves a bit different when it comes to specifying location for the Onedrive-folder and also explicit asks for permission to start the sync. And the really good thing is that it works!
Before downloading and trying this, I deleted all previous local files including hidden files in the .ODContainer-OneDrive - folder. I also created a new folder to store my Onedrive-folder within. Also I ran the ResetOneDriveApp.command inside the Onedrive app. If it was the trick with new folder or the Appstore-version that did the magic, I cannot know, but finally it works again.