You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"folder marker missing" and doubled global state after removing and re-adding folder in a 3-device setup #8416
Folder marker missing when adding indicates there is already data in the database about that folder. I suspect it may not have been cleaned out completely on the removal, perhaps.
I wonder why this happens on the third device only, even though the folder is removed in exactly the same way and at the same time on both Device 2 and 3 🤔.
Translated from machine
Today I had a similar problem, I tried to add a new folder (named .stfolder) under the problem folder in the problem device (my tablet), it was back to normal and can be synced.
It may be due to an error that occurs when synchronizing by selecting a folder that is already in place so that there is no .stfolder subfolder.
I have this reliably happening with Syncthing on Android with a folder share on an external SD card.
The problem seems to be that because .stfolder is an empty folder, the way Android exposes the external SD card file share omits the folder from being exposed by the FUSE filesystem it uses to facilitate this.
If I manually force an empty file into the folder, it seems to fix it.
我找到了办法解决这个问题:
1,移除同步的文件夹,例如test3;
2,docker down syncthing容器;
3,在服务器或者电脑端彻底删除已经同步的文件夹,例如test3;
4,重启syncthing服务,这个文件夹就没有再出现out of sync了。
I found a way to solve this problem:
1, remove the synchronized folder, such as test3;
2, docker down syncthing container;
3, completely delete the synchronized folder, such as test3, on the server or computer side;
4, restart the syncthing service, and this folder is not out of sync anymore.
Remove the impacted <folder> block from your config.xml.
Unshare the folder with the impacted device on your other devices.
Restart Syncthing.
Reshare the folder with the impacted device.
This will force a re-index but unless you're running on an outdated phone CPU, have a 20GB+ synced folder on microSD/HDD storage, or both, it should catch up pretty quickly.
I also ran into this today. BTW my reason for doing this was I wanted to move where the files were stored. Had I known I'd run into this, I'd have modified config.xml instead! Oh well. I fixed it by rolling back a zfs snapshot of my syncthing data.
I will need to do more testing to be completely sure, but I can no longer reproduce this bug using Syncthing v2.0.16-rc.2 using the steps described in #9595.
Just like the commit that introduced this bug, df48276, this new commit seems to be another substantial rewrite of how folder status is databased and communicated between syncthing instances. So, this being a fix for the issue makes logical sense.
Glad it's fixed! Is this good enough to close this? For verification, b1c8f88 is the parent of the fix commit, and can still reproduce this bug whereas the immediate child, the fix commit above, does not.
Activity
calmh commentedon Jul 5, 2022
Folder marker missing when adding indicates there is already data in the database about that folder. I suspect it may not have been cleaned out completely on the removal, perhaps.
tomasz1986 commentedon Jul 5, 2022
I wonder why this happens on the third device only, even though the folder is removed in exactly the same way and at the same time on both Device 2 and 3 🤔.
calmh commentedon Jul 5, 2022
Indeed.
bluezclouds commentedon Sep 6, 2022
I've experienced the same issue a number of times with v1.20.4 on Windows 11 . A Syncthing restart was required to clear the error.
linghan7 commentedon Nov 24, 2022
今天出现了类似的问题,我尝试于出现问题的设备(平板电脑)中,问题文件夹下添加新的文件夹(名为.stfolder)之后,恢复正常,可以同步。
可能是由于我在同步时选择的是已有的文件夹,以至于没有.stfolder子文件夹而产生的错误。
Translated from machine
Today I had a similar problem, I tried to add a new folder (named .stfolder) under the problem folder in the problem device (my tablet), it was back to normal and can be synced.
It may be due to an error that occurs when synchronizing by selecting a folder that is already in place so that there is no .stfolder subfolder.
wwwutz commentedon Feb 20, 2023
Probably related: https://forum.syncthing.net/t/folder-stopped-path-missing-when-changing-path-the-second-time/19809
wrouesnel commentedon Dec 19, 2023
I have this reliably happening with Syncthing on Android with a folder share on an external SD card.
The problem seems to be that because
.stfolderis an empty folder, the way Android exposes the external SD card file share omits the folder from being exposed by the FUSE filesystem it uses to facilitate this.If I manually force an empty file into the folder, it seems to fix it.
faye25tom commentedon Mar 21, 2024
我找到了办法解决这个问题:
1,移除同步的文件夹,例如test3;
2,docker down syncthing容器;
3,在服务器或者电脑端彻底删除已经同步的文件夹,例如test3;
4,重启syncthing服务,这个文件夹就没有再出现out of sync了。
I found a way to solve this problem:
1, remove the synchronized folder, such as test3;
2, docker down syncthing container;
3, completely delete the synchronized folder, such as test3, on the server or computer side;
4, restart the syncthing service, and this folder is not out of sync anymore.
tomasz1986 commentedon Nov 24, 2024
Additional information with a link to a specific commit that likely caused this bug: #9595 (comment)
tidux commentedon Mar 23, 2025
Quick fix for this:
index-v0.14.0.dbdirectories.<folder>block from your config.xml.This will force a re-index but unless you're running on an outdated phone CPU, have a 20GB+ synced folder on microSD/HDD storage, or both, it should catch up pretty quickly.
chore(model): log folder removal
ManiacDC commentedon Aug 6, 2025
I also ran into this today. BTW my reason for doing this was I wanted to move where the files were stored. Had I known I'd run into this, I'd have modified config.xml instead! Oh well. I fixed it by rolling back a zfs snapshot of my syncthing data.
dpedu commentedon Mar 20, 2026
I will need to do more testing to be completely sure, but I can no longer reproduce this bug using Syncthing v2.0.16-rc.2 using the steps described in #9595.
dpedu commentedon Mar 20, 2026
Okay, I did some more git bisecting using the steps described in #9595 and have identified the following commit as the one that fixed this issue:
025905f
Just like the commit that introduced this bug, df48276, this new commit seems to be another substantial rewrite of how folder status is databased and communicated between syncthing instances. So, this being a fix for the issue makes logical sense.
Glad it's fixed! Is this good enough to close this? For verification, b1c8f88 is the parent of the fix commit, and can still reproduce this bug whereas the immediate child, the fix commit above, does not.