OneDrive sync failure where local files are being removed from the sync folder [with workaround]

OneDrive sync is suddenly failing on my Xubuntu computers (24.04 and 22.04). Insync is emptying the local folders of all contents and then doing a partial sync. Even when “completed,” synced folders are still empty.

Luckily, the OneDrive files on the cloud are unchanged.

Other services (dropbox, google) are not being affected).

Running insync 3.9.4.60200 on each (reinstalled on the 24.04 computer).

-Vincent

What is going on? How do I get normal sync restored?

2 Likes

My apologies for the huge issue! Could you please send your logs.db and out.txt files to support@insynchq.com? Follow this guide on how to collect those files: https://help.insynchq.com/en/articles/1834816-locating-the-log-files

Please do include the link to this Forums post for easy tracking.

Unfortunately can confirm the issue on Fedora 40. Insync just wiped my local folders on two different machines. Version is the exact same as mentioned in the first post.

I am working with tech support on the problem.

Luckily, files on the cloud are NOT being affected. My temp solution has been to disconnect the onedrive accounts from syncing.

Deleting and then adding the onedrive account does NOT fix the problem. The local file deletions recur.

@user123456 Could you please send your logs.db and out.txt files to support@insynchq.com? Please also provide a few file names that were trashed locally so we can check that in the logs.

Thank you very much!

I mailed you the logs.

Thank you! I received them and have escalated the issue further to our engineers.

Any new developments regarding the Issue? I’m running the Insync client on two Linux Mint 22 Cinnamon machines and can’t sync with Onedrive anymore…

Hello again!:

I removed my OneDrive account and re-add it, which made the folders and files visible again and sync seems to be working again now. But it would be nice to have an explanation about why the issue occurred. :wink:

2 Likes

Apologies for the late revert!

This issue is still under investigation. I will be updating the title of this Forums post to make it more visible to users who may be experiencing a similar issue.

For visibility on this post, the current workaround is to indeed remove and re-add your OneDrive account.

1 Like

I had the same issue occur yesterday with OneDrive local files removed on my Laptop (Ubuntu 22.04, Insync 3.9.4.60020), which was fixed by removing the account and re-adding it with the same base folder. One day later the same issue occurred on my desktop (also Ubuntu 22.04, Insync 3.9.4.00).

I originally thought this was a Microsoft token expiration issue improperly handled by the program so, while it was in the process of deleting other directories I experimented a bit. New directories that I made within the OneDrive synced section instantly deleted locally but appeared in my online OneDrive. So upload worked in some capacity while things were being deleted.

1 Like

Hey @BobJoe! Could you please send the following to support@insynchq.com?

  • logs.db
  • out.txt
  • data folder
  • live folder
  • Email affected by this issue
  • Example of file names that were cleared locally (2-3 file names will do)

Logs can be found by following this guide: https://help.insynchq.com/en/articles/1834816-locating-the-log-files

Thank you very much!

I’ve also just been affected by this issue. Very frustrating to see it go through and wipe out all your local files, especially considering the amount and size of files I now have to sync all over again. Logs already sent but I hope this issue is being looked at by inSync…

1 Like

Are there instructions for how to just remove and re add a One Drive account? The instructions you linked to appear to remove my whole inysnc account, and I don;t want to do that, because google sync still works.

In my case it was not only the local files.
I did suddenly get an email from Onedrive that a lot of files was in the recycle bin.
I found that there was files deleted 4 hours ago and was important business files.

I’m not sure I can use Insync any more.
This happened on both my Onedrive accounts.
The Gdrive was untuched.

This makes a big problem for me because I use both Windows and Linux and need Insync for access on linux.
I removed Onedrive accounts from Linux pc and uninstallled Insync on one windows 10 laptop.

Hi @Bill_Miller, you can refer to this post: OneDrive sync failure where local files are being removed from the sync folder [with workaround]

This article demonstrates how to remove a Google account, but the steps are the same for OneDrive accounts as well. You only need to remove and re-add the OneDrive account that encountered this issue.

Hi @Steinar_Kjaer_Johans,

Your issue seems to be different from this Forums thread since you mentioned cloud deletions. We would need to investigate the issue you described. Please reach out to support@insynchq.com with the link to this post, alongside your log files as instructed here.