Possible Bug Around Removing and Re-Adding A Folder

Hello all:

I’m not able to test this on a different pair of devices at the moment, but there might be a problem around removing and re-adding a folder:

Using Syncthing 2.0.3 on Device A and Device B, sharing a single folder. Both devices have the same Ignore Patterns and are on the same LAN. Device B is 89% synced in the case I’m looking at:

  • Remove the folder on Device B;
  • Restart Device A to provoke the Shared Folder invitation on Device B;
  • Accept the invitation and configure the folder on Device B.

Now I’m seeing:

  • Device A still thinks Device B is 89% synced:

  • Device B appears not to have received any file indexes from Device A:

As I say, I’m not able to try and reproduce this at the moment, so it might be a quirk of my setup (somehow), which I’m going to try and work around by removing Device B from Device A’s Remote Devices list, then re-adding.

I could see there being some remaining issues with removing and readding a folder and sharing it with an already connected device, all without restart or even connection restart. Might be worth restarting the side where the folder was removed and added etc.

Hi Jakob:

Thanks - as always - for the quick response. A couple more data points on the original scenario:

  • The Folder Path for Device B was changed when it was re-added (the original purpose of removing and re-adding the folder) - so there would (correctly) have been no local copies of the files scanned;
  • Device B is in Receive Only mode.

Made no difference. Likewise removing Device B from Device A’s list of Remote Devices and then re-adding it made no difference.

Thankfully I have resolved it by removing the folder from Device B, restarting both devices, and then re-adding the folder to Device B. After a few minutes, things started getting back into shape as expected.

Cool. I suspect this is a communication bug more than a database etc bug. That is, something isn’t restarting correctly when a folder is removed/reannounced by the other side, so index IDs don’t get refreshed. :person_shrugging: Can try to troubleshoot that at some point.

1 Like

Yeah - no hurry from my end!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.