Giter Site home page Giter Site logo

Comments (5)

tomasz1986 avatar tomasz1986 commented on May 24, 2024

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.

ncfavier avatar ncfavier commented on May 24, 2024

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.

tomasz1986 avatar tomasz1986 commented on May 24, 2024

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.

ncfavier avatar ncfavier commented on May 24, 2024

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.

ncfavier avatar ncfavier commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.