-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic on Linux: No space left on device #3
Comments
Can you run |
Linux -- it says in the title. The config output is below. I wonder whether it is a
|
Just some additional notes. It appears that inotify requires that a watcher is placed on each directory (it can't watch a whole tree in one go). There are 5800+ directories under my home dir. There are also 24 symlinks to directories. So if |
If I do |
Thanks for digging into this. PR #4 will ensure TimeTrack doesn't crash when adding the watcher fails I think, but there are other issues within TimeTrack when watching the entire file system. TimeTrack expects each file change event to be for a file which is within the track path (not necessarily a direct child). Do you have any suggestions on how TimeTrack could handle this better? Otherwise it sounds like this issue should be reported to the |
I don't want it to watch the entire filesystem. I just want it to watch Another approach might be to have a config specification to 'prune' some directories out of the tree that contain subdirs that are problematic (e.g. Another thing to note is that on Linux, the user might need to increase If I expand that to 20,000 then now I get a panic with "Permission Denied", because it's following the So that's three possible issues for You might want to keep an issue open for these Linux issues until you get the necessary support from |
Ah, I ran into the same issue. I patched println!(
"Error {} adding watcher for path {:?}: {:?}",
err,
track_path.to_string_lossy(),
err
); To show me the full error, and running
How can we fix it? |
@xfbs if your issue has the same cause (symlinks under your home directory to / or similar) then I think there are a couple options
|
None of my drives are over 50% in use, so the error makes no sense. I just ran
RUST_BACKTRACE=1 timetrack track
with no change to the default config. Rust is up to date. Here's the output:The text was updated successfully, but these errors were encountered: