Comments (5)
Looks like a bug but it is impossible to say what could have caused it without a specific set of steps to reproduce the problem or debug logs from when the issue first occurred. You may want to open a new topic at https://forum.syncthing.net with the same information as it will likely not be possible to do anything about it here at this point.
If you just want to reset the broken folder states, you can remove the folder from Syncthing, then add it again. Syncthing should then rescan the local files and the excessive ones should be marked as "local additions" which you can revert via the GUI.
from syncthing.
I did that; after rescanning, syncthing correctly showed the extra files as local additions, and after discarding them I am back to the exact same situation, which leads me to think that it's failing to delete the files from the filesystem.
I can repeat this process with debug logging enabled; which debug logging facilities should I enable, apart from fs
?
Could this be an ownership/permission issue? Using Termux, I can see that the shared folder and every file inside it are owned by u0_a130:everybody
, with permissions rwxr-x---
. But exFAT apparently does not support permissions, so I'm not sure how this all works.
from syncthing.
I did that; after rescanning, syncthing correctly showed the extra files as local additions, and after discarding them I am back to the exact same situation, which leads me to think that it's failing to delete the files from the filesystem.
The reason why I think this is a bug is that you should never see a larger local state than the global in a Receive Only folder with the folder still marked as just "Up to Date" with no "Local Additions". If Syncthing failed to delete the files, you should be presented with a error message about it, but there is nothing like that in the screenshot.
Can you reproduce the problem in a completely new folder with just a handful of files? If yes, then I would suggest to pause all other folders first, restart Syncthing, enable db
and model
logging, reproduce the issue, and finally upload the logs here.
Could this be an ownership/permission issue?
If permissions were the culprit, you should still see them marked as "local additions" in the folder in question. You should still probably enable the "ignore permissions" setting in the Advanced tab of the folder anyway.
from syncthing.
Nope, cannot reproduce in a new folder. :( In fact even with the music folder, if I delete a file from computer then it gets correctly deleted from phone, without affecting the 12 ghost files. So probably some database somewhere is screwed.
from syncthing.
I re-added the folder again with fs
, db
and model
enabled; here are the lines of the log that mention just one of the ghost files: https://gist.github.com/ncfavier/00dc2c71afb34588e704b08458ea37da. Note in particular Deleting file ...
but the file is definitely still there.
I also tried removing one of the ghost files from the phone. Syncthing detected this as a local change and prompted me to discard it, which I did, after which the file was gone for good, so there are only 11 ghost files left.
from syncthing.
Related Issues (20)
- Detect a folder re-appearing more quickly (e.g. on re-mount) HOT 8
- Decrypt filenames locally in UI
- CPU in idle mode increases over time HOT 1
- Local sync between directories HOT 3
- Better wrapping for device and folder names in sharing lists
- Show encryption status for devices sharing folder
- Shared folder in another drive is added as duplicate twice to home directory HOT 2
- Could SyncThing be adapted to support local first software integration? HOT 1
- Support workflows making use of POSIX ACLs HOT 2
- Run sync job only when files are created or changed HOT 1
- Enhance #9339 HOT 2
- Add Support/Autorenaming for Whatsapp Documents (Ending in period/Ilegal Filenames) HOT 2
- Allow enabling audit mode from advanced settings in addition to the command line parameter
- Syncing stuck on XX% on one device, despite the synced files are all ok and checksums match on all devices involved. HOT 28
- Be more kind with non-normalized UTF-8 filenames HOT 7
- Expanded transfer queue management
- Update DSM6 package from version 1.23.4 to version 1.27.4 HOT 1
- Dialogs won't close on Escape key
- Didn't Launched Automatically HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syncthing.