"Out of sync" items that don't exist, how to clear them

I use syncthing between my desktop system (running xubuntu 24.04) and several Raspberry Pi, BeagleBone Black and other systems. All systems are running syncthing version 1.28.0.

When I look at the syncthing GUI on my desktop machine it says that homepi (a raspberry pi) has one out of sync item of 0B. I can find no trace of the file on any of my systems (it did exist once).

I have tried pausing the sync, then removing the folder completely from the Raspberry Pi and restoring it and then resuming syncthing but it still obstinately claims the 0B file isn’t synchronised.

How can I fix this?

1 Like

AFAIR they will be automatically deleted within 24h

I’ve just discovered the cause, silly me.

The directory in question was also shared between the systems using NFS. I was replacing the NFS share with the syncthing synchronisation but forgot to remove the NFS share.

This had me very confused for quite a while! :slight_smile:

2 Likes

We experience similar issues with odd 0 byte files that never disappear. I’m not aware of any network shares in place. How exactly did NFS cause your issue? Might help understanding our situation better.

1 Like

Well, I only think NFS caused the problem. Taking one directory hierarchy as an example I had NFS exported ~/.cfg from my desktop and had mounted it (as ~.cfg) on the Raspberry Pi system. I then installed and started syncthing on the Raspberry Pi system to share ~/.cfg with ~/.cfg on the desktop.

Thinking about what might happen I’d guess that NFS and syncthing were ‘fighting’ over file changes.

I fixed the issue eventually by removing the NFS sharing and then creating and deleting the 0B files on the Raspberry Pi. All is running peacefully now in syncthing.

2 Likes