Comments (8)
I think we maybe have a larger point of possible improvement in the handling of rescan intervals... now we just set the one rescan interval which is used all the time, and we tweak what that interval is depending on wether we expect to use filesystem notifications or not. I think it would be better to have two intervals, one (longer) that is used when the folder is healthy and notifications are online, and a different (shorter) one that is used when the folder is unhealthy or the watcher is offline...
from syncthing.
I think this is expected. There is no magic to instantly detect the presence of a previously-failed folder, we need to actually look at it which happens in the scheduled scan.
We probably get the removed event "for free" because we're watching the folder for changes and it flags some kind of change. When it's not there any more there is nothing to watch and we don't get any events.
I suppose it would be possible to specifically do something operating system specific to watch for mount events, if there is such a thing, or possibly add a watch on the parent dir and see if we get anything from there, but I don't really see it worth the effort to be honest...
from syncthing.
Maybe we can have a global setting to set an interval to rescan the folder when something fails. Then we can keep the regular interval intact, but recheck the folder every 5 minutes on fail to take it back. I guess this is easier to do than watching some file system events.
By the way, I just switched from resilio-sync, it can detect it immediately when I put the HDD back. I don't know how it managed to do that.
from syncthing.
I managed to create a workflow in "Keyboard Maestro" with Syncthing REST API to solve this. But still, I hope we can have this solved by Syncthing itself.
from syncthing.
I found a bigger problem. It seems that after the HDD disappears and appears again after several hours, Syncthing starts to reindex the whole disk. I remember if it just disappears for a little while, the indexing is very fast, and won’t do it all over again. This HDD needs days to be fully indexed. Do you have any idea about this problem? I’m trying to reproduce it again to confirm.
from syncthing.
I found a bigger problem. It seems that after the HDD disappears and appears again after several hours, Syncthing starts to reindex the whole disk. I remember if it just disappears for a little while, the indexing is very fast, and won’t do it all over again. This HDD needs days to be fully indexed. Do you have any idea about this problem? I’m trying to reproduce it again to confirm.
That clearly shouldn't happen, and I am somewhat confident saying can't happen without external interventation/failure (OS, hardware, user). Lets take debugging of this to the forum please, as that's where we do support (e.g. due to lengthy exchanges that shouldn't cause notifications in github): https://forum.syncthing.net/
Please explain there what exactly you did in the process, what the paths involved are (syncthing folder and mount path), filesystems, logs if you have any, ... - anything that might help.
As for the original request: I am somewhat certain this came up before, but I can't find any issue for it.
Not doing anything smart, just re-checking for "re-appearance" more frequently than the full rescan interval for a folder with a missing path or marker seems like reasonable feature request. Many people have very long rescan intervals, so a remount won't be picked up in a long time. And it's not a big change for syncthing. I don't think we need to make this configurable though, just doing it maybe every minute should both be unobtrusive and fast enough. If a user needs an effect asap after mounting, they can take manual intervention.
I took the liberty to re-title and classify the ticket as such, please let me know if that misrepresents your intent @megabitsenmzq or if you think this isn't a worthwhile thing to do (resp. is flawed/doesn't work) @calmh .
from syncthing.
Thank you for your reply! The title change is good. Yep, you need to knock the folder more when it's missing. That's exactly what I want. Making it configurable is just optional. I'll post the indexing problem in the forum later today.
from syncthing.
I posted https://forum.syncthing.net/t/syncthing-tries-to-index-an-unmounted-volume/21784
(Update: index problem resolved)
from syncthing.
Related Issues (20)
- Be more kind with non-normalized UTF-8 filenames HOT 7
- Syncthing ignores files that have been deleted on other devices HOT 5
- 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
- files with specific naming pattern remain 'out of sync' HOT 1
- Database reset with encrypted folders causes a full resync HOT 13
- Files spookily out of sync in 1.27.5 HOT 1
- Data race in fakeFS (testing)
- remote uses different upper or lowercase characters than local "<filename>"; change the casing on either side to match the other HOT 2
- First run of `serve` is not respecting `--no-default-folder` HOT 4
- lib/nat: panic: runtime error: index out of range
- gui: Favicon not working in Firefox bookmarks
- get pending status for 10s files, 60s deletion on api. HOT 1
- Panic "fatal error: runtime: mcall called on m->g0 stack" HOT 4
- Show the version on the web GUI page HOT 2
- Make address field in remote devices panel clickable to open administration GUI HOT 1
- Sync/Connection speed plummets when web UI is open on PC HOT 3
- Windows Listed Version Older Than Running Version HOT 2
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.